Title: [240964] trunk/LayoutTests
Revision
240964
Author
jbed...@apple.com
Date
2019-02-04 22:19:50 -0800 (Mon, 04 Feb 2019)

Log Message

[iPad] Initial test gardening (Part 1)
https://bugs.webkit.org/show_bug.cgi?id=193767
<rdar://problem/47515175>

Unreviewed test gardening.

A number of tests need to be re-baselined when run on iPad because of the larger screen.


* fast/canvas/canvas-too-large-to-draw.html: iOS userAgent regex should match iPhones and iPads.
* fast/events/touch/ios/target-taller-than-view.html: Move event listener since tabpPointY is the value we should compare against.
* fast/visual-viewport/ios/min-scale-greater-than-one.html: expectedTop depends on the screen size of the device.
* platform/ipad/fast/events: Added.
* platform/ipad/fast/events/ios: Added.
* platform/ipad/fast/events/ios/keyboard-should-not-trigger-resize-expected.txt: Added.
* platform/ipad/fast/events/ios/rotation: Added.
* platform/ipad/fast/events/ios/rotation/zz-no-rotation-expected.txt: Added.
* platform/ipad/fast/events/touch: Added.
* platform/ipad/fast/events/touch/ios: Added.
* platform/ipad/fast/events/touch/ios/target-taller-than-view-expected.txt: Added.
* platform/ipad/fast/scrolling: Added.
* platform/ipad/fast/scrolling/ios: Added.
* platform/ipad/fast/scrolling/ios/clipping-ancestor-with-accelerated-scrolling-ancestor-expected.txt: Added.
* platform/ipad/fast/scrolling/ios/overflow-scrolling-ancestor-clip-expected.txt: Added.
* platform/ipad/fast/scrolling/ios/overflow-scrolling-ancestor-clip-size-expected.txt: Added.
* platform/ipad/fast/scrolling/ios/scrolling-content-clip-to-viewport-expected.txt: Added.
* platform/ipad/fast/scrolling/ios/subpixel-overflow-scrolling-with-ancestor-expected.txt: Added.
* platform/ipad/fast/scrolling/ios/touch-stacking-expected.txt: Added.
* platform/ipad/fast/viewport/ios: Added.
* platform/ipad/fast/viewport/ios/device-width-viewport-after-changing-view-scale-expected.txt: Added.
* platform/ipad/fast/viewport/ios/initial-scale-after-changing-view-scale-expected.txt: Added.
* platform/ipad/fast/viewport/ios/use-minimum-device-width-for-page-without-viewport-meta-expected.txt: Added.
* platform/ipad/fast/viewport/ios/width-is-device-width-expected.txt: Added.
* platform/ipad/fast/viewport/ios/width-is-device-width-overflowing-body-overflow-hidden-expected.txt: Added.
* platform/ipad/fast/viewport/ios/width-is-device-width-overflowing-body-overflow-hidden-tall-expected.txt: Added.
* platform/ipad/fast/viewport/ios/width-is-device-width-overflowing-expected.txt: Added.
* platform/ipad/fast/viewport/ios/width-is-device-width-overflowing-no-shrink-to-fit-expected.txt: Added.
* platform/ipad/platform: Added.
* platform/ipad/platform/ios: Added.
* platform/ipad/platform/ios/ios: Added.
* platform/ipad/platform/ios/ios/fast: Added.
* platform/ipad/platform/ios/ios/fast/text: Added.
* platform/ipad/platform/ios/ios/fast/text/opticalFontWithTextStyle-expected.txt: Added.
* platform/ipad/scrollingcoordinator: Added.
* platform/ipad/scrollingcoordinator/ios: Added.
* platform/ipad/scrollingcoordinator/ios/sync-layer-positions-after-scroll-expected.txt: Added.
* platform/ipad/scrollingcoordinator/ios/ui-scrolling-tree-expected.txt: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (240963 => 240964)


--- trunk/LayoutTests/ChangeLog	2019-02-05 04:34:56 UTC (rev 240963)
+++ trunk/LayoutTests/ChangeLog	2019-02-05 06:19:50 UTC (rev 240964)
@@ -1,3 +1,52 @@
+2019-02-04  Jonathan Bedard  <jbed...@apple.com>
+
+        [iPad] Initial test gardening (Part 1)
+        https://bugs.webkit.org/show_bug.cgi?id=193767
+        <rdar://problem/47515175>
+
+        Unreviewed test gardening.
+
+        A number of tests need to be re-baselined when run on iPad because of the larger screen.
+
+        * fast/canvas/canvas-too-large-to-draw.html: iOS userAgent regex should match iPhones and iPads.
+        * fast/events/touch/ios/target-taller-than-view.html: Move event listener since tabpPointY is the value we should compare against.
+        * fast/visual-viewport/ios/min-scale-greater-than-one.html: expectedTop depends on the screen size of the device.
+        * platform/ipad/fast/events: Added.
+        * platform/ipad/fast/events/ios: Added.
+        * platform/ipad/fast/events/ios/keyboard-should-not-trigger-resize-expected.txt: Added.
+        * platform/ipad/fast/events/ios/rotation: Added.
+        * platform/ipad/fast/events/ios/rotation/zz-no-rotation-expected.txt: Added.
+        * platform/ipad/fast/events/touch: Added.
+        * platform/ipad/fast/events/touch/ios: Added.
+        * platform/ipad/fast/events/touch/ios/target-taller-than-view-expected.txt: Added.
+        * platform/ipad/fast/scrolling: Added.
+        * platform/ipad/fast/scrolling/ios: Added.
+        * platform/ipad/fast/scrolling/ios/clipping-ancestor-with-accelerated-scrolling-ancestor-expected.txt: Added.
+        * platform/ipad/fast/scrolling/ios/overflow-scrolling-ancestor-clip-expected.txt: Added.
+        * platform/ipad/fast/scrolling/ios/overflow-scrolling-ancestor-clip-size-expected.txt: Added.
+        * platform/ipad/fast/scrolling/ios/scrolling-content-clip-to-viewport-expected.txt: Added.
+        * platform/ipad/fast/scrolling/ios/subpixel-overflow-scrolling-with-ancestor-expected.txt: Added.
+        * platform/ipad/fast/scrolling/ios/touch-stacking-expected.txt: Added.
+        * platform/ipad/fast/viewport/ios: Added.
+        * platform/ipad/fast/viewport/ios/device-width-viewport-after-changing-view-scale-expected.txt: Added.
+        * platform/ipad/fast/viewport/ios/initial-scale-after-changing-view-scale-expected.txt: Added.
+        * platform/ipad/fast/viewport/ios/use-minimum-device-width-for-page-without-viewport-meta-expected.txt: Added.
+        * platform/ipad/fast/viewport/ios/width-is-device-width-expected.txt: Added.
+        * platform/ipad/fast/viewport/ios/width-is-device-width-overflowing-body-overflow-hidden-expected.txt: Added.
+        * platform/ipad/fast/viewport/ios/width-is-device-width-overflowing-body-overflow-hidden-tall-expected.txt: Added.
+        * platform/ipad/fast/viewport/ios/width-is-device-width-overflowing-expected.txt: Added.
+        * platform/ipad/fast/viewport/ios/width-is-device-width-overflowing-no-shrink-to-fit-expected.txt: Added.
+        * platform/ipad/platform: Added.
+        * platform/ipad/platform/ios: Added.
+        * platform/ipad/platform/ios/ios: Added.
+        * platform/ipad/platform/ios/ios/fast: Added.
+        * platform/ipad/platform/ios/ios/fast/text: Added.
+        * platform/ipad/platform/ios/ios/fast/text/opticalFontWithTextStyle-expected.txt: Added.
+        * platform/ipad/scrollingcoordinator: Added.
+        * platform/ipad/scrollingcoordinator/ios: Added.
+        * platform/ipad/scrollingcoordinator/ios/sync-layer-positions-after-scroll-expected.txt: Added.
+        * platform/ipad/scrollingcoordinator/ios/ui-scrolling-tree-expected.txt: Added.
+
 2019-02-04  Ms2ger  <ms2...@igalia.com>
 
         [GTK][WPE] Need a function to convert internal URI to display ("pretty") URI

Modified: trunk/LayoutTests/fast/canvas/canvas-too-large-to-draw.html (240963 => 240964)


--- trunk/LayoutTests/fast/canvas/canvas-too-large-to-draw.html	2019-02-05 04:34:56 UTC (rev 240963)
+++ trunk/LayoutTests/fast/canvas/canvas-too-large-to-draw.html	2019-02-05 06:19:50 UTC (rev 240964)
@@ -16,7 +16,7 @@
     if (window.testRunner)
       window.testRunner.dumpAsText();
 
-    var iOSPlatform = navigator.userAgent.search(/\biPhone OS\b/) != -1;
+    var iOSPlatform = navigator.userAgent.search(/\b(iPhone OS|iPad)\b/) != -1;
     var OSXYosemiteOrOlder = navigator.userAgent.search(/\bMac OS X 10_(8|9|10)(_[0-9]+)?\b/) != -1;
     var MAX_WIDTH = iOSPlatform ? Math.pow(2, 12) : (OSXYosemiteOrOlder ? Math.pow(2, 13) : Math.pow(2, 14));
     var MAX_HEIGHT = MAX_WIDTH;

Modified: trunk/LayoutTests/fast/events/touch/ios/target-taller-than-view.html (240963 => 240964)


--- trunk/LayoutTests/fast/events/touch/ios/target-taller-than-view.html	2019-02-05 04:34:56 UTC (rev 240963)
+++ trunk/LayoutTests/fast/events/touch/ios/target-taller-than-view.html	2019-02-05 06:19:50 UTC (rev 240964)
@@ -42,12 +42,6 @@
         function runTest()
         {
             var container = document.getElementById('container');
-            target.addEventListener('touchstart', function() {
-                debug("touchstart fired.");
-                shouldBe("event.touches.length", "1");
-                shouldBe("event.touches[0].clientX", "113");
-                shouldBe("event.touches[0].clientY", "178");
-            }, false);
 
             window.addEventListener("touchend", (event) => {
                 debug("touchend fired.");
@@ -59,6 +53,13 @@
             var tapPointX = targetRect.x + targetRect.width / 2;
             var tapPointY = targetRect.y + 50; // Tap near the top.
 
+            target.addEventListener('touchstart', function() {
+                debug("touchstart fired.");
+                shouldBe("event.touches.length", "1");
+                shouldBe("event.touches[0].clientX", "113");
+                shouldBe("event.touches[0].clientY", String(tapPointY));
+            }, false);
+
             if (window.testRunner)
                 testRunner.runUIScript(getUIScript(tapPointX, tapPointY), function(result) { });
         }

Modified: trunk/LayoutTests/fast/visual-viewport/ios/min-scale-greater-than-one.html (240963 => 240964)


--- trunk/LayoutTests/fast/visual-viewport/ios/min-scale-greater-than-one.html	2019-02-05 04:34:56 UTC (rev 240963)
+++ trunk/LayoutTests/fast/visual-viewport/ios/min-scale-greater-than-one.html	2019-02-05 06:19:50 UTC (rev 240964)
@@ -42,7 +42,7 @@
             debug('Scrolling to bottom');
             testRunner.runUIScript(scrollToBottom(2000), function() {
 
-                expectedTop = 1578;
+                expectedTop = (navigator.userAgent.search(/\b(iPhone OS)\b/) != -1) ? 1578 : 1213;
                 shouldBe('window.scrollY', 'expectedTop');
                 checkBoundingClientRect(300);
                 

Added: trunk/LayoutTests/platform/ipad/fast/events/ios/keyboard-should-not-trigger-resize-expected.txt (0 => 240964)


--- trunk/LayoutTests/platform/ipad/fast/events/ios/keyboard-should-not-trigger-resize-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ipad/fast/events/ios/keyboard-should-not-trigger-resize-expected.txt	2019-02-05 06:19:50 UTC (rev 240964)
@@ -0,0 +1,7 @@
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+After showing the keyboard, window.innerHeight = 1004
+After hiding the keyboard, window.innerHeight = 1004
+

Added: trunk/LayoutTests/platform/ipad/fast/events/ios/rotation/zz-no-rotation-expected.txt (0 => 240964)


--- trunk/LayoutTests/platform/ipad/fast/events/ios/rotation/zz-no-rotation-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ipad/fast/events/ios/rotation/zz-no-rotation-expected.txt	2019-02-05 06:19:50 UTC (rev 240964)
@@ -0,0 +1,6 @@
+PASS successfullyParsed is true
+
+TEST COMPLETE
+FAIL window.innerWidth should be 320. Was 768.
+FAIL window.innerHeight should be 548. Was 1004.
+This test checks that the view is not left in a rotated state after the previous tests.

Added: trunk/LayoutTests/platform/ipad/fast/events/touch/ios/target-taller-than-view-expected.txt (0 => 240964)


--- trunk/LayoutTests/platform/ipad/fast/events/touch/ios/target-taller-than-view-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ipad/fast/events/touch/ios/target-taller-than-view-expected.txt	2019-02-05 06:19:50 UTC (rev 240964)
@@ -0,0 +1,16 @@
+Checks that touches work on elements that are taller than the view.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+touchstart fired.
+PASS event.touches.length is 1
+PASS event.touches[0].clientX is 113
+PASS event.touches[0].clientY is 138
+touchend fired.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+Test
+
+

Added: trunk/LayoutTests/platform/ipad/fast/scrolling/ios/clipping-ancestor-with-accelerated-scrolling-ancestor-expected.txt (0 => 240964)


--- trunk/LayoutTests/platform/ipad/fast/scrolling/ios/clipping-ancestor-with-accelerated-scrolling-ancestor-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ipad/fast/scrolling/ios/clipping-ancestor-with-accelerated-scrolling-ancestor-expected.txt	2019-02-05 06:19:50 UTC (rev 240964)
@@ -0,0 +1,9 @@
+layer at (0,0) size 768x1004
+  RenderView at (0,0) size 768x1004
+layer at (0,0) size 768x316
+  RenderBlock {HTML} at (0,0) size 768x316
+    RenderBody {BODY} at (8,8) size 752x300
+layer at (8,8) size 300x300
+  RenderBlock {DIV} at (0,0) size 300x300
+layer at (8,8) size 100x100 scrollHeight 200
+  RenderBlock {DIV} at (0,0) size 100x100

Added: trunk/LayoutTests/platform/ipad/fast/scrolling/ios/overflow-scrolling-ancestor-clip-expected.txt (0 => 240964)


--- trunk/LayoutTests/platform/ipad/fast/scrolling/ios/overflow-scrolling-ancestor-clip-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ipad/fast/scrolling/ios/overflow-scrolling-ancestor-clip-expected.txt	2019-02-05 06:19:50 UTC (rev 240964)
@@ -0,0 +1,47 @@
+(GraphicsLayer
+  (anchor 0.00 0.00)
+  (bounds 768.00 1004.00)
+  (children 1
+    (GraphicsLayer
+      (bounds 768.00 1004.00)
+      (contentsOpaque 1)
+      (children 1
+        (GraphicsLayer
+          (position 8.00 8.00)
+          (bounds 302.00 402.00)
+          (drawsContent 1)
+          (children 1
+            (GraphicsLayer
+              (offsetFromRenderer width=-1 height=-1)
+              (position 1.00 1.00)
+              (bounds origin 0.00 30.00)
+              (bounds 300.00 400.00)
+              (children 1
+                (GraphicsLayer
+                  (offsetFromRenderer width=1 height=1)
+                  (scrollOffset (0,30))
+                  (anchor 0.00 0.00)
+                  (bounds 300.00 900.00)
+                  (drawsContent 1)
+                  (children 1
+                    (GraphicsLayer
+                      (position 20.00 50.00)
+                      (bounds 260.00 800.00)
+                      (children 1
+                        (GraphicsLayer
+                          (bounds 260.00 800.00)
+                          (contentsOpaque 1)
+                        )
+                      )
+                    )
+                  )
+                )
+              )
+            )
+          )
+        )
+      )
+    )
+  )
+)
+

Added: trunk/LayoutTests/platform/ipad/fast/scrolling/ios/overflow-scrolling-ancestor-clip-size-expected.txt (0 => 240964)


--- trunk/LayoutTests/platform/ipad/fast/scrolling/ios/overflow-scrolling-ancestor-clip-size-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ipad/fast/scrolling/ios/overflow-scrolling-ancestor-clip-size-expected.txt	2019-02-05 06:19:50 UTC (rev 240964)
@@ -0,0 +1,47 @@
+(GraphicsLayer
+  (anchor 0.00 0.00)
+  (bounds 768.00 1004.00)
+  (children 1
+    (GraphicsLayer
+      (bounds 768.00 1004.00)
+      (contentsOpaque 1)
+      (children 1
+        (GraphicsLayer
+          (position 8.00 8.00)
+          (bounds 322.00 422.00)
+          (drawsContent 1)
+          (children 1
+            (GraphicsLayer
+              (offsetFromRenderer width=-11 height=-11)
+              (position 11.00 11.00)
+              (bounds origin 0.00 30.00)
+              (bounds 300.00 400.00)
+              (children 1
+                (GraphicsLayer
+                  (offsetFromRenderer width=11 height=11)
+                  (scrollOffset (0,30))
+                  (anchor 0.00 0.00)
+                  (bounds 300.00 900.00)
+                  (drawsContent 1)
+                  (children 1
+                    (GraphicsLayer
+                      (position 20.00 50.00)
+                      (bounds 260.00 800.00)
+                      (children 1
+                        (GraphicsLayer
+                          (bounds 260.00 800.00)
+                          (contentsOpaque 1)
+                        )
+                      )
+                    )
+                  )
+                )
+              )
+            )
+          )
+        )
+      )
+    )
+  )
+)
+

Added: trunk/LayoutTests/platform/ipad/fast/scrolling/ios/scrolling-content-clip-to-viewport-expected.txt (0 => 240964)


--- trunk/LayoutTests/platform/ipad/fast/scrolling/ios/scrolling-content-clip-to-viewport-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ipad/fast/scrolling/ios/scrolling-content-clip-to-viewport-expected.txt	2019-02-05 06:19:50 UTC (rev 240964)
@@ -0,0 +1,28 @@
+(GraphicsLayer
+  (anchor 0.00 0.00)
+  (bounds 768.00 1004.00)
+  (children 1
+    (GraphicsLayer
+      (bounds 768.00 1004.00)
+      (contentsOpaque 1)
+      (children 1
+        (GraphicsLayer
+          (bounds 320.00 340.00)
+          (children 1
+            (GraphicsLayer
+              (bounds 320.00 340.00)
+              (children 1
+                (GraphicsLayer
+                  (anchor 0.00 0.00)
+                  (bounds 320.00 1224.00)
+                  (drawsContent 1)
+                )
+              )
+            )
+          )
+        )
+      )
+    )
+  )
+)
+

Added: trunk/LayoutTests/platform/ipad/fast/scrolling/ios/subpixel-overflow-scrolling-with-ancestor-expected.txt (0 => 240964)


--- trunk/LayoutTests/platform/ipad/fast/scrolling/ios/subpixel-overflow-scrolling-with-ancestor-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ipad/fast/scrolling/ios/subpixel-overflow-scrolling-with-ancestor-expected.txt	2019-02-05 06:19:50 UTC (rev 240964)
@@ -0,0 +1,43 @@
+(GraphicsLayer
+  (anchor 0.00 0.00)
+  (bounds 768.00 1004.00)
+  (children 1
+    (GraphicsLayer
+      (bounds 768.00 1004.00)
+      (contentsOpaque 1)
+      (children 1
+        (GraphicsLayer
+          (position 8.00 8.00)
+          (bounds 300.00 400.00)
+          (children 1
+            (GraphicsLayer
+              (bounds origin 0.00 30.00)
+              (bounds 300.00 400.00)
+              (children 1
+                (GraphicsLayer
+                  (scrollOffset (0,30))
+                  (anchor 0.00 0.00)
+                  (bounds 300.00 900.00)
+                  (drawsContent 1)
+                  (children 1
+                    (GraphicsLayer
+                      (position 20.00 50.00)
+                      (bounds 260.00 800.00)
+                      (children 1
+                        (GraphicsLayer
+                          (bounds 260.00 800.00)
+                          (contentsOpaque 1)
+                        )
+                      )
+                    )
+                  )
+                )
+              )
+            )
+          )
+        )
+      )
+    )
+  )
+)
+

Added: trunk/LayoutTests/platform/ipad/fast/scrolling/ios/touch-stacking-expected.txt (0 => 240964)


--- trunk/LayoutTests/platform/ipad/fast/scrolling/ios/touch-stacking-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ipad/fast/scrolling/ios/touch-stacking-expected.txt	2019-02-05 06:19:50 UTC (rev 240964)
@@ -0,0 +1,16 @@
+layer at (0,0) size 768x1004
+  RenderView at (0,0) size 768x1004
+layer at (0,0) size 768x148 layerType: background only
+layer at (0,0) size 100x100
+  RenderBlock (positioned) zI: -1 {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 768x148 layerType: foreground only
+  RenderBlock {HTML} at (0,0) size 768x148
+    RenderBody {BODY} at (8,120) size 752x20
+      RenderBlock {DIV} at (0,0) size 752x0
+      RenderBlock {DIV} at (0,0) size 752x20
+        RenderText {#text} at (0,0) size 217x19
+          text run at (0,0) width 217: "PASS: computed zIndex was auto"
+layer at (0,0) size 100x100
+  RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#FFA500]
+layer at (0,0) size 100x100
+  RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#008000]

Added: trunk/LayoutTests/platform/ipad/fast/viewport/ios/device-width-viewport-after-changing-view-scale-expected.txt (0 => 240964)


--- trunk/LayoutTests/platform/ipad/fast/viewport/ios/device-width-viewport-after-changing-view-scale-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ipad/fast/viewport/ios/device-width-viewport-after-changing-view-scale-expected.txt	2019-02-05 06:19:50 UTC (rev 240964)
@@ -0,0 +1,46 @@
+setViewScale(0.50)
+window size: [1536, 2008]
+square size: [154, 201]
+zoom scale: 0.50
+
+setViewScale(0.75)
+window size: [1024, 1339]
+square size: [102, 134]
+zoom scale: 0.75
+
+setViewScale(1.00)
+window size: [768, 1004]
+square size: [77, 100]
+zoom scale: 1.00
+
+setViewScale(1.25)
+window size: [614, 803]
+square size: [61, 80]
+zoom scale: 1.25
+
+setViewScale(1.50)
+window size: [512, 669]
+square size: [51, 67]
+zoom scale: 1.50
+
+setViewScale(1.25)
+window size: [614, 803]
+square size: [61, 80]
+zoom scale: 1.25
+
+setViewScale(1.00)
+window size: [768, 1004]
+square size: [77, 100]
+zoom scale: 1.00
+
+setViewScale(0.75)
+window size: [1024, 1339]
+square size: [102, 134]
+zoom scale: 0.75
+
+setViewScale(0.50)
+window size: [1536, 2008]
+square size: [154, 201]
+zoom scale: 0.50
+
+

Added: trunk/LayoutTests/platform/ipad/fast/viewport/ios/initial-scale-after-changing-view-scale-expected.txt (0 => 240964)


--- trunk/LayoutTests/platform/ipad/fast/viewport/ios/initial-scale-after-changing-view-scale-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ipad/fast/viewport/ios/initial-scale-after-changing-view-scale-expected.txt	2019-02-05 06:19:50 UTC (rev 240964)
@@ -0,0 +1,16 @@
+Initial page scale factor                   : 1.00
+ - Page scale after setViewScale(1.25)      : 1.25
+ - Page scale after setViewScale(0.75)      : 0.75
+ - Page scale after setViewScale(1)         : 1.00
+
+Page scale after double tapping to zoom in  : 1.60
+ - Page scale after setViewScale(1.25)      : 1.60
+ - Page scale after setViewScale(0.75)      : 1.60
+ - Page scale after setViewScale(1)         : 1.60
+
+Page scale after double tapping to zoom out : 1.00
+ - Page scale after setViewScale(1.25)      : 1.25
+ - Page scale after setViewScale(0.75)      : 1.25
+ - Page scale after setViewScale(1)         : 1.25
+
+This test verifies that changing the view scale zooms the page to initial scale, but only if the page was already at initial scale. To manually test, (1) change the zoom scale without changing the page scale in any way, and check that the page zooms to initial scale; (2) now double tap on the box to zoom in, and check that changing zoom levels does not change the page scale; (3) finally, double tap on the box again to zoom back out to initial scale, and check that changing zoom levels automatically zooms the page to initial scale once again.

Added: trunk/LayoutTests/platform/ipad/fast/viewport/ios/use-minimum-device-width-for-page-without-viewport-meta-expected.txt (0 => 240964)


--- trunk/LayoutTests/platform/ipad/fast/viewport/ios/use-minimum-device-width-for-page-without-viewport-meta-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ipad/fast/viewport/ios/use-minimum-device-width-for-page-without-viewport-meta-expected.txt	2019-02-05 06:19:50 UTC (rev 240964)
@@ -0,0 +1,41 @@
+setMinimumEffectiveWidth(640.00)
+window size: [768, 1004]
+square size: [77, 100]
+zoom scale: 1.00
+
+setMinimumEffectiveWidth(768.00)
+window size: [768, 1004]
+square size: [77, 100]
+zoom scale: 1.00
+
+setMinimumEffectiveWidth(834.00)
+window size: [834, 1090]
+square size: [83, 109]
+zoom scale: 0.92
+
+setMinimumEffectiveWidth(980.00)
+window size: [980, 1281]
+square size: [98, 128]
+zoom scale: 0.78
+
+setMinimumEffectiveWidth(1024.00)
+window size: [1024, 1339]
+square size: [102, 134]
+zoom scale: 0.75
+
+setMinimumEffectiveWidth(1112.00)
+window size: [1112, 1454]
+square size: [111, 145]
+zoom scale: 0.69
+
+setMinimumEffectiveWidth(1280.00)
+window size: [1280, 1673]
+square size: [128, 167]
+zoom scale: 0.60
+
+setMinimumEffectiveWidth(1336.00)
+window size: [1336, 1747]
+square size: [134, 175]
+zoom scale: 0.57
+
+

Added: trunk/LayoutTests/platform/ipad/fast/viewport/ios/width-is-device-width-expected.txt (0 => 240964)


--- trunk/LayoutTests/platform/ipad/fast/viewport/ios/width-is-device-width-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ipad/fast/viewport/ios/width-is-device-width-expected.txt	2019-02-05 06:19:50 UTC (rev 240964)
@@ -0,0 +1,6 @@
+Viewport: width=device-width
+
+scale	1.00000
+maxScale	5.00000
+minScale	1.00000
+visibleRect	{"left":"0.00000","top":"0.00000","width":"768.00000","height":"1004.00000"}

Added: trunk/LayoutTests/platform/ipad/fast/viewport/ios/width-is-device-width-overflowing-body-overflow-hidden-expected.txt (0 => 240964)


--- trunk/LayoutTests/platform/ipad/fast/viewport/ios/width-is-device-width-overflowing-body-overflow-hidden-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ipad/fast/viewport/ios/width-is-device-width-overflowing-body-overflow-hidden-expected.txt	2019-02-05 06:19:50 UTC (rev 240964)
@@ -0,0 +1,7 @@
+Viewport: width=device-width
+
+scale	1.00000
+maxScale	5.00000
+minScale	1.00000
+visibleRect	{"left":"0.00000","top":"0.00000","width":"768.00000","height":"1004.00000"}
+

Added: trunk/LayoutTests/platform/ipad/fast/viewport/ios/width-is-device-width-overflowing-body-overflow-hidden-tall-expected.txt (0 => 240964)


--- trunk/LayoutTests/platform/ipad/fast/viewport/ios/width-is-device-width-overflowing-body-overflow-hidden-tall-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ipad/fast/viewport/ios/width-is-device-width-overflowing-body-overflow-hidden-tall-expected.txt	2019-02-05 06:19:50 UTC (rev 240964)
@@ -0,0 +1,7 @@
+Viewport: width=device-width
+
+scale	0.98047
+maxScale	5.00000
+minScale	0.98047
+visibleRect	{"left":"0.00000","top":"0.00000","width":"783.29883","height":"1024.00000"}
+

Added: trunk/LayoutTests/platform/ipad/fast/viewport/ios/width-is-device-width-overflowing-expected.txt (0 => 240964)


--- trunk/LayoutTests/platform/ipad/fast/viewport/ios/width-is-device-width-overflowing-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ipad/fast/viewport/ios/width-is-device-width-overflowing-expected.txt	2019-02-05 06:19:50 UTC (rev 240964)
@@ -0,0 +1,7 @@
+Viewport: width=device-width
+
+scale	1.00000
+maxScale	5.00000
+minScale	1.00000
+visibleRect	{"left":"0.00000","top":"0.00000","width":"768.00000","height":"1004.00000"}
+

Added: trunk/LayoutTests/platform/ipad/fast/viewport/ios/width-is-device-width-overflowing-no-shrink-to-fit-expected.txt (0 => 240964)


--- trunk/LayoutTests/platform/ipad/fast/viewport/ios/width-is-device-width-overflowing-no-shrink-to-fit-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ipad/fast/viewport/ios/width-is-device-width-overflowing-no-shrink-to-fit-expected.txt	2019-02-05 06:19:50 UTC (rev 240964)
@@ -0,0 +1,7 @@
+Viewport: width=device-width, shrink-to-fit=no
+
+scale	1.00000
+maxScale	5.00000
+minScale	1.00000
+visibleRect	{"left":"0.00000","top":"0.00000","width":"768.00000","height":"1004.00000"}
+

Added: trunk/LayoutTests/platform/ipad/platform/ios/ios/fast/text/opticalFontWithTextStyle-expected.txt (0 => 240964)


--- trunk/LayoutTests/platform/ipad/platform/ios/ios/fast/text/opticalFontWithTextStyle-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ipad/platform/ios/ios/fast/text/opticalFontWithTextStyle-expected.txt	2019-02-05 06:19:50 UTC (rev 240964)
@@ -0,0 +1,56 @@
+layer at (0,0) size 800x691
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x691
+  RenderBlock {HTML} at (0,0) size 800x691
+    RenderBody {BODY} at (8,15) size 784x668
+      RenderBlock {DIV} at (0,0) size 784x24
+        RenderText {#text} at (0,1) size 106x22
+          text run at (0,1) width 106: "H1 / Headline"
+      RenderBlock {DIV} at (0,39) size 784x43
+        RenderText {#text} at (0,0) size 150x42
+          text run at (0,0) width 150: "T0 / Title0"
+      RenderBlock {DIV} at (0,97) size 784x35
+        RenderText {#text} at (0,0) size 115x34
+          text run at (0,0) width 115: "T1 / Title1"
+      RenderBlock {DIV} at (0,147) size 784x29
+        RenderText {#text} at (0,1) size 97x27
+          text run at (0,1) width 97: "T2 / Title2"
+      RenderBlock {DIV} at (0,191) size 784x27
+        RenderText {#text} at (0,1) size 90x25
+          text run at (0,1) width 90: "T3 / Title3"
+      RenderBlock {DIV} at (0,233) size 784x50
+        RenderText {#text} at (0,1) size 187x47
+          text run at (0,1) width 187: "T4 / Title4"
+      RenderBlock {DIV} at (0,298) size 784x24
+        RenderText {#text} at (0,1) size 706x22
+          text run at (0,1) width 706: "Body Text: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque ornare ornare mi"
+      RenderBlock {DIV} at (0,337) size 784x26
+        RenderText {#text} at (0,2) size 736x22
+          text run at (0,2) width 736: "Tall Body Text: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque ornare ornare mi"
+      RenderBlock {DIV} at (0,378) size 784x22
+        RenderText {#text} at (0,1) size 85x19
+          text run at (0,1) width 85: "Subheadline"
+      RenderBlock {DIV} at (0,415) size 784x20
+        RenderText {#text} at (0,1) size 83x17
+          text run at (0,1) width 83: "FN / Footnote"
+      RenderBlock {DIV} at (0,450) size 784x17
+        RenderText {#text} at (0,1) size 96x15
+          text run at (0,1) width 96: "Cap 1 / Caption 1"
+      RenderBlock {DIV} at (0,482) size 784x14
+        RenderText {#text} at (0,0) size 92x14
+          text run at (0,0) width 92: "Cap 2 / Caption 2"
+      RenderBlock {DIV} at (0,511) size 784x22
+        RenderText {#text} at (0,0) size 154x22
+          text run at (0,0) width 154: "Short H1 / Headline"
+      RenderBlock {DIV} at (0,548) size 784x22
+        RenderText {#text} at (0,0) size 753x22
+          text run at (0,0) width 753: "Short Body Text: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque ornare ornare mi"
+      RenderBlock {DIV} at (0,585) size 784x20
+        RenderText {#text} at (0,0) size 127x19
+          text run at (0,0) width 127: "Short Subheadline"
+      RenderBlock {DIV} at (0,620) size 784x18
+        RenderText {#text} at (0,0) size 120x17
+          text run at (0,0) width 120: "Short FN / Footnote"
+      RenderBlock {DIV} at (0,653) size 784x15
+        RenderText {#text} at (0,0) size 130x15
+          text run at (0,0) width 130: "Short Cap 1 / Caption 1"

Added: trunk/LayoutTests/platform/ipad/scrollingcoordinator/ios/sync-layer-positions-after-scroll-expected.txt (0 => 240964)


--- trunk/LayoutTests/platform/ipad/scrollingcoordinator/ios/sync-layer-positions-after-scroll-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ipad/scrollingcoordinator/ios/sync-layer-positions-after-scroll-expected.txt	2019-02-05 06:19:50 UTC (rev 240964)
@@ -0,0 +1,20 @@
+visibleRectAfterScroll: {"left":0,"top":190,"width":768,"height":1004}
+(GraphicsLayer
+  (anchor 0.00 0.00)
+  (bounds 1308.00 2021.00)
+  (children 1
+    (GraphicsLayer
+      (bounds 1308.00 2021.00)
+      (contentsOpaque 1)
+      (children 1
+        (GraphicsLayer
+          (position 12.00 10.00)
+          (approximate position 12.00 200.00)
+          (bounds 100.00 100.00)
+          (contentsOpaque 1)
+        )
+      )
+    )
+  )
+)
+

Added: trunk/LayoutTests/platform/ipad/scrollingcoordinator/ios/ui-scrolling-tree-expected.txt (0 => 240964)


--- trunk/LayoutTests/platform/ipad/scrollingcoordinator/ios/ui-scrolling-tree-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ipad/scrollingcoordinator/ios/ui-scrolling-tree-expected.txt	2019-02-05 06:19:50 UTC (rev 240964)
@@ -0,0 +1,20 @@
+
+(scrolling tree
+  (frame scrolling node
+    (scrollable area size width=768 height=1004)
+    (total content size width=1308 height=2021)
+    (last committed scroll position (0,0))
+    (scrollable area parameters 
+      (horizontal scroll elasticity 1)
+      (vertical scroll elasticity 1)
+      (horizontal scrollbar mode 0)
+      (vertical scrollbar mode 0))
+    (layout viewport (0,0) width=768 height=1004)
+    (min layoutViewport origin (0,0))
+    (max layoutViewport origin (540,1017))
+    (behavior for fixed 0)
+    (fixed node
+      (fixed constraints 
+        (viewport-rect-at-last-layout (0,0) width=768 height=1004)
+        (layer-position-at-last-layout (12,10)))
+      (layer top left (12,10))))
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to