rniwa@webkit.org | 99d2e74 | 2012-06-22 05:33:58 +0000 | [diff] [blame] | 1 | This 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 | |
| 3 | On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| 4 | |
| 5 | |
| 6 | The input element initially have two label elements #label1 and #label2. |
| 7 | PASS labels = input.labels; labels.length is 2 |
| 8 | PASS label0 = labels[0]; label1 = labels[1]; iframe.contentDocument.body.appendChild(form); labels.length; label1.parentNode.removeChild(label1); labels.length is 1 |
| 9 | PASS labels[0] is label0 |
| 10 | PASS label0.parentNode.appendChild(label1); labels.length is 2 |
| 11 | PASS labels[0] is label0 |
| 12 | PASS labels[1] is label1 |
| 13 | |