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

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: 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..5ae3e7a6eb43bd1b6d72b8b8f5a0d47e129cd9c9 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,9 @@
function test(expr, expectedType, testWhat)
{
shouldBe(expr + ".type", expectedType);
- eval(expr + "." + testWhat).foo = "bar"
+ // Perform all assignments in a function to avoid references to objects
+ // in dead registers when using ignition (chromium:595672)
+ (() => {eval(expr + "." + testWhat).foo = "bar";})();
gc();
shouldBe(expr + "." + testWhat + ".foo", "'bar'");
}

Powered by Google App Engine
This is Rietveld 408576698