Closed Bug 1955481 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 51506 - Use local time and provide subtest name for sv-SE locale test

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
firefox138 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 51506 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/51506
Details from upstream follow.

Sam Sneddon <gsnedders@apple.com> wrote:

Use local time and provide subtest name for sv-SE locale test

Using format(0) is the same as format(Date(0)), which creates a Date object which is at the epoch. However, because we output it with no regard from the time zone, this will fail if you're in a time zone behind UTC.

To avoid this, we move to just using local time, matching the other tests in this file, thus guaranteeing this test passes everywhere.

Also, we may as well check the exact string, because "1970" is the least interesting part of this test.

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 4 subtests

Status Summary

Firefox

OK : 1
PASS: 4

Chrome

OK : 1
PASS: 4

Safari

OK : 1
PASS: 4

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/086ea65084f0 [wpt PR 51506] - Use local time and provide subtest name for sv-SE locale test, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
You need to log in before you can comment on or make changes to this bug.