diff options
author | Michaël Zasso <targos@protonmail.com> | 2017-05-02 10:50:00 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2017-05-06 20:02:35 +0200 |
commit | 60d1aac8d225e844e68ae48e8f3d58802e635fbe (patch) | |
tree | 922f347dd054db18d88666fad7181e5a777f4022 /deps/v8/test/inspector/runtime/console-methods.js | |
parent | 73d9c0f903ae371cd5011af64c3a6f69a1bda978 (diff) | |
download | node-new-60d1aac8d225e844e68ae48e8f3d58802e635fbe.tar.gz |
deps: update V8 to 5.8.283.38
PR-URL: https://github.com/nodejs/node/pull/12784
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Diffstat (limited to 'deps/v8/test/inspector/runtime/console-methods.js')
-rw-r--r-- | deps/v8/test/inspector/runtime/console-methods.js | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/deps/v8/test/inspector/runtime/console-methods.js b/deps/v8/test/inspector/runtime/console-methods.js new file mode 100644 index 0000000000..f6fb20758a --- /dev/null +++ b/deps/v8/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); |