Add two more tiled scrolling tests
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 25 Oct 2012 00:50:02 +0000 (00:50 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 25 Oct 2012 00:50:02 +0000 (00:50 +0000)
https://bugs.webkit.org/show_bug.cgi?id=100314

Reviewed by Beth Dakin.

Two new tests for TileCache tile coverage after scrolling.

* platform/mac/tiled-drawing/tile-coverage-after-scroll-expected.txt: Added.
* platform/mac/tiled-drawing/tile-coverage-after-scroll.html: Added.
* platform/mac/tiled-drawing/tile-coverage-scroll-to-bottom-expected.txt: Added.
* platform/mac/tiled-drawing/tile-coverage-scroll-to-bottom.html: Added.

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

LayoutTests/ChangeLog
LayoutTests/platform/mac/tiled-drawing/tile-coverage-after-scroll-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/tiled-drawing/tile-coverage-after-scroll.html [new file with mode: 0644]
LayoutTests/platform/mac/tiled-drawing/tile-coverage-scroll-to-bottom-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/tiled-drawing/tile-coverage-scroll-to-bottom.html [new file with mode: 0644]

index 85ca8c4..25bd660 100644 (file)
@@ -1,3 +1,17 @@
+2012-10-24  Simon Fraser  <simon.fraser@apple.com>
+
+        Add two more tiled scrolling tests
+        https://bugs.webkit.org/show_bug.cgi?id=100314
+
+        Reviewed by Beth Dakin.
+
+        Two new tests for TileCache tile coverage after scrolling.
+
+        * platform/mac/tiled-drawing/tile-coverage-after-scroll-expected.txt: Added.
+        * platform/mac/tiled-drawing/tile-coverage-after-scroll.html: Added.
+        * platform/mac/tiled-drawing/tile-coverage-scroll-to-bottom-expected.txt: Added.
+        * platform/mac/tiled-drawing/tile-coverage-scroll-to-bottom.html: Added.
+
 2012-10-24  Beth Dakin  <bdakin@apple.com>
 
         Updated results for https://bugs.webkit.org/show_bug.cgi?id=100312
diff --git a/LayoutTests/platform/mac/tiled-drawing/tile-coverage-after-scroll-expected.txt b/LayoutTests/platform/mac/tiled-drawing/tile-coverage-after-scroll-expected.txt
new file mode 100644 (file)
index 0000000..972a38d
--- /dev/null
@@ -0,0 +1,19 @@
+(GraphicsLayer
+  (bounds 785.00 5021.00)
+  (visible rect 0.00, 3000.00 785.00 x 600.00)
+  (children 1
+    (GraphicsLayer
+      (bounds 785.00 5021.00)
+      (drawsContent 1)
+      (backgroundColor #FFFFFF)
+      (visible rect 0.00, 3000.00 785.00 x 600.00)
+      (tile cache coverage 0, 2048 785 x 2560)
+      (children 1
+        (GraphicsLayer
+          (visible rect 0.00, 0.00 0.00 x 0.00)
+        )
+      )
+    )
+  )
+)
+
diff --git a/LayoutTests/platform/mac/tiled-drawing/tile-coverage-after-scroll.html b/LayoutTests/platform/mac/tiled-drawing/tile-coverage-after-scroll.html
new file mode 100644 (file)
index 0000000..dfe0c36
--- /dev/null
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+    <style>
+        body {
+            height: 5000px;
+        }
+    </style>
+    <script>
+        if (window.testRunner)
+            testRunner.dumpAsText();
+
+        function doTest()
+        {
+            window.scrollTo(0, 3000);
+            if (window.internals) {
+                document.getElementById('layers').innerText = internals.layerTreeAsText(document,
+                    internals.LAYER_TREE_INCLUDES_VISIBLE_RECTS | internals.LAYER_TREE_INCLUDES_TILE_CACHES);
+            }
+        }
+        window.addEventListener('load', doTest, false);
+    </script>
+</head>
+<body>
+<pre id="layers">Layer tree goes here</p>
+</body>
+</html>
diff --git a/LayoutTests/platform/mac/tiled-drawing/tile-coverage-scroll-to-bottom-expected.txt b/LayoutTests/platform/mac/tiled-drawing/tile-coverage-scroll-to-bottom-expected.txt
new file mode 100644 (file)
index 0000000..e067785
--- /dev/null
@@ -0,0 +1,19 @@
+(GraphicsLayer
+  (bounds 785.00 5021.00)
+  (visible rect 0.00, 5000.00 785.00 x 21.00)
+  (children 1
+    (GraphicsLayer
+      (bounds 785.00 5021.00)
+      (drawsContent 1)
+      (backgroundColor #FFFFFF)
+      (visible rect 0.00, 5000.00 785.00 x 21.00)
+      (tile cache coverage 0, 4096 785 x 925)
+      (children 1
+        (GraphicsLayer
+          (visible rect 0.00, 0.00 0.00 x 0.00)
+        )
+      )
+    )
+  )
+)
+
diff --git a/LayoutTests/platform/mac/tiled-drawing/tile-coverage-scroll-to-bottom.html b/LayoutTests/platform/mac/tiled-drawing/tile-coverage-scroll-to-bottom.html
new file mode 100644 (file)
index 0000000..6852f2c
--- /dev/null
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+    <style>
+        body {
+            height: 5000px;
+        }
+    </style>
+    <script>
+        if (window.testRunner)
+            testRunner.dumpAsText();
+
+        function doTest()
+        {
+            window.scrollTo(0, 5000);
+            if (window.internals) {
+                document.getElementById('layers').innerText = internals.layerTreeAsText(document,
+                    internals.LAYER_TREE_INCLUDES_VISIBLE_RECTS | internals.LAYER_TREE_INCLUDES_TILE_CACHES);
+            }
+        }
+        window.addEventListener('load', doTest, false);
+    </script>
+</head>
+<body>
+<pre id="layers">Layer tree goes here</p>
+</body>
+</html>