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/inspecto
r-protocol-test.js"></script> |
4 <script> | 4 <script> |
5 | 5 |
6 function test() | 6 function test() |
7 { | 7 { |
8 InspectorTest.sendCommand("Runtime.evaluate", { "contextId": 0, "expression"
: "" }, evaluateCallback); | 8 InspectorTest.sendCommand("Runtime.evaluate", { expression: "\"use strict\"\
nconsole.memory = {};undefined" }, dumpResult); |
9 | 9 |
10 function evaluateCallback(result) | 10 function dumpResult(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 onLoad="runTest();"> | 19 <body onload="runTest()">Tests checks that console.memory property can be set in
strict mode (crbug.com/468611).</body> |
20 Tests that DevTools doesn't crash on Runtime.evaluate with contextId equals 0. | |
21 </body> | |
22 </html> | 20 </html> |
OLD | NEW |