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

Unified Diff: third_party/WebKit/LayoutTests/media/remoteplayback/availability-callback-gc.html

Issue 2847943002: Cleanup LayoutTests that define a function gc(). (Closed)
Patch Set: Fixing Layout Tests Failures Created 3 years, 8 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: third_party/WebKit/LayoutTests/media/remoteplayback/availability-callback-gc.html
diff --git a/third_party/WebKit/LayoutTests/media/remoteplayback/availability-callback-gc.html b/third_party/WebKit/LayoutTests/media/remoteplayback/availability-callback-gc.html
index f5fda808b0d2bb7d320f14a54ea4f5440b8d1bc2..873ea3ff2b63be6828e1d697f18f3806e61c36a2 100644
--- a/third_party/WebKit/LayoutTests/media/remoteplayback/availability-callback-gc.html
+++ b/third_party/WebKit/LayoutTests/media/remoteplayback/availability-callback-gc.html
@@ -4,23 +4,11 @@
<title>Test that the callback is not garbage collected if registered.</title>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
+ <script src="../../resources/gc.js"></script>
<script src="../media-file.js"></script>
</head>
<body>
<script>
- // WPT: this test can't be moved to WPT because of its usage of:
- // - GCController.collect()
-
- function gc() {
- if (window.GCController)
- GCController.collect();
- else {
- for (var i = 0; i < 10000; ++i) {
- ({ });
- }
- }
- }
-
async_test(function(t)
{
var v = document.createElement('video');

Powered by Google App Engine
This is Rietveld 408576698