OLD | NEW |
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 Loading... |
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> |
OLD | NEW |