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

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

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 } 56 }
57 57
58 function didShowScriptSource(sourceFrame) 58 function didShowScriptSource(sourceFrame)
59 { 59 {
60 InspectorTest.addResult("Script source was shown."); 60 InspectorTest.addResult("Script source was shown.");
61 InspectorTest.addResult("Set up breakpoints."); 61 InspectorTest.addResult("Set up breakpoints.");
62 InspectorTest.setBreakpoint(sourceFrame, 11, "", true); 62 InspectorTest.setBreakpoint(sourceFrame, 11, "", true);
63 InspectorTest.setBreakpoint(sourceFrame, 12, "", true); 63 InspectorTest.setBreakpoint(sourceFrame, 12, "", true);
64 InspectorTest.addResult("Set up to pause on all exceptions."); 64 InspectorTest.addResult("Set up to pause on all exceptions.");
65 // FIXME: Test is flaky with PauseOnAllExceptions due to races in debugg er. 65 // FIXME: Test is flaky with PauseOnAllExceptions due to races in debugg er.
66 InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerMo del.PauseOnExceptionsState.DontPauseOnExceptions); 66 InspectorTest.DebuggerAgent.setPauseOnExceptions(SDK.DebuggerModel.Pause OnExceptionsState.DontPauseOnExceptions);
67 InspectorTest.nodeWithId("element", didResolveNode); 67 InspectorTest.nodeWithId("element", didResolveNode);
68 testRunner.logToStderr("didShowScriptSource"); 68 testRunner.logToStderr("didShowScriptSource");
69 } 69 }
70 70
71 function didResolveNode(node) 71 function didResolveNode(node)
72 { 72 {
73 testRunner.logToStderr("didResolveNode"); 73 testRunner.logToStderr("didResolveNode");
74 var pane = WebInspector.domBreakpointsSidebarPane; 74 var pane = Components.domBreakpointsSidebarPane;
75 InspectorTest.addResult("Set up DOM breakpoints."); 75 InspectorTest.addResult("Set up DOM breakpoints.");
76 pane._setBreakpoint(node, WebInspector.DOMBreakpointsSidebarPane.Breakpo intTypes.SubtreeModified, true); 76 pane._setBreakpoint(node, Components.DOMBreakpointsSidebarPane.Breakpoin tTypes.SubtreeModified, true);
77 pane._setBreakpoint(node, WebInspector.DOMBreakpointsSidebarPane.Breakpo intTypes.AttributeModified, true); 77 pane._setBreakpoint(node, Components.DOMBreakpointsSidebarPane.Breakpoin tTypes.AttributeModified, true);
78 pane._setBreakpoint(node, WebInspector.DOMBreakpointsSidebarPane.Breakpo intTypes.NodeRemoved, true); 78 pane._setBreakpoint(node, Components.DOMBreakpointsSidebarPane.Breakpoin tTypes.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 = self.runtime.sharedInstance(WebInspector.EventListenerBreakpo intsSidebarPane); 85 var pane = self.runtime.sharedInstance(Sources.EventListenerBreakpointsS idebarPane);
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 = self.runtime.sharedInstance(WebInspector.EventListenerBreakpo intsSidebarPane); 139 var pane = self.runtime.sharedInstance(Sources.EventListenerBreakpointsS idebarPane);
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