| Index: LayoutTests/http/tests/inspector/sources/debugger/async-callstack-network-initiator.html
|
| diff --git a/LayoutTests/inspector/sources/debugger/async-callstack-in-console.html b/LayoutTests/http/tests/inspector/sources/debugger/async-callstack-network-initiator.html
|
| similarity index 58%
|
| copy from LayoutTests/inspector/sources/debugger/async-callstack-in-console.html
|
| copy to LayoutTests/http/tests/inspector/sources/debugger/async-callstack-network-initiator.html
|
| index 4849239e8f5910c25ff9d550671dcf92c0f2617b..a7d1459fddb36015c496a290cd0ca036bf403280 100644
|
| --- a/LayoutTests/inspector/sources/debugger/async-callstack-in-console.html
|
| +++ b/LayoutTests/http/tests/inspector/sources/debugger/async-callstack-network-initiator.html
|
| @@ -1,8 +1,8 @@
|
| <html>
|
| <head>
|
| -<script src="../../../http/tests/inspector/inspector-test.js"></script>
|
| -<script src="../../../http/tests/inspector/debugger-test.js"></script>
|
| -<script src="../../../http/tests/inspector/console-test.js"></script>
|
| +<script src="/inspector/inspector-test.js"></script>
|
| +<script src="/inspector/debugger-test.js"></script>
|
| +<script src="/inspector/console-test.js"></script>
|
| <script>
|
|
|
| function testFunction()
|
| @@ -14,36 +14,25 @@ function testFunction()
|
|
|
| function timeout1()
|
| {
|
| - console.trace();
|
| setTimeout(timeout2, 0);
|
| }
|
|
|
| function timeout2()
|
| {
|
| - setTimeout(timeout3, 0);
|
| - throw Error("foo");
|
| + sendXHR();
|
| }
|
|
|
| -function timeout3()
|
| +function sendXHR()
|
| {
|
| - console.trace();
|
| - var iframeWidnow = document.getElementById("iframe").contentWindow;
|
| - tryPostMessage(iframeWidnow, "http://www.example.com");
|
| -}
|
| -
|
| -function tryPostMessage(win, origin)
|
| -{
|
| - try {
|
| - win.postMessage("Trying origin=" + origin, origin);
|
| - } catch(ex) {
|
| - console.error("FAIL: Error sending message to " + origin + ". " + ex);
|
| - }
|
| + var xhr = new XMLHttpRequest();
|
| + xhr.open("POST", "/failure/foo", true /* async */);
|
| + xhr.send();
|
| }
|
|
|
| var test = function()
|
| {
|
| var maxAsyncCallStackDepth = 4;
|
| - var numberOfConsoleMessages = 5;
|
| + var numberOfConsoleMessages = 2;
|
|
|
| InspectorTest.setQuiet(true);
|
| InspectorTest.startDebuggerTest(step1);
|
| @@ -83,10 +72,7 @@ var test = function()
|
|
|
| <body onload="runTest()">
|
| <p>
|
| -Tests asynchronous call stacks printed in console.
|
| +Tests asynchronous call stacks printed in console for a Network.Initiator.
|
| </p>
|
| -<div><iframe src="resources/post-message-listener.html"
|
| - id="iframe" width="800" height="100" style="border: 1px solid black;">
|
| -</iframe></div>
|
| </body>
|
| </html>
|
|
|