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-xhrs.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-xhrs.html
diff --git a/LayoutTests/inspector/sources/debugger/async-callstack-xhrs.html b/LayoutTests/inspector/sources/debugger/async-callstack-xhrs.html
deleted file mode 100644
index 34e2baf221d4aa4d27cced9f5ce22bae634afcf5..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/sources/debugger/async-callstack-xhrs.html
+++ /dev/null
@@ -1,85 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/debugger-test.js"></script>
-<script>
-
-var xhrCount = 0;
-
-function testFunction()
-{
- setTimeout(timeout, 0);
-}
-
-function timeout()
-{
- sendSyncXHR();
- sendAsyncXHR();
-}
-
-function sendAsyncXHR() { sendXHR(true); }
-function sendSyncXHR() { sendXHR(false); }
-
-function sendXHR(async)
-{
- var xhr = new XMLHttpRequest();
- xhr.onreadystatechange = function()
- {
- if (xhr.readyState == 4) {
- xhr.onreadystatechange = null;
- debugger;
- }
- };
- function downloadEnd1()
- {
- xhr.removeEventListener("loadend", downloadEnd1, false);
- debugger;
- }
- function downloadEnd2()
- {
- xhr.removeEventListener("loadend", downloadEnd2, true);
- debugger;
- }
- function uploadEnd()
- {
- xhr.upload.removeEventListener("loadend", uploadEnd, false);
- debugger;
- }
- function downloadProgress()
- {
- debugger;
- xhr.removeEventListener("progress", downloadProgress, false);
- }
- function uploadProgress()
- {
- debugger;
- xhr.upload.removeEventListener("progress", uploadProgress, false);
- }
- xhr.addEventListener("loadend", downloadEnd1, false);
- xhr.addEventListener("loadend", downloadEnd2, true);
- if (async) {
- xhr.upload.addEventListener("loadend", uploadEnd, false);
- xhr.addEventListener("progress", downloadProgress, false);
- xhr.upload.addEventListener("progress", uploadProgress, false);
- }
- xhr.open("POST", "/foo?count=" + (++xhrCount) + "&now=" + Date.now(), async);
- xhr.send(String(sendXHR));
-}
-
-var test = function()
-{
- var totalDebuggerStatements = 9;
- var maxAsyncCallStackDepth = 4;
- InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements, maxAsyncCallStackDepth);
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests asynchronous call stacks for XHRs.
-</p>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698