| OLD | NEW |
| 1 function test() | 1 function test() |
| 2 { | 2 { |
| 3 var containerNode; | 3 var containerNode; |
| 4 var child1Node; | 4 var child1Node; |
| 5 var child2Node; | 5 var child2Node; |
| 6 var aNode; | 6 var aNode; |
| 7 | 7 |
| 8 InspectorTest.expandElementsTree(step0); | 8 InspectorTest.expandElementsTree(step0); |
| 9 | 9 |
| 10 function step0() | 10 function step0() |
| 11 { | 11 { |
| 12 containerNode = InspectorTest.expandedNodeWithId("container"); | 12 containerNode = InspectorTest.expandedNodeWithId("container"); |
| 13 child1Node = InspectorTest.expandedNodeWithId("child1"); | 13 child1Node = InspectorTest.expandedNodeWithId("child1"); |
| 14 child2Node = InspectorTest.expandedNodeWithId("child2"); | 14 child2Node = InspectorTest.expandedNodeWithId("child2"); |
| 15 aNode = InspectorTest.expandedNodeWithId("aNode"); | 15 aNode = InspectorTest.expandedNodeWithId("aNode"); |
| 16 | 16 |
| 17 aNode.setUserProperty("attr1", true); | 17 aNode.setMarker("attr1", true); |
| 18 InspectorTest.addResult("attr1 set on aNode"); | 18 InspectorTest.addResult("attr1 set on aNode"); |
| 19 InspectorTest.dumpElementsTree(null); | 19 InspectorTest.dumpElementsTree(null); |
| 20 | 20 |
| 21 child2Node.setUserProperty("attr2", "value"); | 21 child2Node.setMarker("attr2", "value"); |
| 22 InspectorTest.addResult("attr2 set on child2"); | 22 InspectorTest.addResult("attr2 set on child2"); |
| 23 InspectorTest.dumpElementsTree(null); | 23 InspectorTest.dumpElementsTree(null); |
| 24 | 24 |
| 25 child2Node.setUserProperty("attr1", true); | 25 child2Node.setMarker("attr1", true); |
| 26 InspectorTest.addResult("attr1 set on child2"); | 26 InspectorTest.addResult("attr1 set on child2"); |
| 27 InspectorTest.dumpElementsTree(null); | 27 InspectorTest.dumpElementsTree(null); |
| 28 | 28 |
| 29 aNode.setUserProperty("attr1", "anotherValue"); | 29 aNode.setMarker("attr1", "anotherValue"); |
| 30 InspectorTest.addResult("attr1 modified on aNode"); | 30 InspectorTest.addResult("attr1 modified on aNode"); |
| 31 InspectorTest.dumpElementsTree(null); | 31 InspectorTest.dumpElementsTree(null); |
| 32 | 32 |
| 33 child2Node.setUserProperty("attr2", "anotherValue"); | 33 child2Node.setMarker("attr2", "anotherValue"); |
| 34 InspectorTest.addResult("attr2 modified on child2"); | 34 InspectorTest.addResult("attr2 modified on child2"); |
| 35 InspectorTest.dumpElementsTree(null); | 35 InspectorTest.dumpElementsTree(null); |
| 36 | 36 |
| 37 aNode.removeUserProperty("attr1"); | 37 aNode.setMarker("attr1", null); |
| 38 InspectorTest.addResult("attr1 removed from aNode"); | 38 InspectorTest.addResult("attr1 removed from aNode"); |
| 39 InspectorTest.dumpElementsTree(null); | 39 InspectorTest.dumpElementsTree(null); |
| 40 | 40 |
| 41 aNode.removeNode(step1); | 41 aNode.removeNode(step1); |
| 42 } | 42 } |
| 43 | 43 |
| 44 function step1(error) | 44 function step1(error) |
| 45 { | 45 { |
| 46 if (error) { | 46 if (error) { |
| 47 InspectorTest.addResult("Failed to remove aNode"); | 47 InspectorTest.addResult("Failed to remove aNode"); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 61 InspectorTest.addResult("Failed to remove child2"); | 61 InspectorTest.addResult("Failed to remove child2"); |
| 62 InspectorTest.completeTest(); | 62 InspectorTest.completeTest(); |
| 63 return; | 63 return; |
| 64 } | 64 } |
| 65 | 65 |
| 66 InspectorTest.addResult("child2 removed"); | 66 InspectorTest.addResult("child2 removed"); |
| 67 InspectorTest.dumpElementsTree(null); | 67 InspectorTest.dumpElementsTree(null); |
| 68 InspectorTest.completeTest(); | 68 InspectorTest.completeTest(); |
| 69 } | 69 } |
| 70 } | 70 } |
| OLD | NEW |