| 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 src="edit-dom-test.js"></script> | 5 <script src="edit-dom-test.js"></script> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 function test() | 8 function test() |
| 9 { | 9 { |
| 10 // Save time on style updates. | 10 // Save time on style updates. |
| 11 WebInspector.StylesSidebarPane.prototype.update = function() {}; | 11 WebInspector.StylesSidebarPane.prototype.update = function() {}; |
| 12 WebInspector.MetricsSidebarPane.prototype.update = function() {}; | 12 WebInspector.MetricsSidebarPane.prototype.update = function() {}; |
| 13 | 13 |
| 14 InspectorTest.runTestSuite([ | 14 InspectorTest.runTestSuite([ |
| 15 function testSetUp(next) | 15 function testSetUp(next) |
| 16 { | 16 { |
| 17 InspectorTest.expandElementsTree(next); | 17 InspectorTest.expandElementsTree(next); |
| 18 }, | 18 }, |
| 19 | 19 |
| 20 function testRemove(next) | 20 function testRemove(next) |
| 21 { | 21 { |
| 22 InspectorTest.domActionTestForNodeId("testRemove", "node-to-remove",
testBody, next); | 22 InspectorTest.domActionTestForNodeId("testRemove", "node-to-remove",
testBody, next); |
| 23 | 23 |
| 24 function testBody(node, done) | 24 function testBody(node, done) |
| 25 { | 25 { |
| 26 var treeElement = InspectorTest.firstElementsTreeOutline().findT
reeElement(node); | 26 var treeElement = InspectorTest.firstElementsTreeOutline().findT
reeElement(node); |
| 27 treeElement.remove(); | 27 treeElement.remove(); |
| 28 InspectorTest.runAfterPendingDispatches(done); | 28 InspectorTest.deprecatedRunAfterPendingDispatches(done); |
| 29 } | 29 } |
| 30 }, | 30 }, |
| 31 | 31 |
| 32 function testSetNodeName(next) | 32 function testSetNodeName(next) |
| 33 { | 33 { |
| 34 InspectorTest.domActionTestForNodeId("testSetNodeName", "node-to-set
-name", testBody, next); | 34 InspectorTest.domActionTestForNodeId("testSetNodeName", "node-to-set
-name", testBody, next); |
| 35 | 35 |
| 36 function testBody(node, done) | 36 function testBody(node, done) |
| 37 { | 37 { |
| 38 InspectorTest.editNodePartAndRun(node, "webkit-html-tag-name", "
span", done); | 38 InspectorTest.editNodePartAndRun(node, "webkit-html-tag-name", "
span", done); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 </div> | 83 </div> |
| 84 | 84 |
| 85 <div id="testSetNodeValue"> | 85 <div id="testSetNodeValue"> |
| 86 <div id="node-to-set-value"> | 86 <div id="node-to-set-value"> |
| 87 Text | 87 Text |
| 88 </div> | 88 </div> |
| 89 </div> | 89 </div> |
| 90 </div> | 90 </div> |
| 91 </body> | 91 </body> |
| 92 </html> | 92 </html> |
| OLD | NEW |