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'); |