Index: third_party/WebKit/LayoutTests/fast/canvas/canvas-context-gc-custom-properties.html |
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-context-gc-custom-properties.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-context-gc-custom-properties.html |
index 585be398a011fb67a18a90955e51e21f4720256b..a21017fcec68c4fbfd422742342a3eab80294671 100644 |
--- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-context-gc-custom-properties.html |
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-context-gc-custom-properties.html |
@@ -1,21 +1,7 @@ |
<script src="../../resources/testharness.js"></script> |
<script src="../../resources/testharnessreport.js"></script> |
+<script src="../../resources/gc.js"></script> |
<script> |
-function gc() { |
- if (typeof GCController !== "undefined") |
- GCController.collectAll(); |
- else { |
- var gcRec = function (n) { |
- if (n < 1) |
- return {}; |
- var temp = {i: "ab" + i + (i / 100000)}; |
- temp += "foo"; |
- gcRec(n-1); |
- }; |
- for (var i = 0; i < 1000; i++) |
- gcRec(10); |
- } |
-} |
function runTest() { |
canvas = document.createElement("canvas"); |