| 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 var pane = self.runtime.sharedInstance(WebInspector.XHRBreakpointsSidebarPan
e); | 16 var pane = self.runtime.sharedInstance(Sources.XHRBreakpointsSidebarPane); |
| 17 InspectorTest.runDebuggerTestSuite([ | 17 InspectorTest.runDebuggerTestSuite([ |
| 18 function testXHRBreakpoint(next) | 18 function testXHRBreakpoint(next) |
| 19 { | 19 { |
| 20 pane._setBreakpoint("foo", true); | 20 pane._setBreakpoint("foo", true); |
| 21 InspectorTest.waitUntilPaused(step1); | 21 InspectorTest.waitUntilPaused(step1); |
| 22 InspectorTest.evaluateInPageWithTimeout("sendRequest('/foo?a=b')"); | 22 InspectorTest.evaluateInPageWithTimeout("sendRequest('/foo?a=b')"); |
| 23 | 23 |
| 24 function step1(callFrames) | 24 function step1(callFrames) |
| 25 { | 25 { |
| 26 InspectorTest.captureStackTrace(callFrames); | 26 InspectorTest.captureStackTrace(callFrames); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 </script> | 95 </script> |
| 96 </head> | 96 </head> |
| 97 | 97 |
| 98 <body onload="runTest()"> | 98 <body onload="runTest()"> |
| 99 <p> | 99 <p> |
| 100 Tests XHR breakpoints. | 100 Tests XHR breakpoints. |
| 101 </p> | 101 </p> |
| 102 | 102 |
| 103 </body> | 103 </body> |
| 104 </html> | 104 </html> |
| OLD | NEW |