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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/inspector/json-parse.js
diff --git a/test/inspector/json-parse.js b/test/inspector/json-parse.js
index 00ad69b8416ecaf123f1741adc71f474269563ba..92ec84bc5e54f4511cf88171d7de9c1430076930 100644
--- a/test/inspector/json-parse.js
+++ b/test/inspector/json-parse.js
@@ -2,9 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-const id = ++InspectorTest.session._requestId;
+let {session, contextGroup, Protocol} = InspectorTest.start('Tests that json parser on backend correctly works with unicode');
+
+const id = 100500;
var command = { "method": "Runtime.evaluate", "params": { expression: "\"!!!\"" }, "id": id };
-InspectorTest.session.sendRawCommand(id, JSON.stringify(command).replace("!!!", "\\u041F\\u0440\\u0438\\u0432\\u0435\\u0442 \\u043C\\u0438\\u0440"), step2);
+session.sendRawCommand(id, JSON.stringify(command).replace("!!!", "\\u041F\\u0440\\u0438\\u0432\\u0435\\u0442 \\u043C\\u0438\\u0440"), step2);
function step2(msg)
{
« 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