1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../../resources/js-test.js"></script>
5 <script src=
"../resources/common.js"></script>
6 <script src=
"../resources/label-test-util.js"></script>
9 <p id=
"description"></p>
10 <div id=
"console"></div>
12 description('Test that the labels list of a form control is dynamically updated when removing a label as parent for that form control. ');
14 var tester
= setupLabelsTest(withParentLabel
);
15 for (var name
in tester
.dataSet
) {
16 var data
= tester
.getLabelableElementData(name
);
20 debug('Check ' + data
.name
);
21 var element
= data
.element
;
22 shouldBe('element.labels.length', '1');
24 tester
.outerElement
.appendChild(element
);
25 shouldBe('element.labels.length', '0');