| Index: LayoutTests/inspector/sources/debugger/xhr-breakpoints.html
|
| diff --git a/LayoutTests/inspector/sources/debugger/xhr-breakpoints.html b/LayoutTests/inspector/sources/debugger/xhr-breakpoints.html
|
| deleted file mode 100644
|
| index fedace4f1a207c2e503f0195c2412d729303f4f9..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/inspector/sources/debugger/xhr-breakpoints.html
|
| +++ /dev/null
|
| @@ -1,104 +0,0 @@
|
| -<html>
|
| -<head>
|
| -<script src="../../../http/tests/inspector/inspector-test.js"></script>
|
| -<script src="../../../http/tests/inspector/debugger-test.js"></script>
|
| -<script>
|
| -
|
| -function sendRequest(url)
|
| -{
|
| - var request = new XMLHttpRequest();
|
| - request.open("GET", url, true);
|
| - request.send()
|
| -}
|
| -
|
| -function test()
|
| -{
|
| - var pane = WebInspector.panels.sources.sidebarPanes.xhrBreakpoints;
|
| - InspectorTest.runDebuggerTestSuite([
|
| - function testXHRBreakpoint(next)
|
| - {
|
| - pane._setBreakpoint("foo", true);
|
| - InspectorTest.waitUntilPaused(step1);
|
| - InspectorTest.evaluateInPageWithTimeout("sendRequest('/foo?a=b')");
|
| -
|
| - function step1(callFrames)
|
| - {
|
| - InspectorTest.captureStackTrace(callFrames);
|
| - InspectorTest.resumeExecution(step2);
|
| - }
|
| -
|
| - function step2()
|
| - {
|
| - InspectorTest.evaluateInPage("sendRequest('/bar?a=b')", step3);
|
| - }
|
| -
|
| - function step3()
|
| - {
|
| - pane._removeBreakpoint("foo");
|
| - InspectorTest.evaluateInPage("sendRequest('/foo?a=b')", next);
|
| - }
|
| - },
|
| -
|
| - function testPauseOnAnyXHR(next)
|
| - {
|
| - pane._setBreakpoint("", true);
|
| - InspectorTest.waitUntilPaused(pausedFoo);
|
| - InspectorTest.evaluateInPageWithTimeout("sendRequest('/foo?a=b')");
|
| -
|
| - function pausedFoo(callFrames)
|
| - {
|
| - function resumed()
|
| - {
|
| - InspectorTest.waitUntilPaused(pausedBar);
|
| - InspectorTest.evaluateInPage("sendRequest('/bar?a=b')");
|
| - }
|
| - InspectorTest.resumeExecution(resumed);
|
| - }
|
| -
|
| - function pausedBar(callFrames)
|
| - {
|
| - function resumed()
|
| - {
|
| - pane._removeBreakpoint("");
|
| - InspectorTest.evaluateInPage("sendRequest('/baz?a=b')", next);
|
| - }
|
| - InspectorTest.resumeExecution(resumed);
|
| - }
|
| - },
|
| -
|
| - function testDisableBreakpoint(next)
|
| - {
|
| - pane._setBreakpoint("", true);
|
| - InspectorTest.waitUntilPaused(paused);
|
| - InspectorTest.evaluateInPage("sendRequest('/foo')");
|
| -
|
| - function paused(callFrames)
|
| - {
|
| - function resumed()
|
| - {
|
| - pane._breakpointElements.get("")._checkboxElement.click();
|
| - InspectorTest.waitUntilPaused(pausedAgain);
|
| - InspectorTest.evaluateInPage("sendRequest('/foo')", next);
|
| - }
|
| - InspectorTest.resumeExecution(resumed);
|
| - }
|
| -
|
| - function pausedAgain(callFrames)
|
| - {
|
| - InspectorTest.addResult("Fail, paused again after breakpoint was removed.");
|
| - next();
|
| - }
|
| - }
|
| - ]);
|
| -}
|
| -
|
| -</script>
|
| -</head>
|
| -
|
| -<body onload="runTest()">
|
| -<p>
|
| -Tests XHR breakpoints.
|
| -</p>
|
| -
|
| -</body>
|
| -</html>
|
|
|