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

Side by Side Diff: test/inspector/debugger/async-promise-late-then.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 // Flags: --expose-gc 4 // Flags: --expose-gc
5 5
6 print('Checks async stack for late .then handlers with gc'); 6 InspectorTest.log('Checks async stack for late .then handlers with gc');
7 7
8 InspectorTest.addScript(` 8 InspectorTest.addScript(`
9 function foo1() { 9 function foo1() {
10 gc(); 10 gc();
11 debugger; 11 debugger;
12 } 12 }
13 13
14 function test() { 14 function test() {
15 var resolve1; 15 var resolve1;
16 var p1 = new Promise(resolve => resolve1 = resolve); 16 var p1 = new Promise(resolve => resolve1 = resolve);
(...skipping 22 matching lines...) Expand all
39 InspectorTest.log(''); 39 InspectorTest.log('');
40 Protocol.Debugger.resume(); 40 Protocol.Debugger.resume();
41 }); 41 });
42 42
43 Protocol.Debugger.enable(); 43 Protocol.Debugger.enable();
44 Protocol.Debugger.setAsyncCallStackDepth({ maxDepth: 128 }); 44 Protocol.Debugger.setAsyncCallStackDepth({ maxDepth: 128 });
45 Protocol.Runtime.evaluate({ expression: 'test()//# sourceURL=expr.js', 45 Protocol.Runtime.evaluate({ expression: 'test()//# sourceURL=expr.js',
46 awaitPromise: true }) 46 awaitPromise: true })
47 .then(() => Protocol.Runtime.evaluate({ expression: 'gc()'})) 47 .then(() => Protocol.Runtime.evaluate({ expression: 'gc()'}))
48 .then(InspectorTest.completeTest); 48 .then(InspectorTest.completeTest);
OLDNEW
« no previous file with comments | « test/inspector/debugger/async-instrumentation.js ('k') | test/inspector/debugger/async-set-timeout.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698