OLD | NEW |
1 This tests setting the value of an attribute node after caching childNodes of th
e attribute node. | 1 This tests setting the value of an attribute node after caching childNodes of th
e attribute node. |
2 The cache should be cleared and childNodes[0].data should return the new value. | 2 The cache should be cleared and childNodes[0].data should return the new value. |
3 You should see PASS below: | 3 You should see PASS below: |
4 | 4 |
5 PASS nameAttrNode.childNodes.length is 1 | 5 PASS nameAttrNode.childNodes.length is 1 |
6 PASS nameAttrNode.childNodes[0] is oldValue | 6 PASS nameAttrNode.childNodes[0] is oldValue |
7 PASS nameAttrNode.childNodes[0].data is "oldName" | 7 PASS nameAttrNode.childNodes[0].data is "oldName" |
8 | 8 |
9 PASS nameAttrNode.value = 'newName'; nameAttrNode.value is "newName" | 9 PASS nameAttrNode.value = 'newName'; nameAttrNode.value is "newName" |
10 PASS nameAttrNode.childNodes[0] is not oldValue | 10 PASS nameAttrNode.childNodes[0] is not oldValue |
11 PASS nameAttrNode.childNodes[0].data is "newName" | 11 PASS nameAttrNode.childNodes[0].data is "newName" |
| 12 PASS successfullyParsed is true |
12 | 13 |
| 14 TEST COMPLETE |
| 15 |
OLD | NEW |