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

Unified Diff: LayoutTests/inspector/sources/debugger/async-callstack-events.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-events.html
diff --git a/LayoutTests/inspector/sources/debugger/async-callstack-events.html b/LayoutTests/inspector/sources/debugger/async-callstack-events.html
deleted file mode 100644
index 05b1d1d53b66a4ad457e861f845ecf7abcb6e70a..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/sources/debugger/async-callstack-events.html
+++ /dev/null
@@ -1,90 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/debugger-test.js"></script>
-<script>
-
-function testFunction()
-{
- for (var name in window) {
- if (/^doTest[A-Z]/.test(name) && typeof window[name] === "function")
- window[name]();
- }
-}
-
-function setSelection(start, end)
-{
- var node = document.getElementById("content").firstChild;
- var range = document.createRange();
- range.setStart(node, start);
- range.setEnd(node, end);
- var selection = window.getSelection();
- selection.removeAllRanges();
- if (start !== end)
- selection.addRange(range);
-}
-
-function doTestSelectionChange()
-{
- setSelection(0, 0);
- document.addEventListener("selectionchange", onSelectionChange, false);
- setSelection(0, 4);
- setSelection(0, 8);
- setSelection(0, 0);
-}
-
-function onSelectionChange()
-{
- document.removeEventListener("selectionchange", onSelectionChange, false);
- debugger;
-}
-
-function doTestHashChange()
-{
- window.addEventListener("hashchange", onHashChange1, false);
- window.addEventListener("hashchange", onHashChange2, true);
- location.hash = location.hash + "x";
-}
-
-function onHashChange1()
-{
- window.removeEventListener("hashchange", onHashChange1, false);
- debugger;
-}
-
-function onHashChange2()
-{
- window.removeEventListener("hashchange", onHashChange2, true);
- debugger;
-}
-
-function doTestMediaEvents()
-{
- var video = document.getElementById("video");
- video.addEventListener("play", onVideoPlay, false);
- video.play();
-}
-
-function onVideoPlay()
-{
- video.removeEventListener("play", onVideoPlay, false);
- debugger;
-}
-
-var test = function()
-{
- var totalDebuggerStatements = 4;
- var maxAsyncCallStackDepth = 4;
- InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements, maxAsyncCallStackDepth);
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<video id="video" src="../../../media/content/test.ogv"></video>
-<p id="content">
-Tests asynchronous call stacks for various DOM events.
-</p>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698