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="./shadow/elements-panel-shadow-selection-on-refresh.js"></script> | 5 <script src="./shadow/elements-panel-shadow-selection-on-refresh.js"></script> |
6 <script> | 6 <script> |
7 | 7 |
8 function test() | 8 function test() |
9 { | 9 { |
10 var domModel = SDK.DOMModel.fromTarget(SDK.targetManager.mainTarget()); | |
11 var node; | 10 var node; |
12 | 11 |
13 InspectorTest.runTestSuite([ | 12 InspectorTest.runTestSuite([ |
14 function selectNode(next) | 13 function selectNode(next) |
15 { | 14 { |
16 InspectorTest.nodeWithId("inspected", onNodeFound); | 15 InspectorTest.nodeWithId("inspected", onNodeFound); |
17 | 16 |
18 function onNodeFound(n) | 17 function onNodeFound(n) |
19 { | 18 { |
20 node = n; | 19 node = n; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 <body onload="runTest()"> | 102 <body onload="runTest()"> |
104 <p> | 103 <p> |
105 Verify that last selected element is restored properly later, even if | 104 Verify that last selected element is restored properly later, even if |
106 it failed to do so once. | 105 it failed to do so once. |
107 </p> | 106 </p> |
108 <div> | 107 <div> |
109 <span id="inspected"></span> | 108 <span id="inspected"></span> |
110 </div> | 109 </div> |
111 </body> | 110 </body> |
112 </html> | 111 </html> |
OLD | NEW |