Convert fast/events/label-focus.html to a text only test
authoradele@apple.com <adele@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Apr 2011 23:09:14 +0000 (23:09 +0000)
committeradele@apple.com <adele@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Apr 2011 23:09:14 +0000 (23:09 +0000)
https://bugs.webkit.org/show_bug.cgi?id=59364

Reviewed by Adam Roben.

* fast/events/label-focus-expected.txt: Copied from LayoutTests/platform/mac/fast/events/label-focus-expected.txt.
* fast/events/label-focus.html:
* platform/chromium-linux/fast/events/label-focus-expected.png: Removed.
* platform/chromium-win/fast/events/label-focus-expected.png: Removed.
* platform/chromium-win/fast/events/label-focus-expected.txt: Removed.
* platform/gtk/fast/events/label-focus-expected.png: Removed.
* platform/gtk/fast/events/label-focus-expected.txt: Removed.
* platform/mac-leopard/fast/events/label-focus-expected.png: Removed.
* platform/mac/fast/events/label-focus-expected.png: Removed.
* platform/mac/fast/events/label-focus-expected.txt: Removed.
* platform/qt/fast/events/label-focus-expected.txt: Removed.

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

12 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/events/label-focus-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/label-focus.html
LayoutTests/platform/chromium-linux/fast/events/label-focus-expected.png [deleted file]
LayoutTests/platform/chromium-win/fast/events/label-focus-expected.png [deleted file]
LayoutTests/platform/chromium-win/fast/events/label-focus-expected.txt [deleted file]
LayoutTests/platform/gtk/fast/events/label-focus-expected.png [deleted file]
LayoutTests/platform/gtk/fast/events/label-focus-expected.txt [deleted file]
LayoutTests/platform/mac-leopard/fast/events/label-focus-expected.png [deleted file]
LayoutTests/platform/mac/fast/events/label-focus-expected.png [deleted file]
LayoutTests/platform/mac/fast/events/label-focus-expected.txt [deleted file]
LayoutTests/platform/qt/fast/events/label-focus-expected.txt [deleted file]

index e0ef171..1846fa1 100644 (file)
@@ -1,3 +1,22 @@
+2011-04-25  Adele Peterson  <adele@apple.com>
+
+        Reviewed by Adam Roben.
+
+        Convert fast/events/label-focus.html to a text only test
+        https://bugs.webkit.org/show_bug.cgi?id=59364
+
+        * fast/events/label-focus-expected.txt: Copied from LayoutTests/platform/mac/fast/events/label-focus-expected.txt.
+        * fast/events/label-focus.html:
+        * platform/chromium-linux/fast/events/label-focus-expected.png: Removed.
+        * platform/chromium-win/fast/events/label-focus-expected.png: Removed.
+        * platform/chromium-win/fast/events/label-focus-expected.txt: Removed.
+        * platform/gtk/fast/events/label-focus-expected.png: Removed.
+        * platform/gtk/fast/events/label-focus-expected.txt: Removed.
+        * platform/mac-leopard/fast/events/label-focus-expected.png: Removed.
+        * platform/mac/fast/events/label-focus-expected.png: Removed.
+        * platform/mac/fast/events/label-focus-expected.txt: Removed.
+        * platform/qt/fast/events/label-focus-expected.txt: Removed.
+
 2011-04-25  Dan Bernstein  <mitz@apple.com>
 
         Reviewed by Sam Weinig.
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..32779ba
--- /dev/null
@@ -0,0 +1,2 @@
+Label: 
+THIS TEST HAS PASSED
index acd0660..98ad4d5 100644 (file)
@@ -1,12 +1,14 @@
 <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>
+    <body>
+        <script>
+            if (window.layoutTestController)
+                layoutTestController.dumpAsText();
+        </script>
+        <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>
 
diff --git a/LayoutTests/platform/chromium-linux/fast/events/label-focus-expected.png b/LayoutTests/platform/chromium-linux/fast/events/label-focus-expected.png
deleted file mode 100644 (file)
index 1c156b2..0000000
Binary files a/LayoutTests/platform/chromium-linux/fast/events/label-focus-expected.png and /dev/null differ
diff --git a/LayoutTests/platform/chromium-win/fast/events/label-focus-expected.png b/LayoutTests/platform/chromium-win/fast/events/label-focus-expected.png
deleted file mode 100644 (file)
index d28d365..0000000
Binary files a/LayoutTests/platform/chromium-win/fast/events/label-focus-expected.png and /dev/null differ
diff --git a/LayoutTests/platform/chromium-win/fast/events/label-focus-expected.txt b/LayoutTests/platform/chromium-win/fast/events/label-focus-expected.txt
deleted file mode 100644 (file)
index a83dd83..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-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 784x26
-        RenderInline {LABEL} at (0,0) size 200x19
-          RenderText {#text} at (0,3) size 41x19
-            text run at (0,3) width 41: "Label: "
-          RenderTextControl {INPUT} at (43,2) size 155x22 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-        RenderText {#text} at (0,0) size 0x0
-      RenderBlock {DIV} at (0,26) size 784x20
-        RenderText {#text} at (0,0) size 171x19
-          text run at (0,0) width 171: "THIS TEST HAS PASSED"
-layer at (53,13) size 151x16
-  RenderBlock {DIV} at (2,3) size 151x16
-caret: position 0 of child 0 {DIV} of child 1 {INPUT} of child 1 {LABEL} of body
diff --git a/LayoutTests/platform/gtk/fast/events/label-focus-expected.png b/LayoutTests/platform/gtk/fast/events/label-focus-expected.png
deleted file mode 100644 (file)
index 38b7356..0000000
Binary files a/LayoutTests/platform/gtk/fast/events/label-focus-expected.png and /dev/null differ
diff --git a/LayoutTests/platform/gtk/fast/events/label-focus-expected.txt b/LayoutTests/platform/gtk/fast/events/label-focus-expected.txt
deleted file mode 100644 (file)
index b58b81a..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-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 784x29
-        RenderInline {LABEL} at (0,0) size 242x19
-          RenderText {#text} at (0,5) size 44x19
-            text run at (0,5) width 44: "Label: "
-          RenderTextControl {INPUT} at (46,2) size 194x25 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-        RenderText {#text} at (0,0) size 0x0
-      RenderBlock {DIV} at (0,29) size 784x19
-        RenderText {#text} at (0,0) size 181x19
-          text run at (0,0) width 181: "THIS TEST HAS PASSED"
-layer at (57,13) size 188x19
-  RenderBlock {DIV} at (3,3) size 188x19
-caret: position 0 of child 0 {DIV} of child 1 {INPUT} of child 1 {LABEL} of body
diff --git a/LayoutTests/platform/mac-leopard/fast/events/label-focus-expected.png b/LayoutTests/platform/mac-leopard/fast/events/label-focus-expected.png
deleted file mode 100644 (file)
index 1b02190..0000000
Binary files a/LayoutTests/platform/mac-leopard/fast/events/label-focus-expected.png and /dev/null differ
diff --git a/LayoutTests/platform/mac/fast/events/label-focus-expected.png b/LayoutTests/platform/mac/fast/events/label-focus-expected.png
deleted file mode 100644 (file)
index 560f374..0000000
Binary files a/LayoutTests/platform/mac/fast/events/label-focus-expected.png and /dev/null differ
diff --git a/LayoutTests/platform/mac/fast/events/label-focus-expected.txt b/LayoutTests/platform/mac/fast/events/label-focus-expected.txt
deleted file mode 100644 (file)
index 003d713..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-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 173x18
-          RenderText {#text} at (0,2) size 44x18
-            text run at (0,2) width 44: "Label: "
-          RenderTextControl {INPUT} at (46,2) size 125x19 [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 119x13
-  RenderBlock {DIV} at (3,3) size 119x13
-caret: position 0 of child 0 {DIV} of child 1 {INPUT} of child 1 {LABEL} of body
diff --git a/LayoutTests/platform/qt/fast/events/label-focus-expected.txt b/LayoutTests/platform/qt/fast/events/label-focus-expected.txt
deleted file mode 100644 (file)
index 57af1eb..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-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 784x30
-        RenderInline {LABEL} at (0,0) size 218x22
-          RenderText {#text} at (0,4) size 48x22
-            text run at (0,4) width 48: "Label: "
-          RenderTextControl {INPUT} at (50,2) size 166x26
-        RenderText {#text} at (0,0) size 0x0
-      RenderBlock {DIV} at (0,30) size 784x22
-        RenderText {#text} at (0,0) size 188x22
-          text run at (0,0) width 188: "THIS TEST HAS PASSED"
-layer at (60,12) size 162x22
-  RenderBlock {DIV} at (2,2) size 162x22
-caret: position 0 of child 0 {DIV} of child 1 {INPUT} of child 1 {LABEL} of body