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

Unified Diff: LayoutTests/http/tests/inspector-enabled/target-leak.html

Issue 403523004: DevTools: Remove flaky target-leak.html (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/http/tests/inspector-enabled/target-leak-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/inspector-enabled/target-leak.html
diff --git a/LayoutTests/http/tests/inspector-enabled/target-leak.html b/LayoutTests/http/tests/inspector-enabled/target-leak.html
deleted file mode 100644
index 78135f3980ca4d73ea1d52cea4a5c32638eb057d..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/inspector-enabled/target-leak.html
+++ /dev/null
@@ -1,70 +0,0 @@
-<html>
-<head>
-<script src="../inspector/inspector-test.js"></script>
-<script>
-
-function onload()
-{
- testRunner.showWebInspector(JSON.stringify({experiments: "{\"workersInMainWindow\":true}"}));
- runTest();
-}
-
-function startWorker()
-{
- new Worker("resources/dedicated-worker.js?id=1");
-}
-
-function test()
-{
- InspectorBackendClass.Options.suppressRequestErrors = true;
- var targetObservation;
- var targetObserver = {
-
- targetAdded: function(target)
- {
- if (!target.isWorkerTarget())
- return;
-
- InspectorTest.addResult("Worker target added");
- targetObservation = internals.observeGC(target);
- setTimeout(runAfterPendingDispatches.bind(null, target), 0);
- },
-
- targetRemoved: function(target)
- {
-
- },
- }
-
- function runAfterPendingDispatches(target)
- {
- WebInspector.targetManager.removeTarget(target);
- target._connection._close();
- target = null;
- WebInspector.workerTargetManager._workerTargetById = {};
- setTimeout(finish, 0);
- }
-
- function finish()
- {
- gc();
- InspectorTest.addResult("Worker target was collected: " + targetObservation.wasCollected);
- InspectorTest.completeTest();
- }
-
- var panels = Object.keys(WebInspector.inspectorView._panelDescriptors);
- for (var i = 0; i < panels.length; ++i) {
- WebInspector.inspectorView.showPanel(panels[i]);
- }
- InspectorTest.evaluateInPage("startWorker();");
- WebInspector.targetManager.observeTargets(targetObserver);
-}
-
-</script>
-</head>
-
-<body onload="onload()">
-<p>This test that target doesn't leak when it is removed</p>
-</body>
-</html>
-
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/http/tests/inspector-enabled/target-leak-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698