| 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 testRemove(callback) | 24 function testRemove(callback) |
| 19 { | 25 { |
| 20 var node = InspectorTest.expandedNodeWithId("node-to-remove"); | 26 var node = InspectorTest.expandedNodeWithId("node-to-remove"); |
| 21 node.removeNode(callback); | 27 node.removeNode(callback); |
| 22 } | 28 } |
| 23 testSuite.push(InspectorTest.generateUndoTest(testRemove)); | 29 testSuite.push(InspectorTest.generateUndoTest(testRemove)); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 <div id="node-to-set-value">Text</div> | 75 <div id="node-to-set-value">Text</div> |
| 70 </div> | 76 </div> |
| 71 | 77 |
| 72 <div id="testEditAsHTML"> | 78 <div id="testEditAsHTML"> |
| 73 <div id="node-to-edit-as-html"><span id="span">Text</span></div> | 79 <div id="node-to-edit-as-html"><span id="span">Text</span></div> |
| 74 </div> | 80 </div> |
| 75 </div> | 81 </div> |
| 76 | 82 |
| 77 </body> | 83 </body> |
| 78 </html> | 84 </html> |
| OLD | NEW |