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

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

Issue 2234193002: DevTools: migrate some of the sources panel sidebar panes to view management, allow view toolbars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed Created 4 years, 4 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 InspectorTest.addResult("Set up DOM breakpoints."); 75 InspectorTest.addResult("Set up DOM breakpoints.");
76 pane._setBreakpoint(node, pane._breakpointTypes.SubtreeModified, true); 76 pane._setBreakpoint(node, pane._breakpointTypes.SubtreeModified, true);
77 pane._setBreakpoint(node, pane._breakpointTypes.AttributeModified, true) ; 77 pane._setBreakpoint(node, pane._breakpointTypes.AttributeModified, true) ;
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 = self.runtime.sharedInstance(WebInspector.EventListenerBreakpo intsSidebarPane);
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.deprecatedRunAfterPendingDispatches(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);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 testRunner.logToStderr("didPauseAfterReload"); 129 testRunner.logToStderr("didPauseAfterReload");
130 InspectorTest.addResult("FAIL: Should not pause while reloading the page !"); 130 InspectorTest.addResult("FAIL: Should not pause while reloading the page !");
131 InspectorTest.captureStackTrace(callFrames); 131 InspectorTest.captureStackTrace(callFrames);
132 InspectorTest.waitUntilPausedNextTime(didPauseAfterReload); 132 InspectorTest.waitUntilPausedNextTime(didPauseAfterReload);
133 InspectorTest.resumeExecution(); 133 InspectorTest.resumeExecution();
134 } 134 }
135 135
136 function completeTest() 136 function completeTest()
137 { 137 {
138 testRunner.logToStderr("completeTest"); 138 testRunner.logToStderr("completeTest");
139 var pane = WebInspector.panels.sources.sidebarPanes.eventListenerBreakpo ints; 139 var pane = self.runtime.sharedInstance(WebInspector.EventListenerBreakpo intsSidebarPane);
140 pane._removeBreakpoint("listener:click"); 140 pane._removeBreakpoint("listener:click");
141 InspectorTest.completeDebuggerTest(); 141 InspectorTest.completeDebuggerTest();
142 } 142 }
143 }; 143 };
144 144
145 </script> 145 </script>
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