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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/inspector/runtime/client-console-api-message.js
diff --git a/test/inspector/runtime/client-console-api-message.js b/test/inspector/runtime/client-console-api-message.js
new file mode 100644
index 0000000000000000000000000000000000000000..877165c1c403707380dd17ed458da24c983b3ba9
--- /dev/null
+++ b/test/inspector/runtime/client-console-api-message.js
@@ -0,0 +1,28 @@
+// Copyright 2017 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+InspectorTest.log('Checks that we passed correct arguments in ' +
+ 'V8InspectorClient::consoleAPIMessage. Note: lines and columns are 1-based.');
+
+InspectorTest.addScript(`
+function consoleTrace() {
+ function a() {
+ function b() {
+ console.trace(239);
+ }
+ b();
+ }
+ a();
+}
+`, 8, 26);
+
+Protocol.Runtime.enable();
+utils.setLogConsoleApiMessageCalls(true);
+(async function test() {
+ Protocol.Runtime.evaluate({expression: 'console.log(42)'});
+ await Protocol.Runtime.onceConsoleAPICalled()
+ Protocol.Runtime.evaluate({expression: 'consoleTrace()'});
+ await Protocol.Runtime.onceConsoleAPICalled()
+ InspectorTest.completeTest();
+})();
« 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