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

Side by Side Diff: test/inspector/runtime/console-methods.js

Issue 2891213002: [inspector] Refactor protocol-test.js (Closed)
Patch Set: comments addressed Created 3 years, 7 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
1 // Copyright 2017 the V8 project authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 InspectorTest.log('Checks console methods'); 5 let {session, contextGroup, Protocol} = InspectorTest.start('Checks console meth ods');
6 6
7 InspectorTest.addScript(` 7 contextGroup.addScript(`
8 function testFunction() { 8 function testFunction() {
9 console.debug('debug'); 9 console.debug('debug');
10 console.error('error'); 10 console.error('error');
11 console.info('info'); 11 console.info('info');
12 console.log('log'); 12 console.log('log');
13 console.warn('warn'); 13 console.warn('warn');
14 console.dir('dir'); 14 console.dir('dir');
15 console.dirxml('dirxml'); 15 console.dirxml('dirxml');
16 console.table([[1,2],[3,4]]); 16 console.table([[1,2],[3,4]]);
17 console.trace('trace'); 17 console.trace('trace');
18 console.trace(); 18 console.trace();
19 console.group(); 19 console.group();
20 console.groupEnd(); 20 console.groupEnd();
21 console.groupCollapsed(); 21 console.groupCollapsed();
22 console.clear('clear'); 22 console.clear('clear');
23 console.clear(); 23 console.clear();
24 console.count('count'); 24 console.count('count');
25 function foo() { 25 function foo() {
26 console.count(); 26 console.count();
27 } 27 }
28 foo(); 28 foo();
29 foo(); 29 foo();
30 } 30 }
31 //# sourceURL=test.js`, 7, 26); 31 //# sourceURL=test.js`, 7, 26);
32 32
33 Protocol.Runtime.onConsoleAPICalled(InspectorTest.logMessage); 33 Protocol.Runtime.onConsoleAPICalled(InspectorTest.logMessage);
34 Protocol.Runtime.enable(); 34 Protocol.Runtime.enable();
35 Protocol.Runtime.evaluate({ expression: 'testFunction()' }) 35 Protocol.Runtime.evaluate({ expression: 'testFunction()' })
36 .then(InspectorTest.completeTest); 36 .then(InspectorTest.completeTest);
OLDNEW
« no previous file with comments | « test/inspector/runtime/console-messages-limits.js ('k') | test/inspector/runtime/console-spec.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698