Add a layout test for r230785
authorwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 22 Apr 2018 21:23:16 +0000 (21:23 +0000)
committerwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 22 Apr 2018 21:23:16 +0000 (21:23 +0000)
https://bugs.webkit.org/show_bug.cgi?id=184757

Reviewed by Beth Dakin.

Adds a new layout test to verify that true screen dimensions in extra zoom mode
are observable from the page, via window.screen.

* TestExpectations:
* fast/dom/Window/extrazoom/window-get-real-screen-dimensions.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@230901 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/TestExpectations
LayoutTests/fast/dom/Window/extrazoom/window-get-real-screen-dimensions-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/Window/extrazoom/window-get-real-screen-dimensions.html [new file with mode: 0644]

index c0ab201..06a5799 100644 (file)
@@ -1,3 +1,16 @@
+2018-04-22  Wenson Hsieh  <wenson_hsieh@apple.com>
+
+        Add a layout test for r230785
+        https://bugs.webkit.org/show_bug.cgi?id=184757
+
+        Reviewed by Beth Dakin.
+
+        Adds a new layout test to verify that true screen dimensions in extra zoom mode
+        are observable from the page, via window.screen.
+
+        * TestExpectations:
+        * fast/dom/Window/extrazoom/window-get-real-screen-dimensions.html: Added.
+
 2018-04-21  Antoine Quint  <graouts@apple.com>
 
         [Modern Media Controls] Show a loading indicator after pressing the play button in compact mode
index 3c7dcdc..34131eb 100644 (file)
@@ -18,6 +18,7 @@ editing/caret/ios [ Skip ]
 editing/pasteboard/gtk [ Skip ]
 editing/selection/ios [ Skip ]
 tiled-drawing [ Skip ]
+fast/dom/Window/extrazoom [ Skip ]
 fast/forms/extrazoom [ Skip ]
 fast/visual-viewport/extrazoom [ Skip ]
 fast/visual-viewport/tiled-drawing [ Skip ]
diff --git a/LayoutTests/fast/dom/Window/extrazoom/window-get-real-screen-dimensions-expected.txt b/LayoutTests/fast/dom/Window/extrazoom/window-get-real-screen-dimensions-expected.txt
new file mode 100644 (file)
index 0000000..ad6a59d
--- /dev/null
@@ -0,0 +1,6 @@
+PASS screen.width is 320
+PASS screen.height is 568
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/fast/dom/Window/extrazoom/window-get-real-screen-dimensions.html b/LayoutTests/fast/dom/Window/extrazoom/window-get-real-screen-dimensions.html
new file mode 100644 (file)
index 0000000..ad0a870
--- /dev/null
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../../../resources/js-test.js"></script>
+</head>
+<body></body>
+<script>
+shouldBe("screen.width", "320");
+shouldBe("screen.height", "568");
+</script>
+</html>
\ No newline at end of file