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

Side by Side Diff: LayoutTests/inspector/debugger/xhr-breakpoints.html

Issue 23484056: [DevTools] Renaming Scripts panel to Sources panel (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modified missed files Created 7 years, 3 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/debugger-test.js"></script> 4 <script src="../../http/tests/inspector/debugger-test.js"></script>
5 <script> 5 <script>
6 6
7 function sendRequest(url) 7 function sendRequest(url)
8 { 8 {
9 var request = new XMLHttpRequest(); 9 var request = new XMLHttpRequest();
10 request.open("GET", url, true); 10 request.open("GET", url, true);
11 request.send() 11 request.send()
12 } 12 }
13 13
14 function test() 14 function test()
15 { 15 {
16 WebInspector.showPanel("scripts"); 16 WebInspector.showPanel("sources");
17 var pane = WebInspector.panels.scripts.sidebarPanes.xhrBreakpoints; 17 var pane = WebInspector.panels.sources.sidebarPanes.xhrBreakpoints;
18 InspectorTest.runDebuggerTestSuite([ 18 InspectorTest.runDebuggerTestSuite([
19 function testXHRBreakpoint(next) 19 function testXHRBreakpoint(next)
20 { 20 {
21 pane._setBreakpoint("foo", true); 21 pane._setBreakpoint("foo", true);
22 InspectorTest.waitUntilPaused(step1); 22 InspectorTest.waitUntilPaused(step1);
23 InspectorTest.evaluateInPageWithTimeout("sendRequest('/foo?a=b')"); 23 InspectorTest.evaluateInPageWithTimeout("sendRequest('/foo?a=b')");
24 24
25 function step1(callFrames) 25 function step1(callFrames)
26 { 26 {
27 InspectorTest.captureStackTrace(callFrames); 27 InspectorTest.captureStackTrace(callFrames);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 </script> 96 </script>
97 </head> 97 </head>
98 98
99 <body onload="runTest()"> 99 <body onload="runTest()">
100 <p> 100 <p>
101 Tests XHR breakpoints. 101 Tests XHR breakpoints.
102 </p> 102 </p>
103 103
104 </body> 104 </body>
105 </html> 105 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698