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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/json-parse.js

Issue 2950713002: [DevTools] New harness for inspector-protocol layout tests (Closed)
Patch Set: addressed comments, 4 tests Created 3 years, 6 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
Index: third_party/WebKit/LayoutTests/inspector-protocol/json-parse.js
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/json-parse.js b/third_party/WebKit/LayoutTests/inspector-protocol/json-parse.js
new file mode 100644
index 0000000000000000000000000000000000000000..8b9e3278fb193629cbece5869ebe1d544e8e5e33
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/json-parse.js
@@ -0,0 +1,13 @@
+(async function(testRunner) {
+ let {page, session, dp} = await testRunner.startBlank('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');
+ testRunner.logMessage(await session.sendRawCommand(requestId, message));
+ testRunner.completeTest();
+})

Powered by Google App Engine
This is Rietveld 408576698