Closed Bug 1751879 Opened 3 years ago Closed 3 years ago

[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)

task

Tracking

()

RESOLVED FIXED
99 Branch
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 by lock() is resolved.
But onchange-event.html and orientation-reading.html wait for change
event after the promise is resolved.

So we shouldn't wait for the promise before calling wait_for.

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

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)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b4766ebfa963 [wpt PR 32528] - Some screen orientation API tests won't be passed since the order of event and promise is incorrect., a=testonly https://hg.mozilla.org/integration/autoland/rev/ec6277d73053 [wpt PR 32528] - Update wpt metadata, a=testonly
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/27496283f172 [wpt PR 32528] - Some screen orientation API tests won't be passed since the order of event and promise is incorrect., a=testonly https://hg.mozilla.org/integration/autoland/rev/4791c190c418 [wpt PR 32528] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
You need to log in before you can comment on or make changes to this bug.