OLD | NEW |
---|---|
(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> | |
OLD | NEW |