| 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.viewManager.showView("elements"); | 11 UI.viewManager.showView("elements"); |
| 12 | 12 |
| 13 WebInspector.StylesSidebarPane.prototype.update = function() {}; | 13 Elements.StylesSidebarPane.prototype.update = function() {}; |
| 14 WebInspector.MetricsSidebarPane.prototype.update = function() {}; | 14 Elements.MetricsSidebarPane.prototype.update = function() {}; |
| 15 | 15 |
| 16 InspectorTest.runTestSuite([ | 16 InspectorTest.runTestSuite([ |
| 17 function testSetUp(next) | 17 function testSetUp(next) |
| 18 { | 18 { |
| 19 InspectorTest.expandElementsTree(next); | 19 InspectorTest.expandElementsTree(next); |
| 20 }, | 20 }, |
| 21 | 21 |
| 22 function testEditShadowDOMAsHTML(next) | 22 function testEditShadowDOMAsHTML(next) |
| 23 { | 23 { |
| 24 InspectorTest.domActionTestForNodeId("testEditAuthorShadowDOMAsHTML"
, "authorShadowDOMElement", testBody, next); | 24 InspectorTest.domActionTestForNodeId("testEditAuthorShadowDOMAsHTML"
, "authorShadowDOMElement", testBody, next); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 { | 60 { |
| 61 var container = document.getElementById(id); | 61 var container = document.getElementById(id); |
| 62 var root = container.createShadowRoot(); | 62 var root = container.createShadowRoot(); |
| 63 root.innerHTML = html; | 63 root.innerHTML = html; |
| 64 } | 64 } |
| 65 | 65 |
| 66 createRootWithContents("testEditAuthorShadowDOMAsHTML", "<div id='authorShadowDO
MElement'></div>"); | 66 createRootWithContents("testEditAuthorShadowDOMAsHTML", "<div id='authorShadowDO
MElement'></div>"); |
| 67 </script> | 67 </script> |
| 68 </body> | 68 </body> |
| 69 </html> | 69 </html> |
| OLD | NEW |