Make WPT tests pass: performance-measure-invalid.worker.html
Categories
(Core :: DOM: Performance, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox105 | --- | verified |
People
(Reporter: mcomella, Assigned: mcomella)
References
Details
Attachments
(3 files)
We currently pass 1/2 tests, according to wpt.fyi: https://wpt.fyi/results/user-timing/performance-measure-invalid.worker.html?label=experimental&label=master&aligned
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
In my opinion, this makes the code clearer because the implementation can more
closely match the spec and the code flow does not jump across subclasses and
their separate files. This change will be used by the following patch.
Assignee | ||
Comment 2•2 years ago
|
||
This fixes the performance-measure-invalid.worker.html test. The test failed
because User Timing L3 section 4.2, "Convert a name to a timestamp", was not
implemented - the code was presumably residual from an earlier version of User
Timing. In particular, we never threw if the global object was not a Window. We
also corrected the code order for section 4.1, "Convert a mark to a timestamp",
which was incorrect but didn't cause any tests to fail.
Depends on D154819
Assignee | ||
Comment 3•2 years ago
|
||
The previous implementation of our code had the code ordering reversed for User
Timing L3 section 4.1, "Convert a mark to a timestamp": it checked if a mark
exists for the given name then checked if the name matched a PerformanceTiming
attribute rather than the reverse. This test validates the correct order. Since
this behavior is presumably left over from an older version of the spec, it
seems worthwhile to have the test.
Depends on D154820
Updated•2 years ago
|
Pushed by mcomella@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/819f3d83aaa8 align IsPerformanceTimingAttribute to user-timing spec. r=sefeng https://hg.mozilla.org/integration/autoland/rev/fda98ba4b551 correct web-platform convert name to timestamp. r=sefeng https://hg.mozilla.org/integration/autoland/rev/307be8a3b4e1 add mark then measure on PerformanceTiming attribute test. r=sefeng
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/35521 for changes under testing/web-platform/tests
Comment 6•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/819f3d83aaa8
https://hg.mozilla.org/mozilla-central/rev/fda98ba4b551
https://hg.mozilla.org/mozilla-central/rev/307be8a3b4e1
Upstream PR merged by moz-wptsync-bot
Assignee | ||
Comment 8•2 years ago
|
||
I verified the tests pass in the latest Nightly locally on wpt.fyi and the wpt.fyi dashboard now shows the tests are passing: https://wpt.fyi/results/user-timing/performance-measure-invalid.worker.html?label=experimental&label=master&aligned&view=subtest.
Description
•