Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Screen orientation type should be counter-clockwise
https://bugs.webkit.org/show_bug.cgi?id=255388 rdar://107976966 Reviewed by Chris Dumez. Now reports "landscape-primary" when the device is turned to the left and "landscape-secondary" when the device is turned to the right. This matches the behavior of the other platforms and aligns with the updated W3C Spec: w3c/screen-orientation#248 * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/orientation-reading-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/orientation-reading.html: * LayoutTests/platform/ios/imported/w3c/web-platform-tests/screen-orientation/orientation-reading-expected.txt: * Source/WebCore/platform/ios/ScreenOrientationProviderIOS.mm: (WebCore::ScreenOrientationProvider::platformCurrentOrientation): * Tools/WebKitTestRunner/ios/TestControllerIOS.mm: (WTR::TestController::lockScreenOrientation): * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/orientation-reading-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/orientation-reading.html: * LayoutTests/platform/ios/imported/w3c/web-platform-tests/screen-orientation/orientation-reading-expected.txt: * Source/WebCore/platform/ios/ScreenOrientationProviderIOS.mm: (WebCore::ScreenOrientationProvider::platformCurrentOrientation): * Source/WebKit/UIProcess/ios/PageClientImplIOS.mm: (WebKit::toUIInterfaceOrientationMask): * Tools/WebKitTestRunner/ios/TestControllerIOS.mm: (WTR::TestController::lockScreenOrientation): Canonical link: https://commits.webkit.org/262940@main
- Loading branch information
1 parent
aefb617
commit 9a0e886
Showing
6 changed files
with
97 additions
and
108 deletions.
There are no files selected for viewing
14 changes: 7 additions & 7 deletions
14
...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,10 @@ | ||
|
||
Harness Error (FAIL), message = Test named 'Test the orientations and associated angles' specified 1 'cleanup' function, and 1 failed. | ||
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 Test screen.orientation properties | ||
PASS Test screen.orientation default values. | ||
PASS Test the orientations and associated angles | ||
PASS Test that screen.orientation properties are not writable | ||
PASS Test that screen.orientation is always the same object | ||
NOTRUN Test that screen.orientation values change if the orientation changes | ||
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 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 | ||
|
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
12 changes: 6 additions & 6 deletions
12
...m/ios/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,8 +1,8 @@ | ||
|
||
PASS Test screen.orientation properties | ||
PASS Test screen.orientation default values. | ||
PASS Test the orientations and associated angles | ||
FAIL Test that screen.orientation properties are not writable Attempted to assign to readonly property. | ||
PASS Test that screen.orientation is always the same object | ||
PASS Test that screen.orientation values change if the orientation changes | ||
PASS screen.orientation attributes are present | ||
PASS Test the orientations and associated angles when the natural orientation is 'portrait' | ||
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 | ||
PASS Test that ScreenOrientation's attribute values change after 'change' event fires | ||
|
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