Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / label / labels-item-index.html
blobb66bbbd661b93b7228043de7bbe070c395b10163
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <p id="description"></p>
8 <div id="console"></div>
9 <script>
10 description('Test that the items of a labels list can be accessed individually. ');
12 var parent = document.createElement('div');
14 parent.innerHTML = '<div id="div1"></div><div id="div2"><button id="id1"></button><input id="id2"><select id="id3"></select><textarea id="id4"></textarea></div><label id="l1" for="id1"></label><label id="l2" for="id2"></label><label id="l3" for="id3"></label><label id="l4" for="id4"></label><label id="l11" for="id1"></label><label id="l12" for="id2"></label><label id="l13" for="id3"></label><label id="l14" for="id4"></label>';
16 document.body.appendChild(parent);
18 labels = document.getElementById("id1").labels;
19 shouldBe('labels.item(1).id', '"l11"');
21 labels = document.getElementById("id2").labels;
22 shouldBe('labels.item(1).id', '"l12"');
24 labels = document.getElementById("id3").labels;
25 shouldBe('labels.item(1).id', '"l13"');
27 labels = document.getElementById("id4").labels;
28 shouldBe('labels.item(1).id', '"l14"');
29 </script>
30 </body>
31 </html>