Some tiled drawing tests use scalePageBy() incorrectly
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 9 Feb 2013 02:20:48 +0000 (02:20 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 9 Feb 2013 02:20:48 +0000 (02:20 +0000)
https://bugs.webkit.org/show_bug.cgi?id=109336

Rubber-stamped by Simon Fraser.

scalePageBy takes (scale, x, y). Some of the tiled drawing tests are incorrectly handing them (scale, scale).
Adjust the tests and the expected results.

* platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-zoomed.html:
* platform/mac-wk2/tiled-drawing/fixed/four-bars-zoomed-expected.txt:
* platform/mac-wk2/tiled-drawing/fixed/four-bars-zoomed.html:
* platform/mac-wk2/tiled-drawing/tiled-drawing-zoom-expected.txt:
* platform/mac-wk2/tiled-drawing/tiled-drawing-zoom-scrolled.html:
* platform/mac-wk2/tiled-drawing/tiled-drawing-zoom.html:

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

LayoutTests/ChangeLog
LayoutTests/platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-zoomed.html
LayoutTests/platform/mac-wk2/tiled-drawing/fixed/four-bars-zoomed-expected.txt
LayoutTests/platform/mac-wk2/tiled-drawing/fixed/four-bars-zoomed.html
LayoutTests/platform/mac-wk2/tiled-drawing/tiled-drawing-zoom-expected.txt
LayoutTests/platform/mac-wk2/tiled-drawing/tiled-drawing-zoom-scrolled.html
LayoutTests/platform/mac-wk2/tiled-drawing/tiled-drawing-zoom.html

index e7712d0a2bb44689e088f659bbd3f125cb89e4e7..3c7da2232a9815870df08cb7dc11eddd54c09bb5 100644 (file)
@@ -1,3 +1,20 @@
+2013-02-08  Tim Horton  <timothy_horton@apple.com>
+
+        Some tiled drawing tests use scalePageBy() incorrectly
+        https://bugs.webkit.org/show_bug.cgi?id=109336
+
+        Rubber-stamped by Simon Fraser.
+
+        scalePageBy takes (scale, x, y). Some of the tiled drawing tests are incorrectly handing them (scale, scale).
+        Adjust the tests and the expected results.
+
+        * platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-zoomed.html:
+        * platform/mac-wk2/tiled-drawing/fixed/four-bars-zoomed-expected.txt:
+        * platform/mac-wk2/tiled-drawing/fixed/four-bars-zoomed.html:
+        * platform/mac-wk2/tiled-drawing/tiled-drawing-zoom-expected.txt:
+        * platform/mac-wk2/tiled-drawing/tiled-drawing-zoom-scrolled.html:
+        * platform/mac-wk2/tiled-drawing/tiled-drawing-zoom.html:
+
 2013-02-08  Andy Estes  <aestes@apple.com>
 
         Restore pre-r118852 behavior for EllipsisBox::nodeAtPoint()
index 92efd182d13576a23b17906318a7547b781d6975..d291e6bb6f41a5d87471f896a65a91d9b150a13c 100644 (file)
@@ -29,7 +29,7 @@
     function doTest()
     {
         if (window.eventSender)
-            eventSender.scalePageBy(2.3, 2.3);
+            eventSender.scalePageBy(2.3, 0, 0);
 
         window.scrollTo(0, 200);
 
index 44e62e17a24972f587d771217832360e976dc72e..96c4c9e519cb272ad9f7ecd10d0041fa2bc52a59 100644 (file)
@@ -2,7 +2,6 @@
   (viewport rect 0 0 785 585)
   (contents size 1805 5108)
   (frame scale factor 2.30)
-  (requested scroll position 2 0)
   (children 3
     (Fixed node
       (anchor edges: AnchorEdgeLeft AnchorEdgeTop)
@@ -23,7 +22,7 @@
 
 (GraphicsLayer
   (bounds 1805.00 5108.00)
-  (visible rect 2.00, 0.00 785.00 x 585.00)
+  (visible rect 0.00, 0.00 785.00 x 585.00)
   (children 1
     (GraphicsLayer
       (anchor 0.00 0.00)
@@ -32,7 +31,7 @@
       (drawsContent 1)
       (backgroundColor #FFFFFF)
       (transform [2.30 0.00 0.00 0.00] [0.00 2.30 0.00 0.00] [0.00 0.00 1.00 0.00] [0.00 0.00 0.00 1.00])
-      (visible rect 0.87, 0.00 341.30 x 254.35)
+      (visible rect 0.00, 0.00 341.30 x 254.35)
       (tile cache coverage 0, 0 784 x 890)
       (tile size 512 x 512)
       (top left tile 0, 0 tiles grid 4 x 4)
@@ -43,7 +42,7 @@
             (GraphicsLayer
               (bounds 778.00 74.00)
               (drawsContent 1)
-              (visible rect 0.87, 0.00 341.30 x 74.00)
+              (visible rect 0.00, 0.00 341.30 x 74.00)
             )
             (GraphicsLayer
               (position 10.00 200.00)
index 9dd7e22acfbf8519f47ae87db8ca93f4903e8314..1d14b2d81015800083867a22cf0533b76d6e6933 100644 (file)
@@ -53,7 +53,7 @@
     {
         window.setTimeout(function() {
             if (window.eventSender)
-                eventSender.scalePageBy(2.3, 2.3);
+                eventSender.scalePageBy(2.3, 0, 0);
 
             if (window.testRunner) {
                 document.getElementById('results').textContent = window.internals.scrollingStateTreeAsText(document) + '\n' +
index c8377b491ab3de166186b6c098555bc52e75879d..20012d4459d7fad026c44b598b98d3e7dad55f76 100644 (file)
@@ -1,6 +1,6 @@
 (GraphicsLayer
   (bounds 1805.00 1345.00)
-  (visible rect 2.00, 0.00 785.00 x 585.00)
+  (visible rect 0.00, 0.00 785.00 x 585.00)
   (children 1
     (GraphicsLayer
       (anchor 0.00 0.00)
@@ -9,7 +9,7 @@
       (drawsContent 1)
       (backgroundColor #FFFFFF)
       (transform [2.30 0.00 0.00 0.00] [0.00 2.30 0.00 0.00] [0.00 0.00 1.00 0.00] [0.00 0.00 0.00 1.00])
-      (visible rect 0.87, 0.00 341.30 x 254.35)
+      (visible rect 0.00, 0.00 341.30 x 254.35)
       (tile cache coverage 0, 0 784 x 584)
       (tile size 512 x 512)
       (top left tile 0, 0 tiles grid 4 x 3)
index 048481ac0f778464198ee5abbb8d34fcb8229149..61a97d546c725826ace1569f140a929b241e5483 100644 (file)
@@ -15,7 +15,7 @@
         function doTest()
         {
             if (window.eventSender)
-                eventSender.scalePageBy(2.3, 2.3);
+                eventSender.scalePageBy(2.3, 0, 0);
 
             window.scrollTo(800, 1000);
 
index a11c4cc62fa363c08447d652b5620f8de167d397..ed55bcb1a6e7379933594284ea8d5a8ed42dfa0c 100644 (file)
@@ -9,7 +9,7 @@
         function doTest()
         {
             if (window.eventSender)
-                eventSender.scalePageBy(2.3, 2.3);
+                eventSender.scalePageBy(2.3, 0, 0);
 
             if (window.internals) {
                 document.getElementById('layers').innerText = internals.layerTreeAsText(document,