Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Unified Diff: LayoutTests/fast/dom/HTMLOptionElement/option-constructor.html

Issue 1203943002: HTMLOptionElement constructor arguments default values are not per spec (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLOptionElement/option-constructor-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/HTMLOptionElement/option-constructor.html
diff --git a/LayoutTests/fast/dom/HTMLOptionElement/option-constructor.html b/LayoutTests/fast/dom/HTMLOptionElement/option-constructor.html
new file mode 100644
index 0000000000000000000000000000000000000000..fdc15f43d1422b83d74f9f096b0d09e3d44df38c
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLOptionElement/option-constructor.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<script src="../../../resources/js-test.js"></script>
philipj_slow 2015/06/24 09:08:56 I think some of the existing tests should cover th
shiva.jm 2015/06/25 05:51:06 Done.
+
+<script>
+description('Tests the HTMLOptionElement constructor.');
+
+var select;
+
+select = document.createElement('select');
+select.appendChild(new Option('a', 'a'));
+select.appendChild(new Option('b', 'b', true, true));
+
+shouldBeFalse('select.options[0].selected');
+shouldBeFalse('select.options[0].defaultSelected');
+
+shouldBeTrue('select.options[1].selected');
+shouldBeTrue('select.options[1].defaultSelected');
+
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLOptionElement/option-constructor-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698