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

Unified Diff: content/test/layouttest_support.cc

Issue 147973002: Move SetJavaScriptFlags() from webkit to content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: changes Created 6 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: content/test/layouttest_support.cc
diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc
index 9f175e0a7aaef8ab0aa13d9b0d47c468c1b1f968..d756c57ddb620925c80350937b5740c877fc2ed5 100644
--- a/content/test/layouttest_support.cc
+++ b/content/test/layouttest_support.cc
@@ -92,6 +92,10 @@ void SetMockDeviceOrientationData(const WebDeviceOrientationData& data) {
}
void EnableRendererLayoutTestMode() {
+ // We always expose GC to layout tests.
+ std::string flags("--expose-gc");
+ v8::V8::SetFlagsFromString(flags.c_str(), static_cast<int>(flags.size()));
+
RenderThreadImpl::current()->set_layout_test_mode(true);
}

Powered by Google App Engine
This is Rietveld 408576698