Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / label / labels-custom-property.html
blob5cb32d55c52cb407ca675261da933d8f16c9f9f5
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 we can set and get custom properties on the labels attribute. ');
12 var parentDiv = document.createElement('div');
14 parentDiv.innerHTML = '<button id="btn"></button><label id="lbl1" for="btn"></label><label id="lbl2" for="btn"></label>';
16 document.body.appendChild(parentDiv);
18 labels = document.getElementById("btn").labels;
19 labels.customProperty = 1;
20 gc();
21 shouldBe('labels.customProperty', '1');
22 shouldBe('document.getElementById("btn").labels.customProperty', '1');
23 </script>
24 </body>
25 </html>