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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLElement/script-tests/class-list-gc.js

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 11 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/fast/dom/HTMLElement/script-tests/class-list-gc.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLElement/script-tests/class-list-gc.js b/third_party/WebKit/LayoutTests/fast/dom/HTMLElement/script-tests/class-list-gc.js
deleted file mode 100644
index c3b3153540fe1f0e05c57592ed3540fc5377a2f1..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLElement/script-tests/class-list-gc.js
+++ /dev/null
@@ -1,28 +0,0 @@
-description('This tests that properties on the classList persists GC.');
-
-function gc()
-{
- if (window.GCController)
- return GCController.collect();
-
- for (var i = 0; i < 10000; i++) {
- var s = new String;
- }
-}
-
-var d = document.createElement('div');
-
-// Ensure the classList is created.
-var classList = d.classList;
-
-// Set a custom property.
-d.classList.life = 42;
-shouldEvaluateTo('d.classList.life', 42);
-
-// Null out reference to the dataset.
-classList = null;
-
-gc();
-
-// Test that the classList wrapper persisted the GC and still has the custom property.
-shouldEvaluateTo('d.classList.life', 42);

Powered by Google App Engine
This is Rietveld 408576698