blob: 52f925c4915d55365ccfe45054b22ff9f9938d1d [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
<script src="../resources/common.js"></script>
<script src="../resources/label-test-util.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<script>
description('Test that the labels list of a form control is dynamically updated when removing a label as parent for that form control. ');
var tester = setupLabelsTest(withParentLabel);
for (var name in tester.dataSet) {
var data = tester.getLabelableElementData(name);
if (data == null)
continue;
debug('Check ' + data.name);
var element = data.element;
shouldBe('element.labels.length', '1');
tester.outerElement.appendChild(element);
shouldBe('element.labels.length', '0');
}
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>