OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 const id = ++InspectorTest._requestId; | 5 const id = ++InspectorTest.session._requestId; |
6 var command = { "method": "Runtime.evaluate", "params": { expression: "\"!!!\""
}, "id": id }; | 6 var command = { "method": "Runtime.evaluate", "params": { expression: "\"!!!\""
}, "id": id }; |
7 InspectorTest.sendRawCommand(id, JSON.stringify(command).replace("!!!", "\\u041F
\\u0440\\u0438\\u0432\\u0435\\u0442 \\u043C\\u0438\\u0440"), step2); | 7 InspectorTest.session.sendRawCommand(id, JSON.stringify(command).replace("!!!",
"\\u041F\\u0440\\u0438\\u0432\\u0435\\u0442 \\u043C\\u0438\\u0440"), step2); |
8 | 8 |
9 function step2(msg) | 9 function step2(msg) |
10 { | 10 { |
11 msg.id = 1; | 11 msg.id = 1; |
12 InspectorTest.logObject(msg); | 12 InspectorTest.logObject(msg); |
13 InspectorTest.completeTest(); | 13 InspectorTest.completeTest(); |
14 } | 14 } |
OLD | NEW |