| 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 InspectorTest.expandElementsTree(function() { | 10 InspectorTest.expandElementsTree(function() { |
| 11 var contentNode = InspectorTest.expandedNodeWithId("tpl").templateConten
t(); | 11 var contentNode = InspectorTest.expandedNodeWithId("tpl").templateConten
t(); |
| 12 WebInspector.panels.elements.selectDOMNode(contentNode, true); | 12 UI.panels.elements.selectDOMNode(contentNode, true); |
| 13 InspectorTest.evaluateInConsole("$0", callback); | 13 InspectorTest.evaluateInConsole("$0", callback); |
| 14 }); | 14 }); |
| 15 | 15 |
| 16 function callback(result) | 16 function callback(result) |
| 17 { | 17 { |
| 18 InspectorTest.addResult("SUCCESS"); | 18 InspectorTest.addResult("SUCCESS"); |
| 19 InspectorTest.completeTest(); | 19 InspectorTest.completeTest(); |
| 20 } | 20 } |
| 21 } | 21 } |
| 22 </script> | 22 </script> |
| 23 </head> | 23 </head> |
| 24 | 24 |
| 25 <body onload="runTest()"> | 25 <body onload="runTest()"> |
| 26 | 26 |
| 27 <p id="description">This test verifies that template's content DocumentFragment
is accessible from DevTools.</p> | 27 <p id="description">This test verifies that template's content DocumentFragment
is accessible from DevTools.</p> |
| 28 | 28 |
| 29 <template id="tpl"> | 29 <template id="tpl"> |
| 30 <div>Hello!</div> | 30 <div>Hello!</div> |
| 31 </template> | 31 </template> |
| 32 | 32 |
| 33 </body> | 33 </body> |
| 34 </html> | 34 </html> |
| OLD | NEW |