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

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

Issue 2713023004: [inspector] added reconnect method for tests (Closed)
Patch Set: rebased Created 3 years, 9 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 print('Checks that console message storage doesn\'t exceed limits'); 5 InspectorTest.log('Checks that console message storage doesn\'t exceed limits');
6 6
7 InspectorTest.addScript(` 7 InspectorTest.addScript(`
8 function generateEmptyMessages(n) { 8 function generateEmptyMessages(n) {
9 for (var i = 0; i < n; ++i) { 9 for (var i = 0; i < n; ++i) {
10 console.log(''); 10 console.log('');
11 } 11 }
12 } 12 }
13 13
14 function generate1MbMessages(n) { 14 function generate1MbMessages(n) {
15 for (var i = 0; i < n; ++i) { 15 for (var i = 0; i < n; ++i) {
(...skipping 19 matching lines...) Expand all
35 35
36 function testMaxConsoleMessagesV8Size(next) { 36 function testMaxConsoleMessagesV8Size(next) {
37 messagesReported = 0; 37 messagesReported = 0;
38 Protocol.Runtime.evaluate({ expression: 'generate1MbMessages(11)'}) 38 Protocol.Runtime.evaluate({ expression: 'generate1MbMessages(11)'})
39 .then(() => Protocol.Runtime.enable()) 39 .then(() => Protocol.Runtime.enable())
40 .then(() => Protocol.Runtime.disable()) 40 .then(() => Protocol.Runtime.disable())
41 .then(() => InspectorTest.log(`Messages reported: ${messagesReported}`)) 41 .then(() => InspectorTest.log(`Messages reported: ${messagesReported}`))
42 .then(next); 42 .then(next);
43 } 43 }
44 ]); 44 ]);
OLDNEW
« no previous file with comments | « test/inspector/runtime/console-log-doesnt-run-microtasks.js ('k') | test/inspector/runtime/console-methods.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698