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.session._requestId; | 5 let {session, contextGroup, Protocol} = InspectorTest.start('Tests that json par
ser on backend correctly works with unicode'); |
| 6 |
| 7 const id = 100500; |
6 var command = { "method": "Runtime.evaluate", "params": { expression: "\"!!!\""
}, "id": id }; | 8 var command = { "method": "Runtime.evaluate", "params": { expression: "\"!!!\""
}, "id": id }; |
7 InspectorTest.session.sendRawCommand(id, JSON.stringify(command).replace("!!!",
"\\u041F\\u0440\\u0438\\u0432\\u0435\\u0442 \\u043C\\u0438\\u0440"), step2); | 9 session.sendRawCommand(id, JSON.stringify(command).replace("!!!", "\\u041F\\u044
0\\u0438\\u0432\\u0435\\u0442 \\u043C\\u0438\\u0440"), step2); |
8 | 10 |
9 function step2(msg) | 11 function step2(msg) |
10 { | 12 { |
11 msg.id = 1; | 13 msg.id = 1; |
12 InspectorTest.logObject(msg); | 14 InspectorTest.logObject(msg); |
13 InspectorTest.completeTest(); | 15 InspectorTest.completeTest(); |
14 } | 16 } |
OLD | NEW |