| 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 testSetAuthorShadowDOMElementAttribute(next) | 22 function testSetAuthorShadowDOMElementAttribute(next) |
| 23 { | 23 { |
| 24 InspectorTest.domActionTestForNodeId("testSetAuthorShadowDOMElementA
ttribute", "shadow-node-to-set-attribute", testBody, next); | 24 InspectorTest.domActionTestForNodeId("testSetAuthorShadowDOMElementA
ttribute", "shadow-node-to-set-attribute", testBody, next); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 47 { | 47 { |
| 48 var container = document.getElementById(id); | 48 var container = document.getElementById(id); |
| 49 var root = container.createShadowRoot(); | 49 var root = container.createShadowRoot(); |
| 50 root.innerHTML = html; | 50 root.innerHTML = html; |
| 51 } | 51 } |
| 52 | 52 |
| 53 createRootWithContents("testSetAuthorShadowDOMElementAttribute", "<div foo='attr
ibute value' id='shadow-node-to-set-attribute'></div>"); | 53 createRootWithContents("testSetAuthorShadowDOMElementAttribute", "<div foo='attr
ibute value' id='shadow-node-to-set-attribute'></div>"); |
| 54 </script> | 54 </script> |
| 55 </body> | 55 </body> |
| 56 </html> | 56 </html> |
| OLD | NEW |