blob: b1f517441e4c50d5c53b277939975fb4b44293e9 [file] [log] [blame]
rniwa@webkit.org99d2e742012-06-22 05:33:58 +00001This tests moving a node with labels property from one document to another. The labels node list should be updated when labels are modified in the new document.
2
3On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6The input element initially have two label elements #label1 and #label2.
7PASS labels = input.labels; labels.length is 2
8PASS label0 = labels[0]; label1 = labels[1]; iframe.contentDocument.body.appendChild(form); labels.length; label1.parentNode.removeChild(label1); labels.length is 1
9PASS labels[0] is label0
10PASS label0.parentNode.appendChild(label1); labels.length is 2
11PASS labels[0] is label0
12PASS labels[1] is label1
13