[wpt-sync] Sync PR 32528 - Some screen orientation API tests won't be passed since the order of event and promise is incorrect.
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox99 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Depends on 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 32528 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/32528
Details from upstream follow.
Makoto Kato <m_kato@ga2.so-net.ne.jp> wrote:
Some screen orientation API tests won't be passed since the order of event and promise is incorrect.
https://w3c.github.io/screen-orientation/#Screen-orientation-change
7.5 Screen orientation change
...
5. Fire an event named change at doc's Screen.orientation object.
6.1. Resolve doc's [[orientationPendingPromise]] with undefined.
change
event is fired before the promise bylock()
is resolved.
Butonchange-event.html
andorientation-reading.html
wait forchange
event after the promise is resolved.So we shouldn't wait for the promise before calling
wait_for
.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
Assignee | ||
Comment 2•3 years ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 2 tests and 6 subtests
Status Summary
Firefox
PASS : 4
FAIL : 2
TIMEOUT: 2
ERROR : 2
Chrome
PASS : 4
FAIL : 2
TIMEOUT: 2
ERROR : 2
Safari
PASS : 1
FAIL : 7
ERROR : 2
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
/screen-orientation/onchange-event.html: ERROR (Chrome: ERROR, Safari: ERROR)
Test that orientationchange event is not fired when the orientation does not change.: FAIL (Chrome: FAIL, Safari: FAIL)
Test that orientationchange event is fired when the orientation changes.: TIMEOUT (Chrome: TIMEOUT, Safari: FAIL)
/screen-orientation/orientation-reading.html: ERROR (Chrome: ERROR, Safari: ERROR)
Test the orientations and associated angles: FAIL (Chrome: FAIL, Safari: FAIL)
Test that screen.orientation values change if the orientation changes: TIMEOUT (Chrome: TIMEOUT, Safari: FAIL)
Comment 5•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/27496283f172
https://hg.mozilla.org/mozilla-central/rev/4791c190c418
Description
•