New label layout test.
authorhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Sep 2006 06:20:19 +0000 (06:20 +0000)
committerhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Sep 2006 06:20:19 +0000 (06:20 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16340 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/fast/events/label-focus-expected.checksum [new file with mode: 0644]
LayoutTests/fast/events/label-focus-expected.png [new file with mode: 0644]
LayoutTests/fast/events/label-focus-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/label-focus.html [new file with mode: 0644]

diff --git a/LayoutTests/fast/events/label-focus-expected.checksum b/LayoutTests/fast/events/label-focus-expected.checksum
new file mode 100644 (file)
index 0000000..d4305ba
--- /dev/null
@@ -0,0 +1 @@
+94b5466981ab6d1292d331662f291b36
\ No newline at end of file
diff --git a/LayoutTests/fast/events/label-focus-expected.png b/LayoutTests/fast/events/label-focus-expected.png
new file mode 100644 (file)
index 0000000..89dff0d
Binary files /dev/null and b/LayoutTests/fast/events/label-focus-expected.png differ
diff --git a/LayoutTests/fast/events/label-focus-expected.txt b/LayoutTests/fast/events/label-focus-expected.txt
new file mode 100644 (file)
index 0000000..a0cdbc7
--- /dev/null
@@ -0,0 +1,18 @@
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+  RenderView 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,0) size 784x23
+        RenderInline {LABEL} at (0,0) size 196x18
+          RenderText {#text} at (0,2) size 44x18
+            text run at (0,2) width 44: "Label: "
+          RenderTextField {INPUT} at (46,2) size 148x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,23) size 784x18
+        RenderText {#text} at (0,0) size 181x18
+          text run at (0,0) width 181: "THIS TEST HAS PASSED"
+layer at (57,13) size 142x13
+  RenderBlock {DIV} at (3,3) size 142x13
+caret: position 0 of child 0 {DIV} of child 1 {INPUT} of child 1 {LABEL} of child 0 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/fast/events/label-focus.html b/LayoutTests/fast/events/label-focus.html
new file mode 100644 (file)
index 0000000..acd0660
--- /dev/null
@@ -0,0 +1,12 @@
+<html>
+<body>
+<label id="label">Label: <input type=text onfocus="document.getElementById('output').innerHTML = 'THIS TEST HAS PASSED'"></label>
+<div id="output">
+THIS TEST HAS FAILED
+</div>
+<script>
+document.getElementById('label').focus()
+</script>
+</body>
+</html>
+