LayoutTests:
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Apr 2006 23:00:41 +0000 (23:00 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Apr 2006 23:00:41 +0000 (23:00 +0000)
        Reviewed by darin

        <http://bugzilla.opendarwin.org/show_bug.cgi?id=8607>
        Automate repaint tests

        * fast/repaint/backgroundSizeRepaint-expected.checksum: Added.
        * fast/repaint/backgroundSizeRepaint-expected.png: Added.
        * fast/repaint/backgroundSizeRepaint-expected.txt: Added.
        * fast/repaint/backgroundSizeRepaint.html: Added.
        * fast/repaint/border-repaint-glitch-expected.checksum: Added.
        * fast/repaint/border-repaint-glitch-expected.png: Added.
        * fast/repaint/border-repaint-glitch-expected.txt: Added.
        * fast/repaint/border-repaint-glitch.html: Added.
        * fast/repaint/bugzilla-3509-expected.checksum: Added.
        * fast/repaint/bugzilla-3509-expected.png: Added.
        * fast/repaint/bugzilla-3509-expected.txt: Added.
        * fast/repaint/bugzilla-3509.html: Added.
        * fast/repaint/bugzilla-5699-expected.checksum: Added.
        * fast/repaint/bugzilla-5699-expected.png: Added.
        * fast/repaint/bugzilla-5699-expected.txt: Added.
        * fast/repaint/bugzilla-5699.html: Added.
        * fast/repaint/bugzilla-6278-expected.checksum: Added.
        * fast/repaint/bugzilla-6278-expected.png: Added.
        * fast/repaint/bugzilla-6278-expected.txt: Added.
        * fast/repaint/bugzilla-6278.html: Added.
        * fast/repaint/bugzilla-6388-expected.checksum: Added.
        * fast/repaint/bugzilla-6388-expected.png: Added.
        * fast/repaint/bugzilla-6388-expected.txt: Added.
        * fast/repaint/bugzilla-6388.html: Added.
        * fast/repaint/bugzilla-6473-expected.checksum: Added.
        * fast/repaint/bugzilla-6473-expected.png: Added.
        * fast/repaint/bugzilla-6473-expected.txt: Added.
        * fast/repaint/bugzilla-6473.html: Added.
        * fast/repaint/bugzilla-7235-expected.checksum: Added.
        * fast/repaint/bugzilla-7235-expected.png: Added.
        * fast/repaint/bugzilla-7235-expected.txt: Added.
        * fast/repaint/bugzilla-7235.html: Added.
        * fast/repaint/inline-outline-repaint-expected.checksum: Added.
        * fast/repaint/inline-outline-repaint-expected.png: Added.
        * fast/repaint/inline-outline-repaint-expected.txt: Added.
        * fast/repaint/inline-outline-repaint.html: Added.
        * fast/repaint/outline-repaint-glitch-expected.checksum: Added.
        * fast/repaint/outline-repaint-glitch-expected.png: Added.
        * fast/repaint/outline-repaint-glitch-expected.txt: Added.
        * fast/repaint/outline-repaint-glitch.html: Added.
        * fast/repaint/repaint-resized-overflow-expected.checksum: Added.
        * fast/repaint/repaint-resized-overflow-expected.png: Added.
        * fast/repaint/repaint-resized-overflow-expected.txt: Added.
        * fast/repaint/repaint-resized-overflow.html: Added.
        * fast/repaint/repaint.js: Added.
        * fast/repaint/resources: Added.
        * fast/repaint/resources/apple.jpg: Added.
        * fast/repaint/table-cell-move-expected.checksum: Added.
        * fast/repaint/table-cell-move-expected.png: Added.
        * fast/repaint/table-cell-move-expected.txt: Added.
        * fast/repaint/table-cell-move.html: Added.

WebCore:

        Reviewed by darin

        <http://bugzilla.opendarwin.org/show_bug.cgi?id=8607>
        Automate repaint tests

        * manual-tests/backgroundSizeRepaint.html: Removed.
        * manual-tests/border-repaint-glitch.html: Removed.
        * manual-tests/bugzilla-3509.html: Removed.
        * manual-tests/bugzilla-5699.html: Removed.
        * manual-tests/bugzilla-6278.html: Removed.
        * manual-tests/bugzilla-6388.html: Removed.
        * manual-tests/bugzilla-6473.html: Removed.
        * manual-tests/bugzilla-7235.html: Removed.
        * manual-tests/inline-outline-repaint.html: Removed.
        * manual-tests/outline-repaint-glitch.html: Removed.
        * manual-tests/repaint-resized-overflow.html: Removed.
        * manual-tests/table-cell-move.html: Removed.

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

52 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/repaint/backgroundSizeRepaint-expected.checksum [new file with mode: 0644]
LayoutTests/fast/repaint/backgroundSizeRepaint-expected.png [new file with mode: 0644]
LayoutTests/fast/repaint/backgroundSizeRepaint-expected.txt [new file with mode: 0644]
LayoutTests/fast/repaint/backgroundSizeRepaint.html [moved from WebCore/manual-tests/backgroundSizeRepaint.html with 81% similarity]
LayoutTests/fast/repaint/border-repaint-glitch-expected.checksum [new file with mode: 0644]
LayoutTests/fast/repaint/border-repaint-glitch-expected.png [new file with mode: 0644]
LayoutTests/fast/repaint/border-repaint-glitch-expected.txt [new file with mode: 0644]
LayoutTests/fast/repaint/border-repaint-glitch.html [moved from WebCore/manual-tests/border-repaint-glitch.html with 81% similarity]
LayoutTests/fast/repaint/bugzilla-3509-expected.checksum [new file with mode: 0644]
LayoutTests/fast/repaint/bugzilla-3509-expected.png [new file with mode: 0644]
LayoutTests/fast/repaint/bugzilla-3509-expected.txt [new file with mode: 0644]
LayoutTests/fast/repaint/bugzilla-3509.html [moved from WebCore/manual-tests/bugzilla-3509.html with 78% similarity]
LayoutTests/fast/repaint/bugzilla-5699-expected.checksum [new file with mode: 0644]
LayoutTests/fast/repaint/bugzilla-5699-expected.png [new file with mode: 0644]
LayoutTests/fast/repaint/bugzilla-5699-expected.txt [new file with mode: 0644]
LayoutTests/fast/repaint/bugzilla-5699.html [moved from WebCore/manual-tests/bugzilla-5699.html with 72% similarity]
LayoutTests/fast/repaint/bugzilla-6278-expected.checksum [new file with mode: 0644]
LayoutTests/fast/repaint/bugzilla-6278-expected.png [new file with mode: 0644]
LayoutTests/fast/repaint/bugzilla-6278-expected.txt [new file with mode: 0644]
LayoutTests/fast/repaint/bugzilla-6278.html [moved from WebCore/manual-tests/bugzilla-6278.html with 84% similarity]
LayoutTests/fast/repaint/bugzilla-6388-expected.checksum [new file with mode: 0644]
LayoutTests/fast/repaint/bugzilla-6388-expected.png [new file with mode: 0644]
LayoutTests/fast/repaint/bugzilla-6388-expected.txt [new file with mode: 0644]
LayoutTests/fast/repaint/bugzilla-6388.html [moved from WebCore/manual-tests/bugzilla-6388.html with 79% similarity]
LayoutTests/fast/repaint/bugzilla-6473-expected.checksum [new file with mode: 0644]
LayoutTests/fast/repaint/bugzilla-6473-expected.png [new file with mode: 0644]
LayoutTests/fast/repaint/bugzilla-6473-expected.txt [new file with mode: 0644]
LayoutTests/fast/repaint/bugzilla-6473.html [moved from WebCore/manual-tests/bugzilla-6473.html with 66% similarity]
LayoutTests/fast/repaint/bugzilla-7235-expected.checksum [new file with mode: 0644]
LayoutTests/fast/repaint/bugzilla-7235-expected.png [new file with mode: 0644]
LayoutTests/fast/repaint/bugzilla-7235-expected.txt [new file with mode: 0644]
LayoutTests/fast/repaint/bugzilla-7235.html [moved from WebCore/manual-tests/bugzilla-7235.html with 77% similarity]
LayoutTests/fast/repaint/inline-outline-repaint-expected.checksum [new file with mode: 0644]
LayoutTests/fast/repaint/inline-outline-repaint-expected.png [new file with mode: 0644]
LayoutTests/fast/repaint/inline-outline-repaint-expected.txt [new file with mode: 0644]
LayoutTests/fast/repaint/inline-outline-repaint.html [moved from WebCore/manual-tests/inline-outline-repaint.html with 64% similarity]
LayoutTests/fast/repaint/outline-repaint-glitch-expected.checksum [new file with mode: 0644]
LayoutTests/fast/repaint/outline-repaint-glitch-expected.png [new file with mode: 0644]
LayoutTests/fast/repaint/outline-repaint-glitch-expected.txt [new file with mode: 0644]
LayoutTests/fast/repaint/outline-repaint-glitch.html [moved from WebCore/manual-tests/outline-repaint-glitch.html with 84% similarity]
LayoutTests/fast/repaint/repaint-resized-overflow-expected.checksum [new file with mode: 0644]
LayoutTests/fast/repaint/repaint-resized-overflow-expected.png [new file with mode: 0644]
LayoutTests/fast/repaint/repaint-resized-overflow-expected.txt [new file with mode: 0644]
LayoutTests/fast/repaint/repaint-resized-overflow.html [moved from WebCore/manual-tests/repaint-resized-overflow.html with 78% similarity]
LayoutTests/fast/repaint/repaint.js [new file with mode: 0644]
LayoutTests/fast/repaint/resources/apple.jpg [new file with mode: 0644]
LayoutTests/fast/repaint/table-cell-move-expected.checksum [new file with mode: 0644]
LayoutTests/fast/repaint/table-cell-move-expected.png [new file with mode: 0644]
LayoutTests/fast/repaint/table-cell-move-expected.txt [new file with mode: 0644]
LayoutTests/fast/repaint/table-cell-move.html [moved from WebCore/manual-tests/table-cell-move.html with 76% similarity]
WebCore/ChangeLog

index fce9263a956616a59d0111321a744436413d62ec..3006e5268922b3ab8ddf1ee183ed870876e3bff3 100644 (file)
@@ -1,3 +1,62 @@
+2006-04-27  Justin Garcia  <justin.garcia@apple.com>
+
+        Reviewed by darin
+        
+        <http://bugzilla.opendarwin.org/show_bug.cgi?id=8607>
+        Automate repaint tests
+
+        * fast/repaint/backgroundSizeRepaint-expected.checksum: Added.
+        * fast/repaint/backgroundSizeRepaint-expected.png: Added.
+        * fast/repaint/backgroundSizeRepaint-expected.txt: Added.
+        * fast/repaint/backgroundSizeRepaint.html: Added.
+        * fast/repaint/border-repaint-glitch-expected.checksum: Added.
+        * fast/repaint/border-repaint-glitch-expected.png: Added.
+        * fast/repaint/border-repaint-glitch-expected.txt: Added.
+        * fast/repaint/border-repaint-glitch.html: Added.
+        * fast/repaint/bugzilla-3509-expected.checksum: Added.
+        * fast/repaint/bugzilla-3509-expected.png: Added.
+        * fast/repaint/bugzilla-3509-expected.txt: Added.
+        * fast/repaint/bugzilla-3509.html: Added.
+        * fast/repaint/bugzilla-5699-expected.checksum: Added.
+        * fast/repaint/bugzilla-5699-expected.png: Added.
+        * fast/repaint/bugzilla-5699-expected.txt: Added.
+        * fast/repaint/bugzilla-5699.html: Added.
+        * fast/repaint/bugzilla-6278-expected.checksum: Added.
+        * fast/repaint/bugzilla-6278-expected.png: Added.
+        * fast/repaint/bugzilla-6278-expected.txt: Added.
+        * fast/repaint/bugzilla-6278.html: Added.
+        * fast/repaint/bugzilla-6388-expected.checksum: Added.
+        * fast/repaint/bugzilla-6388-expected.png: Added.
+        * fast/repaint/bugzilla-6388-expected.txt: Added.
+        * fast/repaint/bugzilla-6388.html: Added.
+        * fast/repaint/bugzilla-6473-expected.checksum: Added.
+        * fast/repaint/bugzilla-6473-expected.png: Added.
+        * fast/repaint/bugzilla-6473-expected.txt: Added.
+        * fast/repaint/bugzilla-6473.html: Added.
+        * fast/repaint/bugzilla-7235-expected.checksum: Added.
+        * fast/repaint/bugzilla-7235-expected.png: Added.
+        * fast/repaint/bugzilla-7235-expected.txt: Added.
+        * fast/repaint/bugzilla-7235.html: Added.
+        * fast/repaint/inline-outline-repaint-expected.checksum: Added.
+        * fast/repaint/inline-outline-repaint-expected.png: Added.
+        * fast/repaint/inline-outline-repaint-expected.txt: Added.
+        * fast/repaint/inline-outline-repaint.html: Added.
+        * fast/repaint/outline-repaint-glitch-expected.checksum: Added.
+        * fast/repaint/outline-repaint-glitch-expected.png: Added.
+        * fast/repaint/outline-repaint-glitch-expected.txt: Added.
+        * fast/repaint/outline-repaint-glitch.html: Added.
+        * fast/repaint/repaint-resized-overflow-expected.checksum: Added.
+        * fast/repaint/repaint-resized-overflow-expected.png: Added.
+        * fast/repaint/repaint-resized-overflow-expected.txt: Added.
+        * fast/repaint/repaint-resized-overflow.html: Added.
+        * fast/repaint/repaint.js: Added.
+        * fast/repaint/resources: Added.
+        * fast/repaint/resources/apple.jpg: Added.
+        * fast/repaint/table-cell-move-expected.checksum: Added.
+        * fast/repaint/table-cell-move-expected.png: Added.
+        * fast/repaint/table-cell-move-expected.txt: Added.
+        * fast/repaint/table-cell-move.html: Added.
+
 2006-04-27  Justin Garcia  <justin.garcia@apple.com>
 
         Reviewed by darin
diff --git a/LayoutTests/fast/repaint/backgroundSizeRepaint-expected.checksum b/LayoutTests/fast/repaint/backgroundSizeRepaint-expected.checksum
new file mode 100644 (file)
index 0000000..cd6ac48
--- /dev/null
@@ -0,0 +1 @@
+fabfcc73a1759dac9cc7f994b5ae9434
\ No newline at end of file
diff --git a/LayoutTests/fast/repaint/backgroundSizeRepaint-expected.png b/LayoutTests/fast/repaint/backgroundSizeRepaint-expected.png
new file mode 100644 (file)
index 0000000..3d9b7e1
Binary files /dev/null and b/LayoutTests/fast/repaint/backgroundSizeRepaint-expected.png differ
diff --git a/LayoutTests/fast/repaint/backgroundSizeRepaint-expected.txt b/LayoutTests/fast/repaint/backgroundSizeRepaint-expected.txt
new file mode 100644 (file)
index 0000000..ba9a701
--- /dev/null
@@ -0,0 +1,41 @@
+layer at (0,0) size 800x600
+  RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x458
+  RenderBlock {HTML} at (0,0) size 800x458
+    RenderBody {BODY} at (8,16) size 784x434
+      RenderBlock {P} at (0,0) size 784x18
+        RenderInline {B} at (0,0) size 62x18
+          RenderText {#text} at (0,0) size 62x18
+            text run at (0,0) width 62: "BUG ID:"
+        RenderText {#text} at (62,0) size 4x18
+          text run at (62,0) width 4: " "
+        RenderInline {A} at (0,0) size 117x18 [color=#0000EE]
+          RenderText {#text} at (66,0) size 117x18
+            text run at (66,0) width 117: "Bugzilla bug 8467"
+        RenderText {#text} at (183,0) size 500x18
+          text run at (183,0) width 500: " Block with percentage background-size doesn't repaint properly when it grows"
+      RenderBlock {P} at (0,34) size 784x42 [bgcolor=#98FB98]
+        RenderInline {B} at (0,0) size 91x18
+          RenderText {#text} at (3,3) size 91x18
+            text run at (3,3) width 91: "TEST PASS:"
+        RenderText {#text} at (94,3) size 759x36
+          text run at (94,3) width 4: " "
+          text run at (98,3) width 664: "The boxes will resize, and their background images will repaint correctly maintaining the set background-"
+          text run at (3,21) width 28: "size."
+      RenderBlock {P} at (0,92) size 784x24 [bgcolor=#FF3300]
+        RenderInline {B} at (0,0) size 90x18
+          RenderText {#text} at (3,3) size 90x18
+            text run at (3,3) width 90: "TEST FAIL:"
+        RenderText {#text} at (93,3) size 516x18
+          text run at (93,3) width 4: " "
+          text run at (97,3) width 512: "The boxes will resize, but the background images will leave artifacts on the sides."
+      RenderBlock {DIV} at (0,132) size 222x142 [border: (1px solid #0000FF)]
+        RenderBlock {DIV} at (11,21) size 200x40
+      RenderBlock (anonymous) at (0,274) size 784x18
+        RenderBR {BR} at (0,0) size 0x18
+      RenderBlock {DIV} at (0,292) size 222x142 [border: (1px solid #0000FF)]
+        RenderBlock {DIV} at (11,21) size 200x60
+layer at (29,169) size 180x40
+  RenderBlock {DIV} at (10,0) size 180x40 [bgcolor=#008080]
+layer at (29,329) size 180x60
+  RenderBlock {DIV} at (10,0) size 180x60 [bgcolor=#008080]
similarity index 81%
rename from WebCore/manual-tests/backgroundSizeRepaint.html
rename to LayoutTests/fast/repaint/backgroundSizeRepaint.html
index c703be7ee3ee587541cb01a26d602603fd0dae2a..a151824818d3b3ebd48528baa4c2539b281dff62 100644 (file)
@@ -5,14 +5,18 @@
 <style type="text/css">
     div.test { width: 200px; height: 120px; border: 1px solid blue; padding: 10px; }
 </style>
+       <script src="repaint.js" type="text/javascript"></script>
+       <script type="text/javascript">
+          function repaintTest()
+          {
+           document.getElementById('a').style.height = '40px';
+           document.getElementById('b').style.height = '60px';
+          }
+       </script>
 </head>
-<body>
+<body onload="runRepaintTest();">
 <p><b>BUG ID:</b> <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=8467">Bugzilla bug 8467</a> Block with percentage background-size doesn't repaint properly when it grows</p>
 
-<p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b> 
-Click each Test button once.
-</p>
-
 <p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b> 
 The boxes will resize, and their background images will repaint correctly maintaining the set background-size.
 </p>
@@ -22,14 +26,12 @@ The boxes will resize, but the background images will leave artifacts on the sid
 </p>
 
 <div class="test">
-    <button onclick="document.getElementById('a').style.height = '40px'">Test</button>
     <div style="background-image:url(resources/apple.jpg); -webkit-background-size: auto 100%;">
         <div id="a" style="height: 60px; margin: 10px; background-color:teal; opacity:0.5;"></div>
     </div>
 </div>
 <br>
 <div class="test">
-    <button onclick="document.getElementById('b').style.height = '60px'">Test</button>
     <div style="background-image:url(resources/apple.jpg); -webkit-background-size: auto 100%;">
         <div id="b" style="height: 40px; margin: 10px; background:teal; opacity:0.5;"></div>
     </div>
diff --git a/LayoutTests/fast/repaint/border-repaint-glitch-expected.checksum b/LayoutTests/fast/repaint/border-repaint-glitch-expected.checksum
new file mode 100644 (file)
index 0000000..f84b13e
--- /dev/null
@@ -0,0 +1 @@
+29fc53f1c1292176dcc1f2b85e6438f9
\ No newline at end of file
diff --git a/LayoutTests/fast/repaint/border-repaint-glitch-expected.png b/LayoutTests/fast/repaint/border-repaint-glitch-expected.png
new file mode 100644 (file)
index 0000000..989b75b
Binary files /dev/null and b/LayoutTests/fast/repaint/border-repaint-glitch-expected.png differ
diff --git a/LayoutTests/fast/repaint/border-repaint-glitch-expected.txt b/LayoutTests/fast/repaint/border-repaint-glitch-expected.txt
new file mode 100644 (file)
index 0000000..28e187c
--- /dev/null
@@ -0,0 +1,40 @@
+layer at (0,0) size 800x600
+  RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x476
+  RenderBlock {HTML} at (0,0) size 800x476
+    RenderBody {BODY} at (8,16) size 784x452
+      RenderBlock {P} at (0,0) size 784x18
+        RenderInline {B} at (0,0) size 62x18
+          RenderText {#text} at (0,0) size 62x18
+            text run at (0,0) width 62: "BUG ID:"
+        RenderText {#text} at (62,0) size 4x18
+          text run at (62,0) width 4: " "
+        RenderInline {A} at (0,0) size 117x18 [color=#0000EE]
+          RenderText {#text} at (66,0) size 117x18
+            text run at (66,0) width 117: "Bugzilla bug 6301"
+        RenderText {#text} at (183,0) size 243x18
+          text run at (183,0) width 243: " REGRESSION: Border repaint glitch"
+      RenderBlock {P} at (0,34) size 784x24 [bgcolor=#98FB98]
+        RenderInline {B} at (0,0) size 91x18
+          RenderText {#text} at (3,3) size 91x18
+            text run at (3,3) width 91: "TEST PASS:"
+        RenderText {#text} at (94,3) size 439x18
+          text run at (94,3) width 4: " "
+          text run at (98,3) width 435: "The boxes will resize, maintaining their solid red rectangular borders."
+      RenderBlock {P} at (0,74) size 784x60 [bgcolor=#FF3300]
+        RenderInline {B} at (0,0) size 90x18
+          RenderText {#text} at (3,3) size 90x18
+            text run at (3,3) width 90: "TEST FAIL:"
+        RenderText {#text} at (93,3) size 757x54
+          text run at (93,3) width 4: " "
+          text run at (97,3) width 663: "The boxes will resize, but the borders will break. The first box will be missing small segments from either"
+          text run at (3,21) width 756: "side of its bottom border. The second box will have small red horizontal segments protruding inwards from both sides of"
+          text run at (3,39) width 304: "the border, where the bottom border was before."
+      RenderBlock {DIV} at (0,150) size 222x142 [border: (1px solid #0000FF)]
+        RenderBlock {DIV} at (11,11) size 200x68 [bgcolor=#008080] [border: (4px solid #FF0000)]
+          RenderBlock {DIV} at (14,14) size 172x40 [bgcolor=#C0C0C0]
+      RenderBlock (anonymous) at (0,292) size 784x18
+        RenderBR {BR} at (0,0) size 0x18
+      RenderBlock {DIV} at (0,310) size 222x142 [border: (1px solid #0000FF)]
+        RenderBlock {DIV} at (11,11) size 200x88 [bgcolor=#008080] [border: (4px solid #FF0000)]
+          RenderBlock {DIV} at (14,14) size 172x60 [bgcolor=#C0C0C0]
similarity index 81%
rename from WebCore/manual-tests/border-repaint-glitch.html
rename to LayoutTests/fast/repaint/border-repaint-glitch.html
index a567af477328b4c369e8c3e397584e0e76036cbf..9d626a2717d0bc95dc5a6e4a3194eec74791611e 100644 (file)
@@ -5,14 +5,18 @@
 <style type="text/css">
     div.test { width: 200px; height: 120px; border: 1px solid blue; padding: 10px; }
 </style>
+       <script src="repaint.js" type="text/javascript"></script>
+       <script type="text/javascript">
+          function repaintTest()
+          {
+           document.getElementById('a').style.height = '40px';
+           document.getElementById('b').style.height = '60px';
+          }
+       </script>
 </head>
-<body>
+<body onload="runRepaintTest();">
 <p><b>BUG ID:</b> <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=6301">Bugzilla bug 6301</a> REGRESSION: Border repaint glitch</p>
 
-<p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b> 
-Click each Test button once.
-</p>
-
 <p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b> 
 The boxes will resize, maintaining their solid red rectangular borders.
 </p>
@@ -25,14 +29,12 @@ where the bottom border was before.
 </p>
 
 <div class="test">
-    <button onclick="document.getElementById('a').style.height = '40px'">Test</button>
     <div style="background: teal; padding: 0; border: solid red 4px;">
         <div id="a" style="height: 60px; margin: 10px; background:silver;"></div>
     </div>
 </div>
 <br>
 <div class="test">
-    <button onclick="document.getElementById('b').style.height = '60px'">Test</button>
     <div style="background: teal; padding: 0; border: solid red 4px;">
         <div id="b" style="height: 40px; margin: 10px; background:silver;"></div>
     </div>
diff --git a/LayoutTests/fast/repaint/bugzilla-3509-expected.checksum b/LayoutTests/fast/repaint/bugzilla-3509-expected.checksum
new file mode 100644 (file)
index 0000000..3da879f
--- /dev/null
@@ -0,0 +1 @@
+2af7cd983d67fe56c79c8a968bdaa75d
\ No newline at end of file
diff --git a/LayoutTests/fast/repaint/bugzilla-3509-expected.png b/LayoutTests/fast/repaint/bugzilla-3509-expected.png
new file mode 100644 (file)
index 0000000..83c1921
Binary files /dev/null and b/LayoutTests/fast/repaint/bugzilla-3509-expected.png differ
diff --git a/LayoutTests/fast/repaint/bugzilla-3509-expected.txt b/LayoutTests/fast/repaint/bugzilla-3509-expected.txt
new file mode 100644 (file)
index 0000000..4f622d7
--- /dev/null
@@ -0,0 +1,38 @@
+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 {P} at (0,0) size 784x18
+        RenderInline {B} at (0,0) size 62x18
+          RenderText {#text} at (0,0) size 62x18
+            text run at (0,0) width 62: "BUG ID:"
+        RenderText {#text} at (62,0) size 4x18
+          text run at (62,0) width 4: " "
+        RenderInline {A} at (0,0) size 117x18 [color=#0000EE]
+          RenderText {#text} at (66,0) size 117x18
+            text run at (66,0) width 117: "Bugzilla bug 3509"
+        RenderText {#text} at (183,0) size 567x18
+          text run at (183,0) width 567: " REGRESSION(125-412) Portion of nested table is not painted correctly on cafepress site"
+      RenderBlock {P} at (0,34) size 784x24 [bgcolor=#98FB98]
+        RenderInline {B} at (0,0) size 91x18
+          RenderText {#text} at (3,3) size 91x18
+            text run at (3,3) width 91: "TEST PASS:"
+        RenderText {#text} at (94,3) size 286x18
+          text run at (94,3) width 4: " "
+          text run at (98,3) width 282: "The blue rectangle will change into a square."
+      RenderBlock {P} at (0,74) size 784x24 [bgcolor=#FF3300]
+        RenderInline {B} at (0,0) size 90x18
+          RenderText {#text} at (3,3) size 90x18
+            text run at (3,3) width 90: "TEST FAIL:"
+        RenderText {#text} at (93,3) size 391x18
+          text run at (93,3) width 4: " "
+          text run at (97,3) width 387: "The blue rectangle will change into a shape that is not square."
+      RenderTable {TABLE} at (0,114) size 784x106
+        RenderTableSection {TBODY} at (0,0) size 784x106
+          RenderTableRow {TR} at (0,2) size 784x102
+            RenderTableCell {TD} at (2,2) size 780x102 [r=0 c=0 rs=1 cs=1]
+              RenderBlock {DIV} at (1,33) size 778x0
+              RenderBlock {DIV} at (1,1) size 100x100 [bgcolor=#0000FF]
+                RenderText {#text} at (0,0) size 4x18
+                  text run at (0,0) width 4: " "
similarity index 78%
rename from WebCore/manual-tests/bugzilla-3509.html
rename to LayoutTests/fast/repaint/bugzilla-3509.html
index 09ebd19e2dea83e1c4cf9987f0ecfaccbb4d0d8a..ed8297bb4e4a550ab17ed142a88d43d04d121962 100644 (file)
@@ -1,14 +1,17 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html lang="en">
 <head>
+       <script src="repaint.js" type="text/javascript"></script>
+       <script type="text/javascript">
+          function repaintTest()
+          {
+           document.getElementById('im').style.width = '100px';
+          }
+       </script>
 </head>
-<body>
+<body onload="runRepaintTest();">
 <p><b>BUG ID:</b> <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=3509">Bugzilla bug 3509</a> REGRESSION(125-412) Portion of nested table is not painted correctly on cafepress site</p>
 
-<p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b> 
-Click the Test button.
-</p>
-
 <p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b> 
 The blue rectangle will change into a square.
 </p>
@@ -17,7 +20,6 @@ The blue rectangle will change into a square.
 The blue rectangle will change into a shape that is not square.
 </p>
 
-    <button onclick="document.getElementById('im').style.width = '100px'">Test</button>
     <table width="100%">
         <tr>
             <td style="width: 100px;">
diff --git a/LayoutTests/fast/repaint/bugzilla-5699-expected.checksum b/LayoutTests/fast/repaint/bugzilla-5699-expected.checksum
new file mode 100644 (file)
index 0000000..9e5bf26
--- /dev/null
@@ -0,0 +1 @@
+ceefb56022bc5627ac685a4dbcaccf08
\ No newline at end of file
diff --git a/LayoutTests/fast/repaint/bugzilla-5699-expected.png b/LayoutTests/fast/repaint/bugzilla-5699-expected.png
new file mode 100644 (file)
index 0000000..0f74f66
Binary files /dev/null and b/LayoutTests/fast/repaint/bugzilla-5699-expected.png differ
diff --git a/LayoutTests/fast/repaint/bugzilla-5699-expected.txt b/LayoutTests/fast/repaint/bugzilla-5699-expected.txt
new file mode 100644 (file)
index 0000000..b22d08b
--- /dev/null
@@ -0,0 +1,38 @@
+layer at (0,0) size 800x600
+  RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x212
+  RenderBlock {HTML} at (0,0) size 800x212
+    RenderBody {BODY} at (8,16) size 784x180
+      RenderBlock {P} at (0,0) size 784x18
+        RenderInline {B} at (0,0) size 62x18
+          RenderText {#text} at (0,0) size 62x18
+            text run at (0,0) width 62: "BUG ID:"
+        RenderText {#text} at (62,0) size 4x18
+          text run at (62,0) width 4: " "
+        RenderInline {A} at (0,0) size 117x18 [color=#0000EE]
+          RenderText {#text} at (66,0) size 117x18
+            text run at (66,0) width 117: "Bugzilla bug 5699"
+        RenderText {#text} at (183,0) size 229x18
+          text run at (183,0) width 229: " REGRESSION: incomplete repaint"
+      RenderBlock {P} at (0,34) size 784x24 [bgcolor=#98FB98]
+        RenderInline {B} at (0,0) size 91x18
+          RenderText {#text} at (3,3) size 91x18
+            text run at (3,3) width 91: "TEST PASS:"
+        RenderText {#text} at (94,3) size 230x18
+          text run at (94,3) width 4: " "
+          text run at (98,3) width 226: "The word \x{201C}Hello\x{201D} will move down."
+      RenderBlock {P} at (0,74) size 784x24 [bgcolor=#FF3300]
+        RenderInline {B} at (0,0) size 90x18
+          RenderText {#text} at (3,3) size 90x18
+            text run at (3,3) width 90: "TEST FAIL:"
+        RenderText {#text} at (93,3) size 299x18
+          text run at (93,3) width 4: " "
+          text run at (97,3) width 295: "Another copy of the word \x{201C}Hello\x{201D} will appear."
+      RenderBlock {P} at (0,114) size 784x66
+        RenderInline {SPAN} at (0,0) size 4x18
+          RenderText {#text} at (0,15) size 4x18
+            text run at (0,15) width 4: " "
+        RenderBR {BR} at (4,15) size 0x18
+        RenderText {#text} at (0,48) size 35x18
+          text run at (0,48) width 35: "Hello"
+        RenderBR {BR} at (35,48) size 0x18
similarity index 72%
rename from WebCore/manual-tests/bugzilla-5699.html
rename to LayoutTests/fast/repaint/bugzilla-5699.html
index d7d1d64bc3caaaca19560609bfd4871f58db7c2a..79a44f9197682d74e29963d3f9479f8f02a39193 100644 (file)
@@ -2,14 +2,17 @@
         "http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en">
 <head>
+       <script src="repaint.js" type="text/javascript"></script>
+       <script type="text/javascript">
+          function repaintTest()
+          {
+           document.getElementById('d').style.lineHeight = 3;
+          }
+       </script>
 </head>
-<body>
+<body onload="runRepaintTest();">
 <p><b>BUG ID:</b> <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=5699">Bugzilla bug 5699</a> REGRESSION: incomplete repaint</p>
 
-<p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b> 
-Click the Test button below.
-</p>
-
 <p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b> 
 The word &ldquo;Hello&rdquo; will move down.
 </p>
@@ -18,7 +21,6 @@ The word &ldquo;Hello&rdquo; will move down.
 Another copy of the word &ldquo;Hello&rdquo; will appear.
 </p>
 
-<button onclick="document.getElementById('d').style.lineHeight = 3">Test</button>
 <p>
 <span id="d">&nbsp;</span><br>
 Hello<br>
diff --git a/LayoutTests/fast/repaint/bugzilla-6278-expected.checksum b/LayoutTests/fast/repaint/bugzilla-6278-expected.checksum
new file mode 100644 (file)
index 0000000..e3b2e16
--- /dev/null
@@ -0,0 +1 @@
+ce744fd2ed7b5cc42549f9f96e207743
\ No newline at end of file
diff --git a/LayoutTests/fast/repaint/bugzilla-6278-expected.png b/LayoutTests/fast/repaint/bugzilla-6278-expected.png
new file mode 100644 (file)
index 0000000..1c45665
Binary files /dev/null and b/LayoutTests/fast/repaint/bugzilla-6278-expected.png differ
diff --git a/LayoutTests/fast/repaint/bugzilla-6278-expected.txt b/LayoutTests/fast/repaint/bugzilla-6278-expected.txt
new file mode 100644 (file)
index 0000000..daeacc5
--- /dev/null
@@ -0,0 +1,48 @@
+layer at (0,0) size 800x600
+  RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x377
+  RenderBlock {HTML} at (0,0) size 800x377
+    RenderBody {BODY} at (8,16) size 784x353
+      RenderBlock {P} at (0,0) size 784x18
+        RenderInline {B} at (0,0) size 62x18
+          RenderText {#text} at (0,0) size 62x18
+            text run at (0,0) width 62: "BUG ID:"
+        RenderText {#text} at (62,0) size 4x18
+          text run at (62,0) width 4: " "
+        RenderInline {A} at (0,0) size 117x18 [color=#0000EE]
+          RenderText {#text} at (66,0) size 117x18
+            text run at (66,0) width 117: "Bugzilla bug 6278"
+        RenderText {#text} at (183,0) size 512x18
+          text run at (183,0) width 512: " REGRESSION: Incomplete repaint when table cell width changes during layout"
+      RenderBlock {P} at (0,34) size 784x24 [bgcolor=#98FB98]
+        RenderInline {B} at (0,0) size 91x18
+          RenderText {#text} at (3,3) size 91x18
+            text run at (3,3) width 91: "TEST PASS:"
+        RenderText {#text} at (94,3) size 604x18
+          text run at (94,3) width 4: " "
+          text run at (98,3) width 600: "The purple and green rects will resize, and there will remain separated by a blue horizontal line."
+      RenderBlock {P} at (0,74) size 784x24 [bgcolor=#FF3300]
+        RenderInline {B} at (0,0) size 90x18
+          RenderText {#text} at (3,3) size 90x18
+            text run at (3,3) width 90: "TEST FAIL:"
+        RenderText {#text} at (93,3) size 479x18
+          text run at (93,3) width 4: " "
+          text run at (97,3) width 475: "The purple and green rects will resize, but the blue separator will disappear."
+      RenderTable {TABLE} at (0,114) size 300x239
+        RenderTableSection {TBODY} at (0,0) size 300x239
+          RenderTableRow {TR} at (0,2) size 300x235
+            RenderTableCell {TD} at (2,2) size 242x235 [bgcolor=#0000FF] [r=0 c=0 rs=1 cs=1]
+              RenderBlock {DIV} at (0,0) size 242x180 [bgcolor=#EEEEFF]
+                RenderText {#text} at (0,0) size 234x180
+                  text run at (0,0) width 234: "Curabitur pretium, quam quis semper"
+                  text run at (0,18) width 222: "malesuada, est libero feugiat libero,"
+                  text run at (0,36) width 203: "vel fringilla orci nibh sed neque."
+                  text run at (0,54) width 217: "Quisque eu nulla non nisi molestie"
+                  text run at (0,72) width 226: "accumsan. Etiam tellus urna, laoreet"
+                  text run at (0,90) width 224: "ac, laoreet non, suscipit sed, sapien."
+                  text run at (0,108) width 217: "Phasellus vehicula, sem at posuere"
+                  text run at (0,126) width 217: "vehicula, augue nibh molestie nisl,"
+                  text run at (0,144) width 229: "nec ullamcorper lacus ante vulputate"
+                  text run at (0,162) width 34: "pede."
+              RenderBlock {DIV} at (0,185) size 242x50 [bgcolor=#EEFFEE]
+            RenderTableCell {TD} at (246,118) size 52x2 [r=0 c=1 rs=1 cs=1]
similarity index 84%
rename from WebCore/manual-tests/bugzilla-6278.html
rename to LayoutTests/fast/repaint/bugzilla-6278.html
index dc900841a1d0df8807c5674d0d86f4fbabf2ff8b..eba715174244defa765d9a76cf743ad9c302c8a7 100644 (file)
@@ -2,14 +2,17 @@
         "http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en">
 <head>
+       <script src="repaint.js" type="text/javascript"></script>
+       <script type="text/javascript">
+          function repaintTest()
+          {
+           document.getElementById('target').style.width='50px';
+          }
+       </script>
 </head>
-<body>
+<body onload="runRepaintTest();">
 <p><b>BUG ID:</b> <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=6278">Bugzilla bug 6278</a> REGRESSION: Incomplete repaint when table cell width changes during layout</p>
 
-<p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b> 
-Click the Test button below.
-</p>
-
 <p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b> 
 The purple and green rects will resize, and there will remain separated by a blue horizontal line.
 </p>
@@ -17,7 +20,6 @@ The purple and green rects will resize, and there will remain separated by a blu
 <p id="failure" style="background-color:#FF3300; padding:3px;"><b>TEST FAIL:</b>  
 The purple and green rects will resize, but the blue separator will disappear.
 </p>
-<button onclick="document.getElementById('target').style.width='50px'">Test</button>
 <table style="width: 300px;">
 <tr>
     <td id="col1" style="background: blue; padding:0;">
diff --git a/LayoutTests/fast/repaint/bugzilla-6388-expected.checksum b/LayoutTests/fast/repaint/bugzilla-6388-expected.checksum
new file mode 100644 (file)
index 0000000..1e283bf
--- /dev/null
@@ -0,0 +1 @@
+c0580b4e8102699d59a9629060efbe33
\ No newline at end of file
diff --git a/LayoutTests/fast/repaint/bugzilla-6388-expected.png b/LayoutTests/fast/repaint/bugzilla-6388-expected.png
new file mode 100644 (file)
index 0000000..5bd3f16
Binary files /dev/null and b/LayoutTests/fast/repaint/bugzilla-6388-expected.png differ
diff --git a/LayoutTests/fast/repaint/bugzilla-6388-expected.txt b/LayoutTests/fast/repaint/bugzilla-6388-expected.txt
new file mode 100644 (file)
index 0000000..6e11e49
--- /dev/null
@@ -0,0 +1,37 @@
+layer at (0,0) size 800x600
+  RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x256
+  RenderBlock {HTML} at (0,0) size 800x256
+    RenderBody {BODY} at (8,16) size 784x232
+      RenderBlock {P} at (0,0) size 784x18
+        RenderInline {B} at (0,0) size 62x18
+          RenderText {#text} at (0,0) size 62x18
+            text run at (0,0) width 62: "BUG ID:"
+        RenderText {#text} at (62,0) size 4x18
+          text run at (62,0) width 4: " "
+        RenderInline {A} at (0,0) size 117x18 [color=#0000EE]
+          RenderText {#text} at (66,0) size 117x18
+            text run at (66,0) width 117: "Bugzilla bug 6388"
+        RenderText {#text} at (183,0) size 491x18
+          text run at (183,0) width 491: " REGRESSION: Incomplete repaint when dragging the map on Google maps"
+      RenderBlock {P} at (0,34) size 784x24 [bgcolor=#98FB98]
+        RenderInline {B} at (0,0) size 91x18
+          RenderText {#text} at (3,3) size 91x18
+            text run at (3,3) width 91: "TEST PASS:"
+        RenderText {#text} at (94,3) size 241x18
+          text run at (94,3) width 4: " "
+          text run at (98,3) width 237: "The blue square will change to green."
+      RenderBlock {P} at (0,74) size 784x24 [bgcolor=#FF3300]
+        RenderInline {B} at (0,0) size 90x18
+          RenderText {#text} at (3,3) size 90x18
+            text run at (3,3) width 90: "TEST FAIL:"
+        RenderText {#text} at (93,3) size 279x18
+          text run at (93,3) width 4: " "
+          text run at (97,3) width 275: "The blue square will NOT change to green."
+      RenderBlock (anonymous) at (0,214) size 784x18
+        RenderBR {BR} at (0,0) size 0x18
+layer at (8,130) size 100x100
+  RenderBlock (relative positioned) {DIV} at (0,114) size 100x100
+layer at (-92,130) size 200x100 backgroundClip at (8,130) size 100x100 clip at (8,130) size 100x100 outlineClip at (8,130) size 100x100
+  RenderBlock (positioned) {DIV} at (0,0) size 200x100 [bgcolor=#008000]
+    RenderBlock {DIV} at (0,0) size 100x100 [bgcolor=#0000FF]
similarity index 79%
rename from WebCore/manual-tests/bugzilla-6388.html
rename to LayoutTests/fast/repaint/bugzilla-6388.html
index 668f8fa27d1c00647df63977345a5737f4792eb1..c175f0139c10d10ae3b5a4513b9fe04a491c23ce 100644 (file)
@@ -2,14 +2,17 @@
         "http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en">
 <head>
+       <script src="repaint.js" type="text/javascript"></script>
+       <script type="text/javascript">
+          function repaintTest()
+          {
+           document.getElementById('outside').style.left = '-100px';
+          }
+       </script>
 </head>
-<body>
+<body onload="runRepaintTest();">
 <p><b>BUG ID:</b> <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=6388">Bugzilla bug 6388</a> REGRESSION: Incomplete repaint when dragging the map on Google maps</p>
 
-<p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b> 
-Click the Test button below.
-</p>
-
 <p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b> 
 The blue square will change to green.
 </p>
@@ -26,6 +29,5 @@ The blue square will NOT change to green.
     </div>
 </div>
 <br>
-<button onclick="document.getElementById('outside').style.left = '-100px'">Test</button>
 </body>
 </html>
diff --git a/LayoutTests/fast/repaint/bugzilla-6473-expected.checksum b/LayoutTests/fast/repaint/bugzilla-6473-expected.checksum
new file mode 100644 (file)
index 0000000..398bd05
--- /dev/null
@@ -0,0 +1 @@
+70ff69c44a699aecbb9f63276767d8a7
\ No newline at end of file
diff --git a/LayoutTests/fast/repaint/bugzilla-6473-expected.png b/LayoutTests/fast/repaint/bugzilla-6473-expected.png
new file mode 100644 (file)
index 0000000..c2a67fe
Binary files /dev/null and b/LayoutTests/fast/repaint/bugzilla-6473-expected.png differ
diff --git a/LayoutTests/fast/repaint/bugzilla-6473-expected.txt b/LayoutTests/fast/repaint/bugzilla-6473-expected.txt
new file mode 100644 (file)
index 0000000..29cf344
--- /dev/null
@@ -0,0 +1,37 @@
+layer at (0,0) size 800x600
+  RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x188
+  RenderBlock {HTML} at (0,0) size 800x188
+    RenderBody {BODY} at (8,16) size 784x164
+      RenderBlock {P} at (0,0) size 784x18
+        RenderInline {B} at (0,0) size 62x18
+          RenderText {#text} at (0,0) size 62x18
+            text run at (0,0) width 62: "BUG ID:"
+        RenderText {#text} at (62,0) size 4x18
+          text run at (62,0) width 4: " "
+        RenderInline {A} at (0,0) size 117x18 [color=#0000EE]
+          RenderText {#text} at (66,0) size 117x18
+            text run at (66,0) width 117: "Bugzilla bug 6473"
+        RenderText {#text} at (183,0) size 479x18
+          text run at (183,0) width 479: " REGRESSION: Serious painting problems on new iLife and iWorks pages"
+      RenderBlock {P} at (0,34) size 784x24 [bgcolor=#98FB98]
+        RenderInline {B} at (0,0) size 91x18
+          RenderText {#text} at (3,3) size 91x18
+            text run at (3,3) width 91: "TEST PASS:"
+        RenderText {#text} at (94,3) size 434x18
+          text run at (94,3) width 4: " "
+          text run at (98,3) width 430: "A green rectangle containing the word SUCCESS will show below."
+      RenderBlock {P} at (0,74) size 784x24 [bgcolor=#FF3300]
+        RenderInline {B} at (0,0) size 90x18
+          RenderText {#text} at (3,3) size 90x18
+            text run at (3,3) width 90: "TEST FAIL:"
+        RenderText {#text} at (93,3) size 253x18
+          text run at (93,3) width 4: " "
+          text run at (97,3) width 249: "A green rectangle will not show below."
+      RenderBlock {DIV} at (0,114) size 784x50
+layer at (8,130) size 784x50
+  RenderBlock {DIV} at (0,0) size 784x50
+layer at (8,146) size 784x18
+  RenderBlock (relative positioned) {P} at (0,16) size 784x18 [bgcolor=#00FF00]
+    RenderText {#text} at (0,0) size 71x18
+      text run at (0,0) width 71: "SUCCESS"
similarity index 66%
rename from WebCore/manual-tests/bugzilla-6473.html
rename to LayoutTests/fast/repaint/bugzilla-6473.html
index f9dc44e7fdd231830e13f7c7f38e34226ced4b4a..6012bdede9e79eaf4991adcb75344a871834a108 100644 (file)
@@ -2,31 +2,22 @@
         "http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en">
 <head>
+<script src="repaint.js"></script>
 <script type="text/javascript">
-var allcontent;
-
 function finish()
 {
-       allcontent.style.overflow = '';
-       layoutTestController.notifyDone();
+       document.getElementById('allcontent').style.overflow = '';
 }
 
-function test()
+function repaintTest()
 {
-    if (window.layoutTestController)
-        layoutTestController.waitUntilDone();
-       allcontent = document.getElementById('allcontent');
        window.setTimeout(finish, 1);
 }
 </script>
 </head>
-<body onload="test()">
+<body onload="runRepaintTest()">
 <p><b>BUG ID:</b> <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=6473">Bugzilla bug 6473</a> REGRESSION: Serious painting problems on new iLife and iWorks pages</p>
 
-<p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b> 
-Do not resize the window. If you do, reload the page after resizing.
-</p>
-
 <p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b> 
 A green rectangle containing the word SUCCESS will show below.
 </p>
diff --git a/LayoutTests/fast/repaint/bugzilla-7235-expected.checksum b/LayoutTests/fast/repaint/bugzilla-7235-expected.checksum
new file mode 100644 (file)
index 0000000..4dbdfd1
--- /dev/null
@@ -0,0 +1 @@
+97e889bf6dfad12e5d1b7f24a069561d
\ No newline at end of file
diff --git a/LayoutTests/fast/repaint/bugzilla-7235-expected.png b/LayoutTests/fast/repaint/bugzilla-7235-expected.png
new file mode 100644 (file)
index 0000000..98a82d9
Binary files /dev/null and b/LayoutTests/fast/repaint/bugzilla-7235-expected.png differ
diff --git a/LayoutTests/fast/repaint/bugzilla-7235-expected.txt b/LayoutTests/fast/repaint/bugzilla-7235-expected.txt
new file mode 100644 (file)
index 0000000..d7ad625
--- /dev/null
@@ -0,0 +1,41 @@
+layer at (0,0) size 800x600
+  RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x274
+  RenderBlock {HTML} at (0,0) size 800x274
+    RenderBody {BODY} at (8,16) size 784x250
+      RenderBlock {P} at (0,0) size 784x18
+        RenderInline {B} at (0,0) size 62x18
+          RenderText {#text} at (0,0) size 62x18
+            text run at (0,0) width 62: "BUG ID:"
+        RenderText {#text} at (62,0) size 4x18
+          text run at (62,0) width 4: " "
+        RenderInline {A} at (0,0) size 117x18 [color=#0000EE]
+          RenderText {#text} at (66,0) size 117x18
+            text run at (66,0) width 117: "Bugzilla bug 7235"
+        RenderText {#text} at (183,0) size 395x18
+          text run at (183,0) width 395: " Pure CSS Tooltips method renders wrong and creates artifacts"
+      RenderBlock {P} at (0,34) size 784x24 [bgcolor=#98FB98]
+        RenderInline {B} at (0,0) size 91x18
+          RenderText {#text} at (3,3) size 91x18
+            text run at (3,3) width 91: "TEST PASS:"
+        RenderText {#text} at (94,3) size 262x18
+          text run at (94,3) width 4: " "
+          text run at (98,3) width 258: "The square should change to solid green."
+      RenderBlock {P} at (0,74) size 784x42 [bgcolor=#FF3300]
+        RenderInline {B} at (0,0) size 90x18
+          RenderText {#text} at (3,3) size 90x18
+            text run at (3,3) width 90: "TEST FAIL:"
+        RenderText {#text} at (93,3) size 773x36
+          text run at (93,3) width 4: " "
+          text run at (97,3) width 679: "The square will remain red and will only change to green when the window is resized, scrolled or otherwise"
+          text run at (3,21) width 62: "repainted."
+      RenderBlock {P} at (0,132) size 784x0
+      RenderBlock (anonymous) at (0,132) size 784x18
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,150) size 100x100 [bgcolor=#FF0000]
+layer at (-92,148) size 4x18 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600 outlineClip at (0,0) size 800x600
+  RenderInline (relative positioned) {SPAN} at (0,0) size 4x18
+    RenderText {#text} at (100,0) size 4x18
+      text run at (100,0) width 4: " "
+layer at (8,166) size 100x100
+  RenderBlock (positioned) {DIV} at (0,18) size 100x100 [bgcolor=#008000]
similarity index 77%
rename from WebCore/manual-tests/bugzilla-7235.html
rename to LayoutTests/fast/repaint/bugzilla-7235.html
index ce724556349035bf735c7190fcd153108e359d01..c0ec5562c6e05a74e84bc7faad31a0ddf44175c5 100644 (file)
                background: green;
        }
        </style>
+       <script src="repaint.js" type="text/javascript"></script>
+       <script type="text/javascript">
+          function repaintTest()
+          {
+           document.getElementById('t').style.display='block';
+          }
+       </script>
 </head>
-<body>
+<body onload="runRepaintTest();">
 <p><b>BUG ID:</b> <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=7235">Bugzilla bug 7235</a> Pure CSS Tooltips method renders wrong and creates artifacts</p>
 
-<p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b> 
-Resize the window if necessary so that the red square below is visible, then click the Test button.
-</p>
-
 <p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b> 
 The square should change to solid green.
 </p>
@@ -33,7 +36,6 @@ The square will remain red and will only change to green when the window is resi
 </p>
 
 <p>
-<button onclick="document.getElementById('t').style.display='block'">Test</button>
 </p>
 <span id="p">&nbsp;<div id="t"></div></span>
 <div style="width: 100px; height: 100px; background: red;"></div>
diff --git a/LayoutTests/fast/repaint/inline-outline-repaint-expected.checksum b/LayoutTests/fast/repaint/inline-outline-repaint-expected.checksum
new file mode 100644 (file)
index 0000000..aaa999e
--- /dev/null
@@ -0,0 +1 @@
+2572457ef90f00f1fb66bb209b9ef0cd
\ No newline at end of file
diff --git a/LayoutTests/fast/repaint/inline-outline-repaint-expected.png b/LayoutTests/fast/repaint/inline-outline-repaint-expected.png
new file mode 100644 (file)
index 0000000..7010fac
Binary files /dev/null and b/LayoutTests/fast/repaint/inline-outline-repaint-expected.png differ
diff --git a/LayoutTests/fast/repaint/inline-outline-repaint-expected.txt b/LayoutTests/fast/repaint/inline-outline-repaint-expected.txt
new file mode 100644 (file)
index 0000000..e1ed3aa
--- /dev/null
@@ -0,0 +1,68 @@
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
+EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 26 of #text > SPAN > DIV > BODY > HTML > #document to 26 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 26 of #text > SPAN > DIV > BODY > HTML > #document to 26 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 25 of #text > SPAN > DIV > BODY > HTML > #document to 25 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 25 of #text > SPAN > DIV > BODY > HTML > #document to 25 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 24 of #text > SPAN > DIV > BODY > HTML > #document to 24 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 24 of #text > SPAN > DIV > BODY > HTML > #document to 24 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 23 of #text > SPAN > DIV > BODY > HTML > #document to 23 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 23 of #text > SPAN > DIV > BODY > HTML > #document to 23 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 22 of #text > SPAN > DIV > BODY > HTML > #document to 22 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 22 of #text > SPAN > DIV > BODY > HTML > #document to 22 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 21 of #text > SPAN > DIV > BODY > HTML > #document to 21 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 21 of #text > SPAN > DIV > BODY > HTML > #document to 21 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 20 of #text > SPAN > DIV > BODY > HTML > #document to 20 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 20 of #text > SPAN > DIV > BODY > HTML > #document to 20 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 19 of #text > SPAN > DIV > BODY > HTML > #document to 19 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 19 of #text > SPAN > DIV > BODY > HTML > #document to 19 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 18 of #text > SPAN > DIV > BODY > HTML > #document to 18 of #text > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 18 of #text > SPAN > DIV > BODY > HTML > #document to 18 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x210
+  RenderBlock {HTML} at (0,0) size 800x210
+    RenderBody {BODY} at (8,16) size 784x186
+      RenderBlock {P} at (0,0) size 784x18
+        RenderInline {B} at (0,0) size 62x18
+          RenderText {#text} at (0,0) size 62x18
+            text run at (0,0) width 62: "BUG ID:"
+        RenderText {#text} at (62,0) size 4x18
+          text run at (62,0) width 4: " "
+        RenderInline {A} at (0,0) size 117x18 [color=#0000EE]
+          RenderText {#text} at (66,0) size 117x18
+            text run at (66,0) width 117: "Bugzilla bug 8337"
+        RenderText {#text} at (183,0) size 327x18
+          text run at (183,0) width 327: " Incomplete repaint of inlines\x{2019} outline during editing"
+      RenderBlock {P} at (0,34) size 784x42 [bgcolor=#98FB98]
+        RenderInline {B} at (0,0) size 91x18
+          RenderText {#text} at (3,3) size 91x18
+            text run at (3,3) width 91: "TEST PASS:"
+        RenderText {#text} at (94,3) size 757x36
+          text run at (94,3) width 4: " "
+          text run at (98,3) width 662: "The words \x{201C}sit amet\x{201D} will be deleted, and the blue outline will shrink to surround only the remaining text,"
+          text run at (3,21) width 316: "without leaving behind any trails or other artifacts."
+      RenderBlock {P} at (0,92) size 784x42 [bgcolor=#FF3300]
+        RenderInline {B} at (0,0) size 90x18
+          RenderText {#text} at (3,3) size 90x18
+            text run at (3,3) width 90: "TEST FAIL:"
+        RenderText {#text} at (93,3) size 725x36
+          text run at (93,3) width 4: " "
+          text run at (97,3) width 631: "As the words \x{201C}sit amet\x{201D} will be deleted, the blue outline will leave trails behind as it shrinks to fit the"
+          text run at (3,21) width 94: "remaining text."
+      RenderBlock {DIV} at (0,150) size 100x36
+        RenderInline {SPAN} at (0,0) size 88x36
+          RenderText {#text} at (0,0) size 88x36
+            text run at (0,0) width 88: "Lorem ipsum "
+            text run at (0,18) width 37: "dolor "
+caret: position 18 of child 0 {#text} of child 1 {SPAN} of child 7 {DIV} of child 1 {BODY} of child 0 {HTML} of document
similarity index 64%
rename from WebCore/manual-tests/inline-outline-repaint.html
rename to LayoutTests/fast/repaint/inline-outline-repaint.html
index 6a4dfbb11669e56a767fb528bb3f0d0f13770bf6..af45ea9821ec3ed556a3468bfc04f7bb8ea2670f 100644 (file)
@@ -2,14 +2,22 @@
         "http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en">
 <head>
+<script src="../../editing/editing.js"></script>
+<script src="repaint.js"></script>
+<script>
+    function repaintTest()
+    {
+        var elem = document.getElementById("test");
+        var selection = window.getSelection();
+        selection.setPosition(elem, 1);
+        for (i = 0; i < 9; i++)
+            document.execCommand("Delete");
+    }
+</script>
 </head>
-<body>
+<body onload="runRepaintTest();">
 <p><b>BUG ID:</b> <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=8337">Bugzilla bug 8337</a> Incomplete repaint of inlines&rsquo; outline during editing</p>
 
-<p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b> 
-Place the insertion point at the end of the outlined text below and press the Delete key 9 times.
-</p>
-
 <p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b> 
 The words &ldquo;sit amet&rdquo; will be deleted, and the blue outline will shrink to
 surround only the remaining text, without leaving behind any trails or other artifacts.
@@ -21,7 +29,7 @@ trails behind as it shrinks to fit the remaining text.
 </p>
 
 <div contenteditable style="width: 100px; outline: none;">
-<span style="outline: blue solid;">Lorem ipsum dolor sit amet&nbsp;</span>
+<span id="test" style="outline: blue solid;">Lorem ipsum dolor sit amet&nbsp;</span>
 </div>
 
 </body>
diff --git a/LayoutTests/fast/repaint/outline-repaint-glitch-expected.checksum b/LayoutTests/fast/repaint/outline-repaint-glitch-expected.checksum
new file mode 100644 (file)
index 0000000..37b56dd
--- /dev/null
@@ -0,0 +1 @@
+798127ee8563ce865dea3cc0ab347b6a
\ No newline at end of file
diff --git a/LayoutTests/fast/repaint/outline-repaint-glitch-expected.png b/LayoutTests/fast/repaint/outline-repaint-glitch-expected.png
new file mode 100644 (file)
index 0000000..ab9d1d6
Binary files /dev/null and b/LayoutTests/fast/repaint/outline-repaint-glitch-expected.png differ
diff --git a/LayoutTests/fast/repaint/outline-repaint-glitch-expected.txt b/LayoutTests/fast/repaint/outline-repaint-glitch-expected.txt
new file mode 100644 (file)
index 0000000..b3e86f4
--- /dev/null
@@ -0,0 +1,52 @@
+layer at (0,0) size 800x600
+  RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x510
+  RenderBlock {HTML} at (0,0) size 800x510
+    RenderBody {BODY} at (8,16) size 784x486
+      RenderBlock {P} at (0,0) size 784x18
+        RenderInline {B} at (0,0) size 62x18
+          RenderText {#text} at (0,0) size 62x18
+            text run at (0,0) width 62: "BUG ID:"
+        RenderText {#text} at (62,0) size 4x18
+          text run at (62,0) width 4: " "
+        RenderInline {A} at (0,0) size 117x18 [color=#0000EE]
+          RenderText {#text} at (66,0) size 117x18
+            text run at (66,0) width 117: "Bugzilla bug 8032"
+        RenderText {#text} at (183,0) size 522x18
+          text run at (183,0) width 522: " REGRESSION: Focus ring not completely redrawn after a Delete changes its size"
+      RenderBlock {P} at (0,34) size 784x18
+        RenderText {#text} at (0,0) size 370x18
+          text run at (0,0) width 370: "Note that this bug (and the test) are just outline versions of "
+        RenderInline {A} at (0,0) size 117x18 [color=#0000EE]
+          RenderText {#text} at (370,0) size 117x18
+            text run at (370,0) width 117: "Bugzilla bug 6301"
+        RenderText {#text} at (487,0) size 56x18
+          text run at (487,0) width 56: " and test "
+        RenderInline {A} at (0,0) size 161x18 [color=#0000EE]
+          RenderText {#text} at (543,0) size 161x18
+            text run at (543,0) width 161: "border-repaint-glitch.html"
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {P} at (0,68) size 784x24 [bgcolor=#98FB98]
+        RenderInline {B} at (0,0) size 91x18
+          RenderText {#text} at (3,3) size 91x18
+            text run at (3,3) width 91: "TEST PASS:"
+        RenderText {#text} at (94,3) size 441x18
+          text run at (94,3) width 4: " "
+          text run at (98,3) width 437: "The boxes will resize, maintaining their solid red rectangular outlines."
+      RenderBlock {P} at (0,108) size 784x60 [bgcolor=#FF3300]
+        RenderInline {B} at (0,0) size 90x18
+          RenderText {#text} at (3,3) size 90x18
+            text run at (3,3) width 90: "TEST FAIL:"
+        RenderText {#text} at (93,3) size 759x54
+          text run at (93,3) width 4: " "
+          text run at (97,3) width 665: "The boxes will resize, but the outlines will break. The first box will be missing small segments from either"
+          text run at (3,21) width 758: "side of its bottom outline. The second box will have small red horizontal segments protruding inwards from both sides of"
+          text run at (3,39) width 308: "the outline, where the bottom outline was before."
+      RenderBlock {DIV} at (0,184) size 222x142 [border: (1px solid #0000FF)]
+        RenderBlock {DIV} at (11,21) size 200x40 [bgcolor=#008080]
+          RenderBlock {DIV} at (10,0) size 180x40 [bgcolor=#C0C0C0]
+      RenderBlock (anonymous) at (0,326) size 784x18
+        RenderBR {BR} at (0,0) size 0x18
+      RenderBlock {DIV} at (0,344) size 222x142 [border: (1px solid #0000FF)]
+        RenderBlock {DIV} at (11,21) size 200x60 [bgcolor=#008080]
+          RenderBlock {DIV} at (10,0) size 180x60 [bgcolor=#C0C0C0]
similarity index 84%
rename from WebCore/manual-tests/outline-repaint-glitch.html
rename to LayoutTests/fast/repaint/outline-repaint-glitch.html
index c91384a357975e29a152b26f6e42d9074e9c66db..8af00b3f875a8c0c73c4920a33a63d44b0c3e416 100644 (file)
@@ -5,16 +5,20 @@
 <style type="text/css">
     div.test { width: 200px; height: 120px; border: 1px solid blue; padding: 10px; }
 </style>
+       <script src="repaint.js" type="text/javascript"></script>
+       <script type="text/javascript">
+          function repaintTest()
+          {
+           document.getElementById('a').style.height = '40px';
+           document.getElementById('b').style.height = '60px';
+          }
+       </script>
 </head>
-<body>
+<body onload="runRepaintTest();">
 <p><b>BUG ID:</b> <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=8032">Bugzilla bug 8032</a> REGRESSION: Focus ring not completely redrawn after a Delete changes its size</p>
 
 <p> Note that this bug (and the test) are just outline versions of <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=6301">Bugzilla bug 6301</a> and test <a href="border-repaint-glitch.html">border-repaint-glitch.html</a>
 
-<p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b> 
-Click each Test button once.
-</p>
-
 <p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b> 
 The boxes will resize, maintaining their solid red rectangular outlines.
 </p>
@@ -27,14 +31,12 @@ where the bottom outline was before.
 </p>
 
 <div class="test">
-    <button onclick="document.getElementById('a').style.height = '40px'">Test</button>
     <div style="background: teal; padding: 0; outline: solid red 4px;">
         <div id="a" style="height: 60px; margin: 10px; background:silver;"></div>
     </div>
 </div>
 <br>
 <div class="test">
-    <button onclick="document.getElementById('b').style.height = '60px'">Test</button>
     <div style="background: teal; padding: 0; outline: solid red 4px;">
         <div id="b" style="height: 40px; margin: 10px; background:silver;"></div>
     </div>
diff --git a/LayoutTests/fast/repaint/repaint-resized-overflow-expected.checksum b/LayoutTests/fast/repaint/repaint-resized-overflow-expected.checksum
new file mode 100644 (file)
index 0000000..6b82a37
--- /dev/null
@@ -0,0 +1 @@
+4a08fade6137f2ea6dca995ae001e2e6
\ No newline at end of file
diff --git a/LayoutTests/fast/repaint/repaint-resized-overflow-expected.png b/LayoutTests/fast/repaint/repaint-resized-overflow-expected.png
new file mode 100644 (file)
index 0000000..d58a166
Binary files /dev/null and b/LayoutTests/fast/repaint/repaint-resized-overflow-expected.png differ
diff --git a/LayoutTests/fast/repaint/repaint-resized-overflow-expected.txt b/LayoutTests/fast/repaint/repaint-resized-overflow-expected.txt
new file mode 100644 (file)
index 0000000..fd5aece
--- /dev/null
@@ -0,0 +1,35 @@
+layer at (0,0) size 800x600
+  RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x264
+  RenderBlock {HTML} at (0,0) size 800x264
+    RenderBody {BODY} at (8,16) size 784x240
+      RenderBlock {P} at (0,0) size 784x18
+        RenderInline {B} at (0,0) size 62x18
+          RenderText {#text} at (0,0) size 62x18
+            text run at (0,0) width 62: "BUG ID:"
+        RenderText {#text} at (62,0) size 4x18
+          text run at (62,0) width 4: " "
+        RenderInline {A} at (0,0) size 117x18 [color=#0000EE]
+          RenderText {#text} at (66,0) size 117x18
+            text run at (66,0) width 117: "Bugzilla bug 6770"
+        RenderText {#text} at (183,0) size 438x18
+          text run at (183,0) width 438: " REGRESSION: Incomplete repaint when block with clipping grows"
+      RenderBlock {P} at (0,34) size 784x42 [bgcolor=#98FB98]
+        RenderInline {B} at (0,0) size 91x18
+          RenderText {#text} at (3,3) size 91x18
+            text run at (3,3) width 91: "TEST PASS:"
+        RenderText {#text} at (94,3) size 748x36
+          text run at (94,3) width 4: " "
+          text run at (98,3) width 653: "There should be a white square with a blue border below, and no line running through the middle of the"
+          text run at (3,21) width 45: "square."
+      RenderBlock {P} at (0,92) size 784x24 [bgcolor=#FF3300]
+        RenderInline {B} at (0,0) size 90x18
+          RenderText {#text} at (3,3) size 90x18
+            text run at (3,3) width 90: "TEST FAIL:"
+        RenderText {#text} at (93,3) size 600x18
+          text run at (93,3) width 4: " "
+          text run at (97,3) width 596: "The white square will have a blue border and a blue horizontal line running through its middle."
+layer at (8,148) size 784x108
+  RenderBlock {DIV} at (0,132) size 784x108
+    RenderBlock {DIV} at (0,0) size 108x108 [border: (4px solid #0000FF)]
+      RenderBlock {DIV} at (124,4) size 10x100
similarity index 78%
rename from WebCore/manual-tests/repaint-resized-overflow.html
rename to LayoutTests/fast/repaint/repaint-resized-overflow.html
index 7b85102ce2a037e22873499cf0f84b11764aa085..df897bf2d6ce3eab8e1ca64ee9cc322963cd9c64 100644 (file)
@@ -2,21 +2,17 @@
         "http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en">
 <head>
+<script src="repaint.js"></script>
 <script>
-    function test()
+    function repaintTest()
     {
         document.getElementById("t").style.height='100px';
     }
 </script>
 </head>
-<body onload="setTimeout(test, 0);">
+<body onload="runRepaintTest();">
 <p><b>BUG ID:</b> <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=6770">Bugzilla bug 6770</a> REGRESSION: Incomplete repaint when block with clipping grows</p>
 
-<p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b> 
-Do not resize the window, hide it, scroll, or switch to a different tab. If you do, reload
-the test before proceeding.
-</p>
-
 <p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b> 
 There should be a white square with a blue border below, and no line running through
 the middle of the square.
diff --git a/LayoutTests/fast/repaint/repaint.js b/LayoutTests/fast/repaint/repaint.js
new file mode 100644 (file)
index 0000000..849f9ca
--- /dev/null
@@ -0,0 +1,10 @@
+function runRepaintTest()
+{
+    if (window.layoutTestController) {
+        document.body.offsetTop;
+        layoutTestController.display();
+        repaintTest();
+    } else {
+        setTimeout(repaintTest, 0);
+    }
+}
diff --git a/LayoutTests/fast/repaint/resources/apple.jpg b/LayoutTests/fast/repaint/resources/apple.jpg
new file mode 100644 (file)
index 0000000..bce4c38
Binary files /dev/null and b/LayoutTests/fast/repaint/resources/apple.jpg differ
diff --git a/LayoutTests/fast/repaint/table-cell-move-expected.checksum b/LayoutTests/fast/repaint/table-cell-move-expected.checksum
new file mode 100644 (file)
index 0000000..bb428ce
--- /dev/null
@@ -0,0 +1 @@
+01b376508ae26977c599524ce333f0f9
\ No newline at end of file
diff --git a/LayoutTests/fast/repaint/table-cell-move-expected.png b/LayoutTests/fast/repaint/table-cell-move-expected.png
new file mode 100644 (file)
index 0000000..b140656
Binary files /dev/null and b/LayoutTests/fast/repaint/table-cell-move-expected.png differ
diff --git a/LayoutTests/fast/repaint/table-cell-move-expected.txt b/LayoutTests/fast/repaint/table-cell-move-expected.txt
new file mode 100644 (file)
index 0000000..b3c6aee
--- /dev/null
@@ -0,0 +1,43 @@
+layer at (0,0) size 800x600
+  RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x388
+  RenderBlock {HTML} at (0,0) size 800x388
+    RenderBody {BODY} at (8,16) size 784x364
+      RenderBlock {P} at (0,0) size 784x18
+        RenderInline {B} at (0,0) size 62x18
+          RenderText {#text} at (0,0) size 62x18
+            text run at (0,0) width 62: "BUG ID:"
+        RenderText {#text} at (62,0) size 4x18
+          text run at (62,0) width 4: " "
+        RenderInline {A} at (0,0) size 117x18 [color=#0000EE]
+          RenderText {#text} at (66,0) size 117x18
+            text run at (66,0) width 117: "Bugzilla bug 8449"
+        RenderText {#text} at (183,0) size 381x18
+          text run at (183,0) width 381: " REGRESSION: Incomplete repaint of table cell that moved"
+      RenderBlock {P} at (0,34) size 784x24 [bgcolor=#98FB98]
+        RenderInline {B} at (0,0) size 91x18
+          RenderText {#text} at (3,3) size 91x18
+            text run at (3,3) width 91: "TEST PASS:"
+        RenderText {#text} at (94,3) size 405x18
+          text run at (94,3) width 4: " "
+          text run at (98,3) width 401: "There should be only a green square below the line, and no red."
+      RenderBlock {P} at (0,74) size 784x24 [bgcolor=#FF3300]
+        RenderInline {B} at (0,0) size 90x18
+          RenderText {#text} at (3,3) size 90x18
+            text run at (3,3) width 90: "TEST FAIL:"
+        RenderText {#text} at (93,3) size 310x18
+          text run at (93,3) width 4: " "
+          text run at (97,3) width 306: "There will be a red square and a green rectangle."
+      RenderBlock {HR} at (0,114) size 784x2 [border: (1px inset #000000)]
+      RenderTable {TABLE} at (0,124) size 61x240
+        RenderTableSection {TBODY} at (0,0) size 61x240
+          RenderTableRow {TR} at (0,0) size 61x60
+            RenderTableCell {TD} at (0,30) size 60x0 [r=0 c=0 rs=1 cs=1]
+            RenderTableCell {TD} at (60,30) size 1x0 [r=0 c=1 rs=1 cs=1]
+          RenderTableRow {TR} at (0,60) size 61x180
+            RenderTableCell {TD} at (0,120) size 60x60 [r=1 c=0 rs=1 cs=1]
+              RenderBlock {DIV} at (0,0) size 60x60 [bgcolor=#008000]
+            RenderTableCell {TD} at (60,150) size 1x0 [r=1 c=1 rs=1 cs=1]
+          RenderTableRow {TR} at (0,240) size 61x0
+            RenderTableCell {TD} at (0,240) size 60x0 [bgcolor=#FF0000] [r=2 c=0 rs=1 cs=1]
+            RenderTableCell {TD} at (60,240) size 1x0 [r=2 c=1 rs=1 cs=1]
similarity index 76%
rename from WebCore/manual-tests/table-cell-move.html
rename to LayoutTests/fast/repaint/table-cell-move.html
index dd73f21a2ba958f2ed63d149cb91f1d31ae3c625..a6f6b9f17af3c0b27f55bdd52024f54dfbf2d29a 100644 (file)
@@ -2,15 +2,26 @@
         "http://www.w3.org/TR/html4/strict.dtd">
 <html>
 <head>
+<script src="repaint.js"></script>
 <script>
-    function test()
+    function repaintTest()
     {
         document.getElementById("t").style.height='60px';
         document.getElementById("s").style.height='0';
     }
 </script>
 </head>
-<body onload="setTimeout(test, 0);">
+<body onload="runRepaintTest();">
+<p><b>BUG ID:</b> <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=8449">Bugzilla bug 8449</a>
+REGRESSION: Incomplete repaint of table cell that moved
+<p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b> 
+There should be only a green square below the line, and no red.
+</p>
+
+<p id="failure" style="background-color:#FF3300; padding:3px;"><b>TEST FAIL:</b>  
+There will be a red square and a green rectangle.
+</p>
+<hr>
 <table cellspacing="0" cellpadding="0">
     <tr>
         <td></td>
         <td style="height: 60px;" id="s"></td>
     </tr>
 </table>
-<hr>
-<p><b>BUG ID:</b> <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=8449">Bugzilla bug 8449</a>
-REGRESSION: Incomplete repaint of table cell that moved
-<p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b> 
-    Do not resize the window, hide it, scroll, or switch to a different tab. If you do, reload
-    the test before proceeding.
-</p>
-<p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b> 
-There should be only a green square above the line, and no red.
-</p>
-
-<p id="failure" style="background-color:#FF3300; padding:3px;"><b>TEST FAIL:</b>  
-There will be a red square and a green rectangle.
-</p>
 
 </body>
 </html>
index 27597ec267ada48a67389340ce2c29451b3f8254..1f7ff335815fec9bdfb525c4ad279a245dbbbfc1 100644 (file)
@@ -1,3 +1,23 @@
+2006-04-27  Mitz Pettel  <opendarwin.org@mitzpettel.com>
+
+        Reviewed by darin
+        
+        <http://bugzilla.opendarwin.org/show_bug.cgi?id=8607>
+        Automate repaint tests
+
+        * manual-tests/backgroundSizeRepaint.html: Removed.
+        * manual-tests/border-repaint-glitch.html: Removed.
+        * manual-tests/bugzilla-3509.html: Removed.
+        * manual-tests/bugzilla-5699.html: Removed.
+        * manual-tests/bugzilla-6278.html: Removed.
+        * manual-tests/bugzilla-6388.html: Removed.
+        * manual-tests/bugzilla-6473.html: Removed.
+        * manual-tests/bugzilla-7235.html: Removed.
+        * manual-tests/inline-outline-repaint.html: Removed.
+        * manual-tests/outline-repaint-glitch.html: Removed.
+        * manual-tests/repaint-resized-overflow.html: Removed.
+        * manual-tests/table-cell-move.html: Removed.
+
 2006-04-27  Justin Garcia  <justin.garcia@apple.com>
 
         Reviewed by darin