Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: test/inspector/json-parse.js

Issue 2891213002: [inspector] Refactor protocol-test.js (Closed)
Patch Set: comments addressed Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 }
OLDNEW
« no previous file with comments | « test/inspector/heap-profiler/take-heap-snapshot-on-pause.js ('k') | test/inspector/json-parse-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698