Add layout test for list marker crash
authorhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Aug 2006 21:04:35 +0000 (21:04 +0000)
committerhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Aug 2006 21:04:35 +0000 (21:04 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15802 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/fast/lists/dynamic-marker-crash-expected.checksum [new file with mode: 0644]
LayoutTests/fast/lists/dynamic-marker-crash-expected.png [new file with mode: 0644]
LayoutTests/fast/lists/dynamic-marker-crash-expected.txt [new file with mode: 0644]
LayoutTests/fast/lists/dynamic-marker-crash.html [new file with mode: 0644]

diff --git a/LayoutTests/fast/lists/dynamic-marker-crash-expected.checksum b/LayoutTests/fast/lists/dynamic-marker-crash-expected.checksum
new file mode 100644 (file)
index 0000000..1530798
--- /dev/null
@@ -0,0 +1 @@
+80634d79cf211251af43e265626ebeff
\ No newline at end of file
diff --git a/LayoutTests/fast/lists/dynamic-marker-crash-expected.png b/LayoutTests/fast/lists/dynamic-marker-crash-expected.png
new file mode 100644 (file)
index 0000000..613bc5c
Binary files /dev/null and b/LayoutTests/fast/lists/dynamic-marker-crash-expected.png differ
diff --git a/LayoutTests/fast/lists/dynamic-marker-crash-expected.txt b/LayoutTests/fast/lists/dynamic-marker-crash-expected.txt
new file mode 100644 (file)
index 0000000..149594d
--- /dev/null
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x89
+  RenderBlock {HTML} at (0,0) size 800x89
+    RenderBody {BODY} at (8,16) size 784x57
+      RenderBlock {UL} at (0,0) size 784x57
+        RenderListItem {LI} at (40,0) size 744x57
+          RenderBlock {FORM} at (0,0) size 744x23
+            RenderBlock {P} at (0,0) size 744x23
+              RenderListMarker at (-17,2) size 7x18
+              RenderTextField {INPUT} at (2,2) size 287x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+              RenderText {#text} at (0,0) size 0x0
+          RenderBlock {P} at (0,39) size 744x18
+            RenderText {#text} at (0,0) size 332x18
+              text run at (0,0) width 332: "There should be an input field above this line of text."
+layer at (53,21) size 281x13
+  RenderBlock {DIV} at (3,3) size 281x13
+    RenderText {#text} at (1,0) size 58x13
+      text run at (1,0) width 58: "blah blubb"
diff --git a/LayoutTests/fast/lists/dynamic-marker-crash.html b/LayoutTests/fast/lists/dynamic-marker-crash.html
new file mode 100644 (file)
index 0000000..94dc792
--- /dev/null
@@ -0,0 +1,31 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+     "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+       <head>
+               <title>Test</title>
+               <script type="text/javascript">
+                       function displayOnOff(el)
+                       {
+                               el.style.display = (el.style.display == 'block') ? 'none' : 'block';
+                       }
+               </script>
+       </head>
+       <body>
+               
+       <!-- Removing the <ul> and <li> elements will make this work in Safari! -->
+       <ul>
+         <li> 
+               <form action="./" id="myform" method="get" style="display:none">
+                       <p><input id="tag_list" name="tag_list" size="40" type="text" value="blah blubb" >
+                       </p>
+               </form>
+               <p>There should be an input field above this line of text.</a></p>
+         </li>
+       </ul>
+<script>
+document.body.offsetLeft
+displayOnOff(document.getElementById('myform'))
+document.body.offsetLeft
+</script>
+       </body>
+</html>
\ No newline at end of file