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

Unified Diff: test/inspector/runtime/console-methods.js

Issue 2674583002: [inspector] added missing test for console methods (Closed)
Patch Set: rebased Created 3 years, 11 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 | « src/inspector/v8-console.cc ('k') | test/inspector/runtime/console-methods-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/inspector/runtime/console-methods.js
diff --git a/test/inspector/runtime/console-methods.js b/test/inspector/runtime/console-methods.js
new file mode 100644
index 0000000000000000000000000000000000000000..f6fb20758a839e1c43aaf1dd8dcdcd92d57eab62
--- /dev/null
+++ b/test/inspector/runtime/console-methods.js
@@ -0,0 +1,36 @@
+// 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.
+
+print('Checks console methods');
+
+InspectorTest.addScript(`
+function testFunction() {
+ console.debug('debug');
+ console.error('error');
+ console.info('info');
+ console.log('log');
+ console.warn('warn');
+ console.dir('dir');
+ console.dirxml('dirxml');
+ console.table([[1,2],[3,4]]);
+ console.trace('trace');
+ console.trace();
+ console.group();
+ console.groupEnd();
+ console.groupCollapsed();
+ console.clear('clear');
+ console.clear();
+ console.count('count');
+ function foo() {
+ console.count();
+ }
+ foo();
+ foo();
+}
+//# sourceURL=test.js`, 7, 26);
+
+Protocol.Runtime.onConsoleAPICalled(InspectorTest.logMessage);
+Protocol.Runtime.enable();
+Protocol.Runtime.evaluate({ expression: 'testFunction()' })
+ .then(InspectorTest.completeTest);
« no previous file with comments | « src/inspector/v8-console.cc ('k') | test/inspector/runtime/console-methods-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698