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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/MutationObserver/weak-callback-gc-crash.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: 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/MutationObserver/weak-callback-gc-crash.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/MutationObserver/weak-callback-gc-crash.html b/third_party/WebKit/LayoutTests/fast/dom/MutationObserver/weak-callback-gc-crash.html
index 4cb6819f14bb9594483aaa5efd7575a9f78e152a..1ee5ef6d432f3bed7c5364a1bf7676426c55cdd8 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/MutationObserver/weak-callback-gc-crash.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/MutationObserver/weak-callback-gc-crash.html
@@ -6,10 +6,15 @@ if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText();
}
-var observer = new MutationObserver(function() {console.log('Should not appear')});
-var div = document.createElement('div');
-observer.observe(div, {attributes: true});
-div.id = 'foo';
+var observer, div;
+function initializeObserver() {
+ observer = new MutationObserver(function() {console.log('Should not appear')});
+ div = document.createElement('div');
+ observer.observe(div, {attributes: true});
+ div.id = 'foo';
+}
+
+initializeObserver();
div = null;
observer = null;
gc();

Powered by Google App Engine
This is Rietveld 408576698