| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="inspector-test.js"></script> | 3 <script src="inspector-test.js"></script> |
| 4 <script src="elements-test.js"></script> | 4 <script src="elements-test.js"></script> |
| 5 <script src="console-test.js"></script> | 5 <script src="console-test.js"></script> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 function test() | 8 function test() |
| 9 { | 9 { |
| 10 if (!window.testRunner) { | 10 if (!window.testRunner) { |
| 11 console.log("This test requires testRunner"); | 11 console.log("This test requires testRunner"); |
| 12 return; | 12 return; |
| 13 } else { | 13 } else { |
| 14 window.testRunner.setAllowUniversalAccessFromFileURLs(false); | 14 window.testRunner.setAllowUniversalAccessFromFileURLs(false); |
| 15 } | 15 } |
| 16 | 16 |
| 17 InspectorTest.expandElementsTree(function() { | 17 InspectorTest.expandElementsTree(function() { |
| 18 var contentNode = InspectorTest.expandedNodeWithId("tpl").templateConten
t(); | 18 var contentNode = InspectorTest.expandedNodeWithId("tpl").templateConten
t(); |
| 19 WebInspector.panels.elements.selectDOMNode(contentNode, true); | 19 WebInspector.inspectorView.panel("elements").selectDOMNode(contentNode,
true); |
| 20 InspectorTest.evaluateInConsole("$0", callback); | 20 InspectorTest.evaluateInConsole("$0", callback); |
| 21 }); | 21 }); |
| 22 | 22 |
| 23 function callback(result) | 23 function callback(result) |
| 24 { | 24 { |
| 25 InspectorTest.addResult("SUCCESS"); | 25 InspectorTest.addResult("SUCCESS"); |
| 26 InspectorTest.completeTest(); | 26 InspectorTest.completeTest(); |
| 27 } | 27 } |
| 28 } | 28 } |
| 29 </script> | 29 </script> |
| 30 </head> | 30 </head> |
| 31 | 31 |
| 32 <body onload="runTest()"> | 32 <body onload="runTest()"> |
| 33 | 33 |
| 34 <p id="description">This test verifies that template's content DocumentFragment
is accessible from DevTools.</p> | 34 <p id="description">This test verifies that template's content DocumentFragment
is accessible from DevTools.</p> |
| 35 | 35 |
| 36 <template id="tpl"> | 36 <template id="tpl"> |
| 37 <div>Hello!</div> | 37 <div>Hello!</div> |
| 38 </template> | 38 </template> |
| 39 | 39 |
| 40 </body> | 40 </body> |
| 41 </html> | 41 </html> |
| OLD | NEW |