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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-context-gc-custom-properties.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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/webgl/context-destroyed-crash.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/webgl/context-destroyed-crash.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698