8 InspectorTest.expandElementsTree(step0);
12 containerNode = InspectorTest.expandedNodeWithId("container");
13 child1Node = InspectorTest.expandedNodeWithId("child1");
14 child2Node = InspectorTest.expandedNodeWithId("child2");
15 aNode = InspectorTest.expandedNodeWithId("aNode");
17 aNode.setMarker("attr1", true);
18 InspectorTest.addResult("attr1 set on aNode");
19 InspectorTest.dumpElementsTree(null);
21 child2Node.setMarker("attr2", "value");
22 InspectorTest.addResult("attr2 set on child2");
23 InspectorTest.dumpElementsTree(null);
25 child2Node.setMarker("attr1", true);
26 InspectorTest.addResult("attr1 set on child2");
27 InspectorTest.dumpElementsTree(null);
29 aNode.setMarker("attr1", "anotherValue");
30 InspectorTest.addResult("attr1 modified on aNode");
31 InspectorTest.dumpElementsTree(null);
33 child2Node.setMarker("attr2", "anotherValue");
34 InspectorTest.addResult("attr2 modified on child2");
35 InspectorTest.dumpElementsTree(null);
37 aNode.setMarker("attr1", null);
38 InspectorTest.addResult("attr1 removed from aNode");
39 InspectorTest.dumpElementsTree(null);
41 aNode.removeNode(step1);
47 InspectorTest.addResult("Failed to remove aNode");
48 InspectorTest.completeTest();
52 InspectorTest.addResult("aNode removed");
53 InspectorTest.dumpElementsTree(null);
55 child2Node.removeNode(step2);
61 InspectorTest.addResult("Failed to remove child2");
62 InspectorTest.completeTest();
66 InspectorTest.addResult("child2 removed");
67 InspectorTest.dumpElementsTree(null);
68 InspectorTest.completeTest();