4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=iso-8859-1">
5 <script src=
"../../resources/js-test.js"></script>
8 <p id=
"description"></p>
9 <div id=
"console"></div>
12 <option id=
"o1"> text with extra while spaces
</option>
13 <option id=
"o2"> text
</option>
14 <option id=
"o3"> test
text
</option>
15 <option id=
"o4"> test
text
</option>
19 description('Test for space striping .label attribute of OPTION element');
21 var o1
= document
.getElementById('o1');
22 shouldBe('o1.label', '"text with extra while spaces"');
24 var o2
= document
.getElementById('o2');
25 shouldBe('o2.label', '"text"');
28 var o3
= document
.getElementById('o3');
29 var expected
= '\u00A0'+'test'+'\u00A0'+ 'text'+'\u00A0';
30 shouldBe('o3.label','"'+expected
+'"');
32 var o4
= document
.getElementById('o4');
33 var expected
= 'test'+'\u00A0\u00A0'+ 'text';
34 shouldBe('o4.label', '"'+expected
+'"');