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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-skip-break-program.html

Issue 2700293002: DevTools: do not use RAII for sync native breakpoints, reuse AsyncTask where possible. (Closed)
Patch Set: same with unused assert removed - assert is trivial 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 src="../debugger/resources/framework.js"></script> 5 <script src="../debugger/resources/framework.js"></script>
6 <script> 6 <script>
7 7
8 function testFunction() 8 function testFunction()
9 { 9 {
10 debugger; 10 debugger;
(...skipping 21 matching lines...) Expand all
32 InspectorTest.startDebuggerTest(step1, true); 32 InspectorTest.startDebuggerTest(step1, true);
33 33
34 function step1() 34 function step1()
35 { 35 {
36 InspectorTest.runTestFunctionAndWaitUntilPaused(step2); 36 InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
37 } 37 }
38 38
39 function step2() 39 function step2()
40 { 40 {
41 InspectorTest.DebuggerAgent.setPauseOnExceptions(SDK.DebuggerModel.Pause OnExceptionsState.PauseOnAllExceptions); 41 InspectorTest.DebuggerAgent.setPauseOnExceptions(SDK.DebuggerModel.Pause OnExceptionsState.PauseOnAllExceptions);
42 pane._setBreakpoint("instrumentation:setTimer"); 42 pane._setBreakpoint("instrumentation:setTimeout");
43 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(Inspect orTest, didPause)); 43 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(Inspect orTest, didPause));
44 } 44 }
45 45
46 function didPause(callFrames, reason, breakpointIds, asyncStackTrace) 46 function didPause(callFrames, reason, breakpointIds, asyncStackTrace)
47 { 47 {
48 InspectorTest.captureStackTrace(callFrames); 48 InspectorTest.captureStackTrace(callFrames);
49 completeTest(); 49 completeTest();
50 } 50 }
51 51
52 function completeTest() 52 function completeTest()
53 { 53 {
54 InspectorTest.DebuggerAgent.setPauseOnExceptions(SDK.DebuggerModel.Pause OnExceptionsState.DontPauseOnExceptions); 54 InspectorTest.DebuggerAgent.setPauseOnExceptions(SDK.DebuggerModel.Pause OnExceptionsState.DontPauseOnExceptions);
55 pane._removeBreakpoint("instrumentation:setTimer"); 55 pane._removeBreakpoint("instrumentation:setTimeout");
56 InspectorTest.completeDebuggerTest(); 56 InspectorTest.completeDebuggerTest();
57 } 57 }
58 } 58 }
59 59
60 </script> 60 </script>
61 </head> 61 </head>
62 62
63 <body onload="runTest()"> 63 <body onload="runTest()">
64 <input type='button' onclick='testFunction()' value='Test'/> 64 <input type='button' onclick='testFunction()' value='Test'/>
65 <p> 65 <p>
66 Tests that framework blackboxing skips instant pauses (e.g. breakpoints on conso le.assert(), setTimeout(), etc.) if they happen entirely inside the framework. 66 Tests that framework blackboxing skips instant pauses (e.g. breakpoints on conso le.assert(), setTimeout(), etc.) if they happen entirely inside the framework.
67 </p> 67 </p>
68 </body> 68 </body>
69 </html> 69 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698