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

Side by Side Diff: test/inspector/debugger/inspector-break-api.js

Issue 2678313002: [inspector] support for nested scheduled breaks (Closed)
Patch Set: better test Created 3 years, 10 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 breakProgram,(schedule|cancel)PauseOnNextStatement test API"); 5 print("Checks breakProgram,(schedule|cancel)PauseOnNextStatement test API");
6 6
7 InspectorTest.addScript(` 7 InspectorTest.addScript(`
8 function callBreakProgram() { 8 function callBreakProgram() {
9 breakProgram('reason', JSON.stringify({a: 42})); 9 breakProgram('reason', JSON.stringify({a: 42}));
10 } 10 }
(...skipping 19 matching lines...) Expand all
30 function testBreakProgram(next) { 30 function testBreakProgram(next) {
31 Protocol.Runtime.evaluate({ expression: 'callBreakProgram()'}) 31 Protocol.Runtime.evaluate({ expression: 'callBreakProgram()'})
32 .then(next); 32 .then(next);
33 }, 33 },
34 34
35 function testSchedulePauseOnNextStatement(next) { 35 function testSchedulePauseOnNextStatement(next) {
36 schedulePauseOnNextStatement('reason', JSON.stringify({a: 42})); 36 schedulePauseOnNextStatement('reason', JSON.stringify({a: 42}));
37 Protocol.Runtime.evaluate({ expression: 'foo()//# sourceURL=expr1.js'}) 37 Protocol.Runtime.evaluate({ expression: 'foo()//# sourceURL=expr1.js'})
38 .then(() => Protocol.Runtime.evaluate({ 38 .then(() => Protocol.Runtime.evaluate({
39 expression: 'foo()//# sourceURL=expr2.js'})) 39 expression: 'foo()//# sourceURL=expr2.js'}))
40 .then(() => cancelPauseOnNextStatement())
40 .then(next); 41 .then(next);
41 }, 42 },
42 43
43 function testCancelPauseOnNextStatement(next) { 44 function testCancelPauseOnNextStatement(next) {
44 schedulePauseOnNextStatement('reason', JSON.stringify({a: 42})); 45 schedulePauseOnNextStatement('reason', JSON.stringify({a: 42}));
45 cancelPauseOnNextStatement(); 46 cancelPauseOnNextStatement();
46 Protocol.Runtime.evaluate({ expression: 'foo()'}) 47 Protocol.Runtime.evaluate({ expression: 'foo()'})
47 .then(next); 48 .then(next);
48 } 49 }
49 ]); 50 ]);
OLDNEW
« no previous file with comments | « test/inspector/debugger/framework-nested-scheduled-break-expected.txt ('k') | test/inspector/inspector-test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698