| 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);
|
|
|