Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Unified Diff: LayoutTests/inspector/sources/debugger/async-callstack-in-console.html

Issue 1153923005: DevTools: shard inspector/debugger tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/inspector/sources/debugger/async-callstack-in-console.html
diff --git a/LayoutTests/inspector/sources/debugger/async-callstack-in-console.html b/LayoutTests/inspector/sources/debugger/async-callstack-in-console.html
deleted file mode 100644
index 387cc36fa921ab06c5f0194d5761b93e6f78405c..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/sources/debugger/async-callstack-in-console.html
+++ /dev/null
@@ -1,92 +0,0 @@
-<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>
-
-function testFunction()
-{
- debugger;
- console.clear();
- setTimeout(timeout1, 0);
-}
-
-function timeout1()
-{
- console.trace();
- setTimeout(timeout2, 0);
-}
-
-function timeout2()
-{
- setTimeout(timeout3, 0);
- throw Error("foo");
-}
-
-function timeout3()
-{
- 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 test = function()
-{
- var maxAsyncCallStackDepth = 4;
- var numberOfConsoleMessages = 5;
-
- InspectorTest.setQuiet(true);
- InspectorTest.startDebuggerTest(step1);
-
- function step1()
- {
- InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerModel.PauseOnExceptionsState.DontPauseOnExceptions);
- InspectorTest.DebuggerAgent.setAsyncCallStackDepth(0);
- InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
- }
-
- function step2()
- {
- InspectorTest.DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDepth, didPause);
- }
-
- function didPause()
- {
- InspectorTest.waitUntilNthMessageReceived(numberOfConsoleMessages, expandAndDumpConsoleMessages);
- InspectorTest.resumeExecution();
- }
-
- function expandAndDumpConsoleMessages()
- {
- InspectorTest.expandConsoleMessages(dumpConsoleMessages);
- }
-
- function dumpConsoleMessages()
- {
- InspectorTest.dumpConsoleMessages(false, false, InspectorTest.textContentWithLineBreaks);
- InspectorTest.completeDebuggerTest();
- }
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests asynchronous call stacks printed in console.
-</p>
-<div><iframe src="resources/post-message-listener.html"
- id="iframe" width="800" height="100" style="border: 1px solid black;">
-</iframe></div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698