Add layout test for scrollLeft/Top setting bug.
authorhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 2 May 2006 20:45:29 +0000 (20:45 +0000)
committerhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 2 May 2006 20:45:29 +0000 (20:45 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14160 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/fast/overflow/008-expected.checksum [new file with mode: 0644]
LayoutTests/fast/overflow/008-expected.png [new file with mode: 0644]
LayoutTests/fast/overflow/008-expected.txt [new file with mode: 0644]
LayoutTests/fast/overflow/008.html [new file with mode: 0644]

diff --git a/LayoutTests/fast/overflow/008-expected.checksum b/LayoutTests/fast/overflow/008-expected.checksum
new file mode 100644 (file)
index 0000000..7c60ade
--- /dev/null
@@ -0,0 +1 @@
+cbda5dcb56870123d90bd44a66426e15
\ No newline at end of file
diff --git a/LayoutTests/fast/overflow/008-expected.png b/LayoutTests/fast/overflow/008-expected.png
new file mode 100644 (file)
index 0000000..5168f90
Binary files /dev/null and b/LayoutTests/fast/overflow/008-expected.png differ
diff --git a/LayoutTests/fast/overflow/008-expected.txt b/LayoutTests/fast/overflow/008-expected.txt
new file mode 100644 (file)
index 0000000..bb64221
--- /dev/null
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+  RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock (anonymous) at (0,200) size 784x18
+        RenderText {#text} at (0,0) size 589x18
+          text run at (0,0) width 364: "The word 'PASSED' should be scrolled into view above. "
+          text run at (364,0) width 225: "If you don't see it the test has failed."
+        RenderText {#text} at (0,0) size 0x0
+layer at (8,8) size 200x200 clip at (8,8) size 185x185 scrollX 200 scrollY 200 scrollWidth 400 scrollHeight 400
+  RenderBlock {DIV} at (0,0) size 200x200
+    RenderBlock {DIV} at (0,0) size 400x400 [color=#FFFFFF] [bgcolor=#008000]
+      RenderText {#text} at (200,200) size 61x18
+        text run at (200,200) width 61: "PASSED"
diff --git a/LayoutTests/fast/overflow/008.html b/LayoutTests/fast/overflow/008.html
new file mode 100644 (file)
index 0000000..78d4cb5
--- /dev/null
@@ -0,0 +1,11 @@
+<html>
+<body><div style="overflow:auto;width:200px;height:200px;">
+</div>
+
+The word 'PASSED' should be scrolled into view above.  If you don't see it the test has failed.
+
+<script>
+document.body.firstChild.innerHTML = "<div style='padding-top:200px;width:200px;padding-left:200px; height:200px;background-color:green;color:white'>PASSED</div>";
+document.body.firstChild.scrollLeft = 200;
+document.body.firstChild.scrollTop = 200;
+</script>