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

Side by Side Diff: test/inspector/runtime/client-console-api-message.js

Issue 2816043006: [inspector] avoid cloning of async call chains (Closed)
Patch Set: lines and columns in stack string should be 1-based Created 3 years, 8 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
(Empty)
1 // Copyright 2017 the V8 project 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 InspectorTest.log('Checks that we passed correct arguments in ' +
6 'V8InspectorClient::consoleAPIMessage. Note: lines and columns are 1-based.');
7
8 InspectorTest.addScript(`
9 function consoleTrace() {
10 function a() {
11 function b() {
12 console.trace(239);
13 }
14 b();
15 }
16 a();
17 }
18 `, 8, 26);
19
20 Protocol.Runtime.enable();
21 utils.setLogConsoleApiMessageCalls(true);
22 (async function test() {
23 Protocol.Runtime.evaluate({expression: 'console.log(42)'});
24 await Protocol.Runtime.onceConsoleAPICalled()
25 Protocol.Runtime.evaluate({expression: 'consoleTrace()'});
26 await Protocol.Runtime.onceConsoleAPICalled()
27 InspectorTest.completeTest();
28 })();
OLDNEW
« no previous file with comments | « test/inspector/protocol-test.js ('k') | test/inspector/runtime/client-console-api-message-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698