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/NodeIterator/NodeIterator-dont-overcollect.html

Issue 1950613005: Fixes tests that use internals.observeGC to work with Ignition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes comments and fixes more tests. Created 4 years, 7 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/NodeIterator/NodeIterator-dont-overcollect.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/NodeIterator/NodeIterator-dont-overcollect.html b/third_party/WebKit/LayoutTests/fast/dom/NodeIterator/NodeIterator-dont-overcollect.html
index 96fe55a72d4b4bb46c6bc779903bb03290ec671f..9268eaacfcf01e6c19d871a9a04461182fa8c9a1 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/NodeIterator/NodeIterator-dont-overcollect.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/NodeIterator/NodeIterator-dont-overcollect.html
@@ -2,6 +2,7 @@
<html>
<body>
<script src="../../../resources/js-test.js"></script>
+<script src="../../../resources/observeGC.js"></script>
<script>
var callbackWasTriggered = false;
@@ -11,10 +12,10 @@
};
var nodeIterator = document.createNodeIterator(document, NodeFilter.SHOW_ELEMENT, callback, false);
- var callbackObservation = internals.observeGC(callback);
+ var callbackObservation = observeGC(() => {return callback;});
callback = null;
- var nodeFilterObservation = internals.observeGC(nodeIterator.filter);
- var nodeIteratorObservation = internals.observeGC(nodeIterator);
+ var nodeFilterObservation = observeGC(() => {return nodeIterator.filter;});
+ var nodeIteratorObservation = observeGC(() => {return nodeIterator;});
gc();
shouldBeFalse('nodeFilterObservation.wasCollected');

Powered by Google App Engine
This is Rietveld 408576698