1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../../resources/js-test.js"></script>
7 <p id=
"description"></p>
8 <div id=
"console"></div>
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;
21 shouldBe('labels.customProperty', '1');
22 shouldBe('document.getElementById("btn").labels.customProperty', '1');