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> | 4 <script> |
5 | 5 |
6 function test() | 6 function test() |
7 { | 7 { |
8 var contexts = InspectorTest.runtimeModel.executionContexts(); | 8 var contexts = InspectorTest.runtimeModel.executionContexts(); |
9 for (var c of contexts) | 9 for (var c of contexts) |
10 InspectorTest.addResult(SDK.ResourceTreeModel.fromTarget(c.target()).fra
meForId(c.frameId).displayName()); | 10 InspectorTest.addResult(InspectorTest.resourceTreeModel.frameForId(c.fra
meId).displayName()); |
11 InspectorTest.completeTest(); | 11 InspectorTest.completeTest(); |
12 } | 12 } |
13 | 13 |
14 </script> | 14 </script> |
15 </head> | 15 </head> |
16 | 16 |
17 <body onload="runTest()"> | 17 <body onload="runTest()"> |
18 <iframe src="../resources/execution-context-iframe1.html"></iframe> | 18 <iframe src="../resources/execution-context-iframe1.html"></iframe> |
19 <p> | 19 <p> |
20 Tests how execution context and target are selected. | 20 Tests how execution context and target are selected. |
21 </p> | 21 </p> |
22 | 22 |
23 </body> | 23 </body> |
24 </html> | 24 </html> |
OLD | NEW |