Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ iOS ] 2x imported/w3c/web-platform-tests/screen-orientation are nea…
…r-constant text failures. https://bugs.webkit.org/show_bug.cgi?id=255931 rdar://108508861 Reviewed by Chris Dumez. The cleanup function was accidentally calling "document.screen". Fixing that revealed a bunch of smaller bugs in the tests. * LayoutTests/TestExpectations: * LayoutTests/imported/w3c/web-platform-tests/page-visibility/resources/window_state_context.js: (window_state_context.async restore): (window_state_context): * LayoutTests/imported/w3c/web-platform-tests/resources/testdriver-vendor.js: (async if): (window.test_driver_internal.set_window_rect): * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/active-lock-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/active-lock.html: * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/event-before-promise-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/hidden_document-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/hidden_document.html: * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/lock-basic-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/nested-documents-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/nested-documents.html: * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/onchange-event-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/onchange-event-subframe-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/onchange-event-subframe.html: * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/orientation-reading-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/resources/orientation-utils.js: * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/unlock-expected.txt: * LayoutTests/platform/ios/TestExpectations: Canonical link: https://commits.webkit.org/263509@main
- Loading branch information
1 parent
19ef7f2
commit 5eb2125
Showing
18 changed files
with
52 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
LayoutTests/imported/w3c/web-platform-tests/screen-orientation/active-lock-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
fragment | ||
|
||
Harness Error (FAIL), message = Test named 'Performing a fragment navigation must not abort the screen orientation change' specified 1 'cleanup' function, and 1 failed. | ||
|
||
FAIL Performing a fragment navigation must not abort the screen orientation change promise_test: Unhandled rejection with value: object "NotSupportedError: Screen orientation locking is not supported" | ||
NOTRUN Performing a fragment navigation within an iframe must not abort the lock promise | ||
NOTRUN Unloading an iframe by navigating it must abort the lock promise | ||
FAIL Performing a fragment navigation within an iframe must not abort the lock promise promise_test: Unhandled rejection with value: object "SecurityError: Locking the screen orientation is only allowed when in fullscreen" | ||
FAIL Unloading an iframe by navigating it must abort the lock promise promise_rejects_dom: function "function () { throw e }" threw object "SecurityError: Locking the screen orientation is only allowed when in fullscreen" that is not a DOMException AbortError: property "code" is equal to 18, expected 20 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
...ests/imported/w3c/web-platform-tests/screen-orientation/event-before-promise-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
|
||
Harness Error (FAIL), message = Test named 'The 'change' event must fire before the [[orientationPendingPromise]] is resolved.' specified 1 'cleanup' function, and 1 failed. | ||
|
||
FAIL The 'change' event must fire before the [[orientationPendingPromise]] is resolved. promise_test: Unhandled rejection with value: object "NotSupportedError: Screen orientation locking is not supported" | ||
|
6 changes: 2 additions & 4 deletions
6
LayoutTests/imported/w3c/web-platform-tests/screen-orientation/hidden_document-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
|
||
Harness Error (FAIL), message = Test named 'hidden documents must not unlock the screen orientation' specified 3 'cleanup' functions, and 2 failed. | ||
|
||
PASS hidden documents must reject went trying to call lock or unlock | ||
PASS hidden documents must reject went trying to call unlock | ||
FAIL hidden documents must not unlock the screen orientation promise_test: Unhandled rejection with value: object "SecurityError: Locking the screen orientation is only allowed when in fullscreen" | ||
NOTRUN Once maximized, a minimized window can lock or unlock the screen orientation again | ||
FAIL hidden documents must not unlock the screen orientation promise_test: Unhandled rejection with value: object "NotSupportedError: Screen orientation locking is not supported" | ||
FAIL Once maximized, a minimized window can lock or unlock the screen orientation again promise_test: Unhandled rejection with value: object "NotSupportedError: Screen orientation locking is not supported" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
LayoutTests/imported/w3c/web-platform-tests/screen-orientation/lock-basic-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
|
||
Harness Error (FAIL), message = Test named 'Test that screen.orientation.lock returns a promise which will be fulfilled with a void value.' specified 1 'cleanup' function, and 1 failed. | ||
|
||
FAIL Test that screen.orientation.lock returns a promise which will be fulfilled with a void value. promise_test: Unhandled rejection with value: object "NotSupportedError: Screen orientation locking is not supported" | ||
NOTRUN Test that screen.orientation.lock returns a pending promise. | ||
NOTRUN Test that screen.orientation.lock() is actually async | ||
PASS Test that screen.orientation.lock returns a pending promise. | ||
FAIL Test that screen.orientation.lock() is actually async promise_test: Unhandled rejection with value: object "NotSupportedError: Screen orientation locking is not supported" | ||
|
7 changes: 5 additions & 2 deletions
7
LayoutTests/imported/w3c/web-platform-tests/screen-orientation/nested-documents-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
CONSOLE MESSAGE: Unhandled Promise Rejection: NotSupportedError: Screen orientation locking is not supported | ||
CONSOLE MESSAGE: Unhandled Promise Rejection: SecurityError: Locking the screen orientation is only allowed when in fullscreen | ||
CONSOLE MESSAGE: Unhandled Promise Rejection: NotSupportedError: Screen orientation locking is not supported | ||
|
||
|
||
Harness Error (FAIL), message = Test named 'Requesting orientation lock from one document cancels the lock request from another document' specified 1 'cleanup' function, and 1 failed. | ||
Harness Error (FAIL), message = Unhandled rejection: Screen orientation locking is not supported | ||
|
||
FAIL Requesting orientation lock from one document cancels the lock request from another document promise_rejects_dom: function "function () { throw e }" threw object "SecurityError: Locking the screen orientation is only allowed when in fullscreen" that is not a DOMException AbortError: property "code" is equal to 18, expected 20 | ||
NOTRUN The orientation lock from one document affects lock requests from other documents | ||
FAIL The orientation lock from one document affects lock requests from other documents promise_rejects_dom: Expected request to lock orientation from iframe 0 to abort function "function () { throw e }" threw object "SecurityError: Locking the screen orientation is only allowed when in fullscreen" that is not a DOMException AbortError: property "code" is equal to 18, expected 20 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
LayoutTests/imported/w3c/web-platform-tests/screen-orientation/onchange-event-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
|
||
Harness Error (FAIL), message = Test named 'Test that orientationchange event is not fired when the orientation does not change.' specified 1 'cleanup' function, and 1 failed. | ||
|
||
FAIL Test that orientationchange event is not fired when the orientation does not change. promise_test: Unhandled rejection with value: object "NotSupportedError: Screen orientation locking is not supported" | ||
NOTRUN Test that orientationchange event is fired when the orientation changes. | ||
FAIL Test that orientationchange event is fired when the orientation changes. promise_test: Unhandled rejection with value: object "NotSupportedError: Screen orientation locking is not supported" | ||
|
4 changes: 2 additions & 2 deletions
4
...s/imported/w3c/web-platform-tests/screen-orientation/onchange-event-subframe-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
|
||
|
||
Harness Error (FAIL), message = Test named 'Test subframes receive orientation change events' specified 1 'cleanup' function, and 1 failed. | ||
Harness Error (FAIL), message = Timeout while running cleanup for test named "Check directly that events are fired in right order (from top to bottom)". | ||
|
||
FAIL Test subframes receive orientation change events promise_test: Unhandled rejection with value: object "NotSupportedError: Screen orientation locking is not supported" | ||
NOTRUN Check directly that events are fired in right order (from top to bottom) | ||
FAIL Check directly that events are fired in right order (from top to bottom) promise_test: Unhandled rejection with value: object "NotSupportedError: Screen orientation locking is not supported" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
...Tests/imported/w3c/web-platform-tests/screen-orientation/orientation-reading-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
|
||
Harness Error (FAIL), message = Test named 'Test the orientations and associated angles when the natural orientation is 'portrait'' specified 1 'cleanup' function, and 1 failed. | ||
|
||
PASS screen.orientation attributes are present | ||
PASS Test the orientations and associated angles when the natural orientation is 'portrait' | ||
NOTRUN Test the orientations and associated angles when the natural orientation is 'landscape' | ||
PASS Test the orientations and associated angles when the natural orientation is 'landscape' | ||
PASS Test that ScreenOrientation properties are not writable | ||
PASS Test that ScreenOrientation is always the same object | ||
NOTRUN Test that ScreenOrientation's attribute values change after 'change' event fires | ||
FAIL Test that ScreenOrientation's attribute values change after 'change' event fires promise_test: Unhandled rejection with value: object "NotSupportedError: Screen orientation locking is not supported" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
LayoutTests/imported/w3c/web-platform-tests/screen-orientation/unlock-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
|
||
Harness Error (FAIL), message = Test named 'unlock() doesn't throw when there is no lock with fullscreen' specified 1 'cleanup' function, and 1 failed. | ||
|
||
PASS unlock() doesn't throw when there is no lock | ||
PASS unlock() returns a void value | ||
PASS unlock() doesn't throw when there is no lock with fullscreen | ||
NOTRUN unlock() aborts a pending lock request | ||
NOTRUN unlock() aborts a pending lock request across documents | ||
FAIL unlock() aborts a pending lock request promise_rejects_dom: function "function () { throw e }" threw object "NotSupportedError: Screen orientation locking is not supported" that is not a DOMException AbortError: property "code" is equal to 9, expected 20 | ||
FAIL unlock() aborts a pending lock request across documents promise_rejects_dom: function "function () { throw e }" threw object "SecurityError: Locking the screen orientation is only allowed when in fullscreen" that is not a DOMException AbortError: property "code" is equal to 18, expected 20 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters