Title: [153525] trunk/LayoutTests
- Revision
- 153525
- Author
- [email protected]
- Date
- 2013-07-31 09:52:12 -0700 (Wed, 31 Jul 2013)
Log Message
Add a test to ensure SelectElement removes an option when null is assigned by indexed setter
https://bugs.webkit.org/show_bug.cgi?id=119311
Reviewed by Alexey Proskuryakov.
Merge a test in https://chromium.googlesource.com/chromium/blink/+/da5c8d908b87f75c5ba3d1457c2353642e999963
even though the regression never existed in WebKit.
* fast/forms/select/select-assign-null-expected.txt: Added.
* fast/forms/select/select-assign-null.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (153524 => 153525)
--- trunk/LayoutTests/ChangeLog 2013-07-31 16:24:05 UTC (rev 153524)
+++ trunk/LayoutTests/ChangeLog 2013-07-31 16:52:12 UTC (rev 153525)
@@ -1,3 +1,16 @@
+2013-07-31 Ryosuke Niwa <[email protected]>
+
+ Add a test to ensure SelectElement removes an option when null is assigned by indexed setter
+ https://bugs.webkit.org/show_bug.cgi?id=119311
+
+ Reviewed by Alexey Proskuryakov.
+
+ Merge a test in https://chromium.googlesource.com/chromium/blink/+/da5c8d908b87f75c5ba3d1457c2353642e999963
+ even though the regression never existed in WebKit.
+
+ * fast/forms/select/select-assign-null-expected.txt: Added.
+ * fast/forms/select/select-assign-null.html: Added.
+
2013-07-31 Simon Pena <[email protected]>
[GTK] Unreviewed gardening. Remove flaky tests from TestExpectations.
Added: trunk/LayoutTests/fast/forms/select/select-assign-null-expected.txt (0 => 153525)
--- trunk/LayoutTests/fast/forms/select/select-assign-null-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/forms/select/select-assign-null-expected.txt 2013-07-31 16:52:12 UTC (rev 153525)
@@ -0,0 +1,12 @@
+Check if an option is removed when it is assigned null.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS tags.options.length is 2
+PASS tags.options.length is 1
+PASS tags.options.length is 2
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Added: trunk/LayoutTests/fast/forms/select/select-assign-null.html (0 => 153525)
--- trunk/LayoutTests/fast/forms/select/select-assign-null.html (rev 0)
+++ trunk/LayoutTests/fast/forms/select/select-assign-null.html 2013-07-31 16:52:12 UTC (rev 153525)
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src=""
+</head>
+<body>
+<select id="tags">
+<option selected="selected" value="marquee">marquee</option>
+<option value="blink">blink</option>
+</select>
+<script>
+description('Check if an option is removed when it is assigned null.');
+var tags = document.getElementById('tags');
+shouldBe("tags.options.length", "2");
+
+tags[0] = null;
+shouldBe("tags.options.length", "1");
+
+tags[tags.length] = new Option("bgsound", "bgsound");
+shouldBe("tags.options.length", "2");
+</script>
+<script src=""
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes