Index: third_party/WebKit/LayoutTests/http/tests/inspector-protocol-2/json-parse.js |
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-protocol-2/json-parse.js b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol-2/json-parse.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..cc705266554d6b9aa25a6442e7906dbc44d82ae9 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol-2/json-parse.js |
@@ -0,0 +1,17 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+(async function() { |
+ let {page, session, Protocol} = await InspectorTest.start('Tests that backend correctly handles unicode in messages'); |
+ |
+ var requestId = 100500; |
+ var command = { |
+ 'method': 'Runtime.evaluate', |
+ 'params': {expression: '\'!!!\''}, |
+ 'id': requestId |
+ }; |
+ var message = JSON.stringify(command).replace('!!!', '\\u041F\\u0440\\u0438\\u0432\\u0435\\u0442 \\u043C\\u0438\\u0440'); |
+ InspectorTest.logMessage(await session.sendRawCommand(requestId, message)); |
+ InspectorTest.completeTest(); |
+})(); |