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

Unified Diff: LayoutTests/inspector/sources/debugger/async-callstack-mutation-observer.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-mutation-observer.html
diff --git a/LayoutTests/inspector/sources/debugger/async-callstack-mutation-observer.html b/LayoutTests/inspector/sources/debugger/async-callstack-mutation-observer.html
deleted file mode 100644
index e74b27d852c9ea54c581f1f557e65169e6c91048..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/sources/debugger/async-callstack-mutation-observer.html
+++ /dev/null
@@ -1,95 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/debugger-test.js"></script>
-<script>
-
-var node = document.createElement("div");
-var nestedNode = document.createElement("div");
-
-var observer = new MutationObserver(mutationCallback);
-var nestedObserver = new MutationObserver(nestedMutationCallback);
-
-var timeoutFromMutationCallback;
-var timeoutFromNestedMutationCallback;
-var lastDoMutationsFunc;
-
-function mutationCallback(mutations)
-{
- if (lastDoMutationsFunc == doMutations1)
- doMutations1(nestedNode);
- debugger;
- if (!timeoutFromMutationCallback)
- timeoutFromMutationCallback = setTimeout(timeoutFromMutation, 0);
-}
-
-function nestedMutationCallback(mutations)
-{
- debugger;
- if (!timeoutFromNestedMutationCallback)
- timeoutFromNestedMutationCallback = setTimeout(timeoutFromNestedMutation, 0);
-}
-
-function testFunction()
-{
- setTimeout(timeout1, 0);
- var config = { attributes: true, childList: true, characterData: true };
- observer.observe(node, config);
- nestedObserver.observe(nestedNode, config);
-}
-
-function timeout1()
-{
- setTimeout(timeout2, 0);
- doMutations1(node);
-}
-
-function doMutations1(node)
-{
- lastDoMutationsFunc = doMutations1;
- node.setAttribute("foo", "bar");
- node.className = "c1 c2";
- node.textContent = "text";
-}
-
-function timeout2()
-{
- doMutations2(node);
-}
-
-function doMutations2(node)
-{
- lastDoMutationsFunc = doMutations2;
- var child = document.createElement("span");
- node.appendChild(child);
- node.textContent = "";
-}
-
-function timeoutFromMutation()
-{
- debugger;
-}
-
-function timeoutFromNestedMutation()
-{
- debugger;
- doMutations2(nestedNode);
-}
-
-var test = function()
-{
- var totalDebuggerStatements = 6;
- var maxAsyncCallStackDepth = 4;
- InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements, maxAsyncCallStackDepth);
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests asynchronous call stacks for MutationObserver.
-</p>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698