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

Side by Side Diff: LayoutTests/inspector/sources/debugger/debugger-no-pause-on-antibreakpoint.html

Issue 220903002: DevTools: wrap DebuggerAgent.Location with DebuggerModel.Location. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: All tests!!! Created 6 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script> 4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script> 5 <script>
6 6
7 function throwAnException() 7 function throwAnException()
8 { 8 {
9 return unknown_var; 9 return unknown_var;
10 } 10 }
(...skipping 29 matching lines...) Expand all
40 InspectorTest.addResult("Script source was shown."); 40 InspectorTest.addResult("Script source was shown.");
41 InspectorTest.waitUntilPaused(step3); 41 InspectorTest.waitUntilPaused(step3);
42 InspectorTest.evaluateInPage("setTimeout(handleClick, 0)"); 42 InspectorTest.evaluateInPage("setTimeout(handleClick, 0)");
43 } 43 }
44 44
45 // Now set antibreakpoint and check that we still pause on other spots. 45 // Now set antibreakpoint and check that we still pause on other spots.
46 function step3(callFrames) 46 function step3(callFrames)
47 { 47 {
48 InspectorTest.captureStackTrace(callFrames); 48 InspectorTest.captureStackTrace(callFrames);
49 49
50 var exceptionLocation = callFrames[0].location; 50 var exceptionLocation = callFrames[0].location();
51 DebuggerAgent.setBreakpointByUrl(exceptionLocation.lineNumber, undefined , scriptFileName, 51 DebuggerAgent.setBreakpointByUrl(exceptionLocation.lineNumber, undefined , scriptFileName,
52 exceptionLocation.columnNumber, undefin ed, true, undefined); 52 exceptionLocation.columnNumber, undefin ed, true, undefined);
53 53
54 InspectorTest.resumeExecution(step4); 54 InspectorTest.resumeExecution(step4);
55 } 55 }
56 56
57 function step4() 57 function step4()
58 { 58 {
59 InspectorTest.addResult("Antibreakpoint must be set by now."); 59 InspectorTest.addResult("Antibreakpoint must be set by now.");
60 InspectorTest.evaluateInPage("setTimeout(handleClick2, 0)"); 60 InspectorTest.evaluateInPage("setTimeout(handleClick2, 0)");
(...skipping 16 matching lines...) Expand all
77 </script> 77 </script>
78 </head> 78 </head>
79 79
80 <body onload="runTest()"> 80 <body onload="runTest()">
81 <p> 81 <p>
82 Tests that anti-breakpoint works. 82 Tests that anti-breakpoint works.
83 </p> 83 </p>
84 84
85 </body> 85 </body>
86 </html> 86 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698