OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
4 <script src="../../http/tests/inspector/elements-test.js"></script> | 4 <script src="../../http/tests/inspector/elements-test.js"></script> |
5 <script> | 5 <script> |
6 | 6 |
7 function test() | 7 function test() |
8 { | 8 { |
9 var testSuite = []; | 9 var testSuite = []; |
10 | 10 |
11 function testSetUp(next) | 11 function testSetUp(next) |
12 { | 12 { |
13 InspectorTest.expandElementsTree(next); | 13 InspectorTest.addResult("Setting up"); |
| 14 InspectorTest.expandElementsTree(callback); |
| 15 |
| 16 function callback() |
| 17 { |
| 18 InspectorTest.expandElementsTree(next); |
| 19 } |
14 } | 20 } |
15 testSuite.push(testSetUp); | 21 testSuite.push(testSetUp); |
16 | 22 |
17 | 23 |
18 function testSetAttribute(callback) | 24 function testSetAttribute(callback) |
19 { | 25 { |
20 var node = InspectorTest.expandedNodeWithId("node-to-set-attribute"); | 26 var node = InspectorTest.expandedNodeWithId("node-to-set-attribute"); |
21 node.setAttribute("foo", "bar=\"edited attribute\"", callback); | 27 node.setAttribute("foo", "bar=\"edited attribute\"", callback); |
22 } | 28 } |
23 testSuite.push(InspectorTest.generateUndoTest(testSetAttribute)); | 29 testSuite.push(InspectorTest.generateUndoTest(testSetAttribute)); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 <div foo="attribute value" id="node-to-remove-attribute"></div> | 65 <div foo="attribute value" id="node-to-remove-attribute"></div> |
60 </div> | 66 </div> |
61 | 67 |
62 <div id="testAddAttribute"> | 68 <div id="testAddAttribute"> |
63 <div id="node-to-add-attribute"></div> | 69 <div id="node-to-add-attribute"></div> |
64 </div> | 70 </div> |
65 </div> | 71 </div> |
66 | 72 |
67 </body> | 73 </body> |
68 </html> | 74 </html> |
OLD | NEW |