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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLOptionElement/option-constructor-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <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.
3
4 <script>
5 description('Tests the HTMLOptionElement constructor.');
6
7 var select;
8
9 select = document.createElement('select');
10 select.appendChild(new Option('a', 'a'));
11 select.appendChild(new Option('b', 'b', true, true));
12
13 shouldBeFalse('select.options[0].selected');
14 shouldBeFalse('select.options[0].defaultSelected');
15
16 shouldBeTrue('select.options[1].selected');
17 shouldBeTrue('select.options[1].defaultSelected');
18
19 </script>
OLDNEW
« 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