OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> | 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource
s/inspector-protocol-test.js"></script> |
4 <script> | 4 <script> |
5 | 5 |
6 function test() | 6 function test() |
7 { | 7 { |
8 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "window.a" },
evaluateCallback); | 8 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "window.a" },
evaluateCallback); |
9 | 9 |
10 function evaluateCallback(result) | 10 function evaluateCallback(result) |
11 { | 11 { |
12 result.id = 0; | 12 result.id = 0; |
13 InspectorTest.logObject(result); | 13 InspectorTest.logObject(result); |
14 InspectorTest.completeTest(); | 14 InspectorTest.completeTest(); |
15 } | 15 } |
16 } | 16 } |
17 </script> | 17 </script> |
18 </head> | 18 </head> |
19 <body> | 19 <body> |
20 Tests that default execution context is selected correctly. | 20 Tests that default execution context is selected correctly. |
21 <iframe src="resources/runtime-events-iframe.html" onLoad="runTest();"></iframe> | 21 <iframe src="resources/runtime-events-iframe.html" onLoad="runTest();"></iframe> |
22 </body> | 22 </body> |
23 </html> | 23 </html> |
OLD | NEW |