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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/StyleSheet/gc-rule-children-wrappers.html

Issue 1972943002: Modifies few gc related layout tests to work with ignition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes comments. 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/StyleSheet/gc-rule-children-wrappers.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/gc-rule-children-wrappers.html b/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/gc-rule-children-wrappers.html
index 5bb3d7cdc001943c531158425e4411949e994916..9994a0b3d736db95b4ad4fd3ba9ceefa5a661e7e 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/gc-rule-children-wrappers.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/gc-rule-children-wrappers.html
@@ -31,7 +31,10 @@
function test(expr, expectedType, testWhat)
{
shouldBe(expr + ".type", expectedType);
- eval(expr + "." + testWhat).foo = "bar"
+ // Do initialization work in an inner function to avoid references to
+ // objects remaining live on this function's stack frame
+ // (http://crbug.com/595672/).
+ (() => {eval(expr + "." + testWhat).foo = "bar";})();
gc();
shouldBe(expr + "." + testWhat + ".foo", "'bar'");
}

Powered by Google App Engine
This is Rietveld 408576698