OLD | NEW |
---|---|
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <meta charset="utf8"> | 3 <meta charset="utf8"> |
4 <script type="text/javascript" src="../http/tests/inspector-protocol/inspector-p rotocol-test.js"></script> | 4 <script type="text/javascript" src="../http/tests/inspector-protocol/inspector-p rotocol-test.js"></script> |
5 <script> | 5 <script> |
6 | 6 |
7 function test() | 7 function test() |
8 { | 8 { |
9 var command = { "method": "Runtime.evaluate", "params": { expression: "\"!!! \"" }, "id": InspectorTest._requestId + 1 }; | 9 var command = { "method": "Runtime.evaluate", "params": { expression: "\"!!! \"" }, "id": InspectorTest._requestId + 1 }; |
10 InspectorTest.sendRawCommand(JSON.stringify(command).replace("!!!", "\\u041F \\u0440\\u0438\\u0432\\u0435\\u0442 \\u043C\\u0438\\u0440"), step2); | 10 InspectorTest.sendRawCommand(JSON.stringify(command).replace("!!!", "\\u041F \\u0440\\u0438\\u0432\\u0435\\u0442 \\u043C\\u0438\\u0440"), step2); |
11 | 11 |
12 function step2(msg) | 12 function step2(msg) |
13 { | 13 { |
yurys
2015/08/12 19:05:42
Alternatively we could always dump JSON.stringify(
dgozman
2015/08/12 21:19:26
Used InspectorTest.logObject.
| |
14 InspectorTest.log(msg.result.result.value); | 14 if (msg.result && msg.result.result) |
15 InspectorTest.log(msg.result.result.value); | |
16 else | |
17 InspectorTest.log("Error: " + msg.error); | |
15 InspectorTest.completeTest(); | 18 InspectorTest.completeTest(); |
16 } | 19 } |
17 } | 20 } |
18 | 21 |
19 </script> | 22 </script> |
20 </head> | 23 </head> |
21 <body onload="runTest()"> | 24 <body onload="runTest()"> |
22 </body> | 25 </body> |
23 </html> | 26 </html> |
OLD | NEW |