[Forms] Re-organize test files of label element
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Mar 2012 09:31:25 +0000 (09:31 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Mar 2012 09:31:25 +0000 (09:31 +0000)
https://bugs.webkit.org/show_bug.cgi?id=80575

There are 988 files under LayoutTests/fast/forms. It is hard to find
a file from UI. To improve discoverability of file, it is better to
organize files based on element as some test files did.

This patch moves test files of "label" element to fast/forms/label and
adjusts path of JavaScript files.

Patch by Yoshifumi Inoue <yosin@chromium.org> on 2012-03-08
Reviewed by Kentaro Hara.

* fast/forms/label/labels-add-htmlFor-label-expected.txt: Renamed from LayoutTests/fast/forms/labels-add-htmlFor-label-expected.txt.
* fast/forms/label/labels-add-htmlFor-label.html: Renamed from LayoutTests/fast/forms/labels-add-htmlFor-label.html.
* fast/forms/label/labels-add-parent-label-expected.txt: Renamed from LayoutTests/fast/forms/labels-add-parent-label-expected.txt.
* fast/forms/label/labels-add-parent-label.html: Renamed from LayoutTests/fast/forms/labels-add-parent-label.html.
* fast/forms/label/labels-change-htmlFor-attribute-expected.txt: Renamed from LayoutTests/fast/forms/labels-change-htmlFor-attribute-expected.txt.
* fast/forms/label/labels-change-htmlFor-attribute.html: Renamed from LayoutTests/fast/forms/labels-change-htmlFor-attribute.html.
* fast/forms/label/labels-custom-property-expected.txt: Renamed from LayoutTests/fast/forms/labels-custom-property-expected.txt.
* fast/forms/label/labels-custom-property.html: Renamed from LayoutTests/fast/forms/labels-custom-property.html.
* fast/forms/label/labels-item-index-expected.txt: Renamed from LayoutTests/fast/forms/labels-item-index-expected.txt.
* fast/forms/label/labels-item-index.html: Renamed from LayoutTests/fast/forms/labels-item-index.html.
* fast/forms/label/labels-remove-htmlFor-attribute-expected.txt: Renamed from LayoutTests/fast/forms/labels-remove-htmlFor-attribute-expected.txt.
* fast/forms/label/labels-remove-htmlFor-attribute.html: Renamed from LayoutTests/fast/forms/labels-remove-htmlFor-attribute.html.
* fast/forms/label/labels-remove-htmlFor-label-expected.txt: Renamed from LayoutTests/fast/forms/labels-remove-htmlFor-label-expected.txt.
* fast/forms/label/labels-remove-htmlFor-label.html: Renamed from LayoutTests/fast/forms/labels-remove-htmlFor-label.html.
* fast/forms/label/labels-remove-parent-label-expected.txt: Renamed from LayoutTests/fast/forms/labels-remove-parent-label-expected.txt.
* fast/forms/label/labels-remove-parent-label.html: Renamed from LayoutTests/fast/forms/labels-remove-parent-label.html.
* fast/forms/label/labels-set-htmlFor-attribute-expected.txt: Renamed from LayoutTests/fast/forms/labels-set-htmlFor-attribute-expected.txt.
* fast/forms/label/labels-set-htmlFor-attribute.html: Renamed from LayoutTests/fast/forms/labels-set-htmlFor-attribute.html.

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

19 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/forms/label/labels-add-htmlFor-label-expected.txt [moved from LayoutTests/fast/forms/labels-add-htmlFor-label-expected.txt with 100% similarity]
LayoutTests/fast/forms/label/labels-add-htmlFor-label.html [moved from LayoutTests/fast/forms/labels-add-htmlFor-label.html with 91% similarity]
LayoutTests/fast/forms/label/labels-add-parent-label-expected.txt [moved from LayoutTests/fast/forms/labels-add-parent-label-expected.txt with 100% similarity]
LayoutTests/fast/forms/label/labels-add-parent-label.html [moved from LayoutTests/fast/forms/labels-add-parent-label.html with 92% similarity]
LayoutTests/fast/forms/label/labels-change-htmlFor-attribute-expected.txt [moved from LayoutTests/fast/forms/labels-change-htmlFor-attribute-expected.txt with 100% similarity]
LayoutTests/fast/forms/label/labels-change-htmlFor-attribute.html [moved from LayoutTests/fast/forms/labels-change-htmlFor-attribute.html with 90% similarity]
LayoutTests/fast/forms/label/labels-custom-property-expected.txt [moved from LayoutTests/fast/forms/labels-custom-property-expected.txt with 100% similarity]
LayoutTests/fast/forms/label/labels-custom-property.html [moved from LayoutTests/fast/forms/labels-custom-property.html with 83% similarity]
LayoutTests/fast/forms/label/labels-item-index-expected.txt [moved from LayoutTests/fast/forms/labels-item-index-expected.txt with 100% similarity]
LayoutTests/fast/forms/label/labels-item-index.html [moved from LayoutTests/fast/forms/labels-item-index.html with 89% similarity]
LayoutTests/fast/forms/label/labels-remove-htmlFor-attribute-expected.txt [moved from LayoutTests/fast/forms/labels-remove-htmlFor-attribute-expected.txt with 100% similarity]
LayoutTests/fast/forms/label/labels-remove-htmlFor-attribute.html [moved from LayoutTests/fast/forms/labels-remove-htmlFor-attribute.html with 91% similarity]
LayoutTests/fast/forms/label/labels-remove-htmlFor-label-expected.txt [moved from LayoutTests/fast/forms/labels-remove-htmlFor-label-expected.txt with 100% similarity]
LayoutTests/fast/forms/label/labels-remove-htmlFor-label.html [moved from LayoutTests/fast/forms/labels-remove-htmlFor-label.html with 90% similarity]
LayoutTests/fast/forms/label/labels-remove-parent-label-expected.txt [moved from LayoutTests/fast/forms/labels-remove-parent-label-expected.txt with 100% similarity]
LayoutTests/fast/forms/label/labels-remove-parent-label.html [moved from LayoutTests/fast/forms/labels-remove-parent-label.html with 91% similarity]
LayoutTests/fast/forms/label/labels-set-htmlFor-attribute-expected.txt [moved from LayoutTests/fast/forms/labels-set-htmlFor-attribute-expected.txt with 100% similarity]
LayoutTests/fast/forms/label/labels-set-htmlFor-attribute.html [moved from LayoutTests/fast/forms/labels-set-htmlFor-attribute.html with 91% similarity]

index 0ac6683..7dbc71c 100644 (file)
@@ -1,3 +1,36 @@
+2012-03-08  Yoshifumi Inoue  <yosin@chromium.org>
+
+        [Forms] Re-organize test files of label element
+        https://bugs.webkit.org/show_bug.cgi?id=80575
+
+        There are 988 files under LayoutTests/fast/forms. It is hard to find
+        a file from UI. To improve discoverability of file, it is better to 
+        organize files based on element as some test files did.
+
+        This patch moves test files of "label" element to fast/forms/label and
+        adjusts path of JavaScript files.
+
+        Reviewed by Kentaro Hara.
+
+        * fast/forms/label/labels-add-htmlFor-label-expected.txt: Renamed from LayoutTests/fast/forms/labels-add-htmlFor-label-expected.txt.
+        * fast/forms/label/labels-add-htmlFor-label.html: Renamed from LayoutTests/fast/forms/labels-add-htmlFor-label.html.
+        * fast/forms/label/labels-add-parent-label-expected.txt: Renamed from LayoutTests/fast/forms/labels-add-parent-label-expected.txt.
+        * fast/forms/label/labels-add-parent-label.html: Renamed from LayoutTests/fast/forms/labels-add-parent-label.html.
+        * fast/forms/label/labels-change-htmlFor-attribute-expected.txt: Renamed from LayoutTests/fast/forms/labels-change-htmlFor-attribute-expected.txt.
+        * fast/forms/label/labels-change-htmlFor-attribute.html: Renamed from LayoutTests/fast/forms/labels-change-htmlFor-attribute.html.
+        * fast/forms/label/labels-custom-property-expected.txt: Renamed from LayoutTests/fast/forms/labels-custom-property-expected.txt.
+        * fast/forms/label/labels-custom-property.html: Renamed from LayoutTests/fast/forms/labels-custom-property.html.
+        * fast/forms/label/labels-item-index-expected.txt: Renamed from LayoutTests/fast/forms/labels-item-index-expected.txt.
+        * fast/forms/label/labels-item-index.html: Renamed from LayoutTests/fast/forms/labels-item-index.html.
+        * fast/forms/label/labels-remove-htmlFor-attribute-expected.txt: Renamed from LayoutTests/fast/forms/labels-remove-htmlFor-attribute-expected.txt.
+        * fast/forms/label/labels-remove-htmlFor-attribute.html: Renamed from LayoutTests/fast/forms/labels-remove-htmlFor-attribute.html.
+        * fast/forms/label/labels-remove-htmlFor-label-expected.txt: Renamed from LayoutTests/fast/forms/labels-remove-htmlFor-label-expected.txt.
+        * fast/forms/label/labels-remove-htmlFor-label.html: Renamed from LayoutTests/fast/forms/labels-remove-htmlFor-label.html.
+        * fast/forms/label/labels-remove-parent-label-expected.txt: Renamed from LayoutTests/fast/forms/labels-remove-parent-label-expected.txt.
+        * fast/forms/label/labels-remove-parent-label.html: Renamed from LayoutTests/fast/forms/labels-remove-parent-label.html.
+        * fast/forms/label/labels-set-htmlFor-attribute-expected.txt: Renamed from LayoutTests/fast/forms/labels-set-htmlFor-attribute-expected.txt.
+        * fast/forms/label/labels-set-htmlFor-attribute.html: Renamed from LayoutTests/fast/forms/labels-set-htmlFor-attribute.html.
+
 2012-03-07  Mike Lawther  <mikelawther@chromium.org>
 
         CSS3 calc: mixed absolute/percentages work for width, height, margin and padding
@@ -1,7 +1,7 @@
 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
 <html>
 <head>
-<script src="../../fast/js/resources/js-test-pre.js"></script>
+<script src="../../../fast/js/resources/js-test-pre.js"></script>
 </head>
 <body>
 <p id="description"></p>
@@ -43,6 +43,6 @@ label.htmlFor = "id4";
 document.getElementById("div1").appendChild(label);
 shouldBe('labels.length', '1');
 </script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
+<script src="../../../fast/js/resources/js-test-post.js"></script>
 </body>
 </html>
@@ -1,7 +1,7 @@
 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
 <html>
 <head>
-<script src="../../fast/js/resources/js-test-pre.js"></script>
+<script src="../../../fast/js/resources/js-test-pre.js"></script>
 </head>
 <body>
 <p id="description"></p>
@@ -44,6 +44,6 @@ label.appendChild(document.getElementById("id4"));
 shouldBe('labels.length', '1');
 
 </script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
+<script src="../../../fast/js/resources/js-test-post.js"></script>
 </body>
 </html>
@@ -1,7 +1,7 @@
 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
 <html>
 <head>
-<script src="../../fast/js/resources/js-test-pre.js"></script>
+<script src="../../../fast/js/resources/js-test-pre.js"></script>
 </head>
 <body>
 <p id="description"></p>
@@ -40,6 +40,6 @@ label.htmlFor = "id4";
 shouldBe('labels.length', '1');
 
 </script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
+<script src="../../../fast/js/resources/js-test-post.js"></script>
 </body>
 </html>
@@ -1,7 +1,7 @@
 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
 <html>
 <head>
-<script src="../../fast/js/resources/js-test-pre.js"></script>
+<script src="../../../fast/js/resources/js-test-pre.js"></script>
 </head>
 <body>
 <p id="description"></p>
@@ -21,6 +21,6 @@ gc();
 shouldBe('labels.customProperty', '1');
 shouldBe('document.getElementById("btn").labels.customProperty', '1');
 </script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
+<script src="../../../fast/js/resources/js-test-post.js"></script>
 </body>
 </html>
@@ -1,7 +1,7 @@
 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
 <html>
 <head>
-<script src="../../fast/js/resources/js-test-pre.js"></script>
+<script src="../../../fast/js/resources/js-test-pre.js"></script>
 </head>
 <body>
 <p id="description"></p>
@@ -27,6 +27,6 @@ shouldBe('labels.item(1).id', '"l13"');
 labels = document.getElementById("id4").labels;
 shouldBe('labels.item(1).id', '"l14"');
 </script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
+<script src="../../../fast/js/resources/js-test-post.js"></script>
 </body>
 </html>
@@ -1,7 +1,7 @@
 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
 <html>
 <head>
-<script src="../../fast/js/resources/js-test-pre.js"></script>
+<script src="../../../fast/js/resources/js-test-pre.js"></script>
 </head>
 <body>
 <p id="description"></p>
@@ -40,6 +40,6 @@ label.removeAttribute("for");
 shouldBe('labels.length', '0');
 
 </script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
+<script src="../../../fast/js/resources/js-test-post.js"></script>
 </body>
 </html>
@@ -1,7 +1,7 @@
 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
 <html>
 <head>
-<script src="../../fast/js/resources/js-test-pre.js"></script>
+<script src="../../../fast/js/resources/js-test-pre.js"></script>
 </head>
 <body>
 <p id="description"></p>
@@ -35,6 +35,6 @@ shouldBe('labels.length', '1');
 document.getElementById("l4").htmlFor = "";
 shouldBe('labels.length', '0');
 </script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
+<script src="../../../fast/js/resources/js-test-post.js"></script>
 </body>
 </html>
@@ -1,7 +1,7 @@
 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
 <html>
 <head>
-<script src="../../fast/js/resources/js-test-pre.js"></script>
+<script src="../../../fast/js/resources/js-test-pre.js"></script>
 </head>
 <body>
 <p id="description"></p>
@@ -36,6 +36,6 @@ shouldBe('labels.length', '1');
 document.getElementById("div1").appendChild(document.getElementById("id4"));
 shouldBe('labels.length', '0');
 </script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
+<script src="../../../fast/js/resources/js-test-post.js"></script>
 </body>
 </html>
@@ -1,7 +1,7 @@
 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
 <html>
 <head>
-<script src="../../fast/js/resources/js-test-pre.js"></script>
+<script src="../../../fast/js/resources/js-test-pre.js"></script>
 </head>
 <body>
 <p id="description"></p>
@@ -40,6 +40,6 @@ label.setAttribute("for", "id4");
 shouldBe('labels.length', '1');
 
 </script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
+<script src="../../../fast/js/resources/js-test-post.js"></script>
 </body>
 </html>