OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 (async function() { |
| 6 let {page, session, Protocol} = await InspectorTest.start('Tests that backend
correctly handles unicode in messages'); |
| 7 |
| 8 var requestId = 100500; |
| 9 var command = { |
| 10 'method': 'Runtime.evaluate', |
| 11 'params': {expression: '\'!!!\''}, |
| 12 'id': requestId |
| 13 }; |
| 14 var message = JSON.stringify(command).replace('!!!', '\\u041F\\u0440\\u0438\\u
0432\\u0435\\u0442 \\u043C\\u0438\\u0440'); |
| 15 InspectorTest.logMessage(await session.sendRawCommand(requestId, message)); |
| 16 InspectorTest.completeTest(); |
| 17 })(); |
OLD | NEW |