4 <script src=
"../../resources/js-test.js"></script>
7 <p id=
"description"></p>
8 <div id=
"console"></div>
11 <option id=
"o1"> text
</option>
12 <option id=
"o2" value=
"value"> text
</option>
13 <option id=
"o3" label=
"label"> text
</option>
14 <option id=
"o4" value=
"value" label=
"label">text
</option>
18 description('Test for .value and .label of OPTION element');
20 var o1
= document
.getElementById('o1');
23 shouldBe('o1.value', '"newValue"');
24 shouldBe('o1.label', '"newLabel"');
26 var o2
= document
.getElementById('o2');
29 shouldBe('o2.value', '"newValue"');
30 shouldBe('o2.label', '"newLabel"');
32 var o3
= document
.getElementById('o3');
35 shouldBe('o3.value', '"newValue"');
36 shouldBe('o3.label', '"newLabel"');
38 var o4
= document
.getElementById('o4');
41 shouldBe('o4.value', '"newValue"');
42 shouldBe('o4.label', '"newLabel"');