| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../inspector-test.js"></script> | 3 <script src="../inspector-test.js"></script> |
| 4 <script src="../debugger-test.js"></script> | 4 <script src="../debugger-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 function sendRequest(url) | 7 function sendRequest(url) |
| 8 { | 8 { |
| 9 fetch(url); | 9 fetch(url); |
| 10 } | 10 } |
| 11 | 11 |
| 12 function test() | 12 function test() |
| 13 { | 13 { |
| 14 var pane = self.runtime.sharedInstance(WebInspector.XHRBreakpointsSidebarPan
e); | 14 var pane = self.runtime.sharedInstance(Sources.XHRBreakpointsSidebarPane); |
| 15 InspectorTest.runDebuggerTestSuite([ | 15 InspectorTest.runDebuggerTestSuite([ |
| 16 function testFetchBreakpoint(next) | 16 function testFetchBreakpoint(next) |
| 17 { | 17 { |
| 18 pane._setBreakpoint("foo", true); | 18 pane._setBreakpoint("foo", true); |
| 19 InspectorTest.waitUntilPaused(step1); | 19 InspectorTest.waitUntilPaused(step1); |
| 20 InspectorTest.evaluateInPageWithTimeout("sendRequest('/foo?a=b')"); | 20 InspectorTest.evaluateInPageWithTimeout("sendRequest('/foo?a=b')"); |
| 21 | 21 |
| 22 function step1(callFrames) | 22 function step1(callFrames) |
| 23 { | 23 { |
| 24 InspectorTest.captureStackTrace(callFrames); | 24 InspectorTest.captureStackTrace(callFrames); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 </script> | 93 </script> |
| 94 </head> | 94 </head> |
| 95 | 95 |
| 96 <body onload="runTest()"> | 96 <body onload="runTest()"> |
| 97 <p> | 97 <p> |
| 98 Tests fetch() breakpoints. | 98 Tests fetch() breakpoints. |
| 99 </p> | 99 </p> |
| 100 | 100 |
| 101 </body> | 101 </body> |
| 102 </html> | 102 </html> |
| OLD | NEW |