OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource
s/inspector-protocol-test.js"></script> | |
4 <script> | |
5 | |
6 window.dummyObject = { a : 1 }; | |
7 | |
8 function test() | |
9 { | |
10 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "window.dummyO
bject" }, evaluateCallback); | |
11 | |
12 function evaluateCallback(result) | |
13 { | |
14 InspectorTest.navigate("runtime-evaluate-without-enabling.html", reloadC
allback.bind(null, result.result.result.objectId)); | |
15 } | |
16 | |
17 function reloadCallback(remoteObjectId) | |
18 { | |
19 InspectorTest.sendCommand("Runtime.getProperties", { objectId: remoteObj
ectId, ownProperties: true }, getPropertiesCallback); | |
20 } | |
21 | |
22 function getPropertiesCallback(result) | |
23 { | |
24 result.id = 0; | |
25 InspectorTest.logObject(result); | |
26 InspectorTest.completeTest(); | |
27 } | |
28 } | |
29 </script> | |
30 </head> | |
31 <body onLoad="runTest();"> | |
32 Tests that default execution context accessed without enabling Runtime domain ge
ts properly cleaned up on reload. | |
33 </body> | |
34 </html> | |
OLD | NEW |