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

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

Issue 2832723004: [test/inspector] remove any usage of v8::Extension (Closed)
Patch Set: ac Created 3 years, 8 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 // Flags: --allow-natives-syntax 4 // Flags: --allow-natives-syntax
5 5
6 InspectorTest.log('Checks that breaks in framework code correctly processed.'); 6 InspectorTest.log('Checks that breaks in framework code correctly processed.');
7 7
8 InspectorTest.addScript(` 8 InspectorTest.addScript(`
9 function frameworkAssert() { 9 function frameworkAssert() {
10 console.assert(false); 10 console.assert(false);
(...skipping 12 matching lines...) Expand all
23 23
24 function breakpoint() { 24 function breakpoint() {
25 return 239; 25 return 239;
26 } 26 }
27 27
28 function debuggerStatement() { 28 function debuggerStatement() {
29 debugger; 29 debugger;
30 } 30 }
31 31
32 function syncDOMBreakpoint() { 32 function syncDOMBreakpoint() {
33 breakProgram('', ''); 33 inspector.breakProgram('', '');
34 } 34 }
35 35
36 function asyncDOMBreakpoint() { 36 function asyncDOMBreakpoint() {
37 return 42; 37 return 42;
38 } 38 }
39 39
40 function throwCaughtSyntaxError() { 40 function throwCaughtSyntaxError() {
41 try { 41 try {
42 eval('}'); 42 eval('}');
43 } catch (e) { 43 } catch (e) {
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 () => Protocol.Runtime.evaluate( 225 () => Protocol.Runtime.evaluate(
226 {expression: 'throwFromJSONParse()//# sourceURL=framework.js'})) 226 {expression: 'throwFromJSONParse()//# sourceURL=framework.js'}))
227 .then(() => InspectorTest.log('> mixed, top frame in framework:')) 227 .then(() => InspectorTest.log('> mixed, top frame in framework:'))
228 .then( 228 .then(
229 () => Protocol.Runtime.evaluate( 229 () => Protocol.Runtime.evaluate(
230 {expression: 'throwFromJSONParse()//# sourceURL=user.js'})) 230 {expression: 'throwFromJSONParse()//# sourceURL=user.js'}))
231 .then(() => Protocol.Debugger.setPauseOnExceptions({state: 'none'})) 231 .then(() => Protocol.Debugger.setPauseOnExceptions({state: 'none'}))
232 .then(next); 232 .then(next);
233 } 233 }
234 ]); 234 ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698