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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/skip-pauses-until-reload.html

Issue 1877223003: DevTools: deprecate InspectorTest.runAfterPendingDispatches (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 <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/elements-test.js"></script> 4 <script src="../../../http/tests/inspector/elements-test.js"></script>
5 <script src="../../../http/tests/inspector/debugger-test.js"></script> 5 <script src="../../../http/tests/inspector/debugger-test.js"></script>
6 <script> 6 <script>
7 7
8 function testFunction() 8 function testFunction()
9 { 9 {
10 console.log("Begin"); 10 console.log("Begin");
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 pane._setBreakpoint(node, pane._breakpointTypes.NodeRemoved, true); 78 pane._setBreakpoint(node, pane._breakpointTypes.NodeRemoved, true);
79 setUpEventBreakpoints(); 79 setUpEventBreakpoints();
80 } 80 }
81 81
82 function setUpEventBreakpoints() 82 function setUpEventBreakpoints()
83 { 83 {
84 testRunner.logToStderr("setUpEventBreakpoints"); 84 testRunner.logToStderr("setUpEventBreakpoints");
85 var pane = WebInspector.panels.sources.sidebarPanes.eventListenerBreakpo ints; 85 var pane = WebInspector.panels.sources.sidebarPanes.eventListenerBreakpo ints;
86 InspectorTest.addResult("Set up Event breakpoints."); 86 InspectorTest.addResult("Set up Event breakpoints.");
87 pane._setBreakpoint("listener:click"); 87 pane._setBreakpoint("listener:click");
88 InspectorTest.runAfterPendingDispatches(didSetUp); 88 InspectorTest.deprecatedRunAfterPendingDispatches(didSetUp);
89 } 89 }
90 90
91 function didSetUp() 91 function didSetUp()
92 { 92 {
93 testRunner.logToStderr("didSetUp"); 93 testRunner.logToStderr("didSetUp");
94 InspectorTest.addResult("Did set up."); 94 InspectorTest.addResult("Did set up.");
95 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); 95 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
96 } 96 }
97 97
98 function didPause(callFrames) 98 function didPause(callFrames)
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 </head> 147 </head>
148 148
149 <body onload="runTest()"> 149 <body onload="runTest()">
150 <p>Tests that 'skip all pauses' mode blocks breakpoint and gets cancelled right at page reload. 150 <p>Tests that 'skip all pauses' mode blocks breakpoint and gets cancelled right at page reload.
151 </p> 151 </p>
152 152
153 <div id="element" onclick="return 0;"></div> 153 <div id="element" onclick="return 0;"></div>
154 </body> 154 </body>
155 </html> 155 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698