[Forms] Re-factor label.for tests for extending test coverage
[WebKit-https.git] / LayoutTests / ChangeLog
index 8c780e8..232ad95 100644 (file)
@@ -1,3 +1,52 @@
+2012-03-13  Yosifumi Inoue  <yosin@chromium.org>
+
+        [Forms] Re-factor label.for tests for extending test coverage
+        https://bugs.webkit.org/show_bug.cgi?id=80574
+
+        Reviewed by Kent Tamura.
+
+        This patch changes label.labels attribute testing with using shared
+        utility functions, createFormControlDataSet for representing form
+        related information of HTML5 specification and setupLabelsTeset for
+        populating test sample dom tree and data set.
+
+        This patch extends coverage of existing label.labels test to cover
+        defined in the specification, labelable-elements.html, and adds 
+        multiple label entries tests, labels-multiple-*.html.
+
+        Note: test failure of hidden input type will be fixed by
+        https://bugs.webkit.org/show_bug.cgi?id=80403
+
+        Note: test failure of output element will be fixed by
+        https://bugs.webkit.org/show_bug.cgi?id=80466
+
+        * fast/forms/label/labelable-elements-expected.txt: Added.
+        * fast/forms/label/labelable-elements.html: Added.
+        * fast/forms/label/labels-add-htmlFor-label-expected.txt:
+        * fast/forms/label/labels-add-htmlFor-label.html:
+        * fast/forms/label/labels-add-parent-label-expected.txt:
+        * fast/forms/label/labels-add-parent-label.html:
+        * fast/forms/label/labels-change-htmlFor-attribute-expected.txt:
+        * fast/forms/label/labels-change-htmlFor-attribute.html:
+        * fast/forms/label/labels-multiple-sibling-labels-expected.txt: Added.
+        * fast/forms/label/labels-multiple-sibling-labels.html: Added.
+        * fast/forms/label/labels-parent-and-sibling-labels-expected.txt: Added.
+        * fast/forms/label/labels-parent-and-sibling-labels.html: Added.
+        * fast/forms/label/labels-remove-htmlFor-attribute-expected.txt:
+        * fast/forms/label/labels-remove-htmlFor-attribute.html:
+        * fast/forms/label/labels-remove-htmlFor-label-expected.txt:
+        * fast/forms/label/labels-remove-htmlFor-label.html:
+        * fast/forms/label/labels-remove-parent-label-expected.txt:
+        * fast/forms/label/labels-remove-parent-label.html:
+        * fast/forms/label/labels-set-htmlFor-attribute-expected.txt:
+        * fast/forms/label/labels-set-htmlFor-attribute.html:
+        * fast/forms/resources/common.js:
+        (createFormControlDataSet): Returns form control data set for providing
+        labelable elements and supported elements information.
+        * fast/forms/resources/label-test-util.js: Added.
+        (setupLabelsTest.return.dataSet.dataSet.getLabelableElementData):
+        (setupLabelsTest): Populate dom tree for unit tests.
+
 2012-03-12  Sheriff Bot  <webkit.review.bot@gmail.com>
 
         Unreviewed, rolling out r110524.