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

Unified Diff: content/shell/common/webkit_test_helpers.cc

Issue 944083004: Set default page scale limits in layout test preferences (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/shell/common/webkit_test_helpers.cc
diff --git a/content/shell/common/webkit_test_helpers.cc b/content/shell/common/webkit_test_helpers.cc
index 1458836a0141bb191623ca404d8eafc9fd9115aa..65e3138b9f94b67c79ab151adcab40e255bf1d52 100644
--- a/content/shell/common/webkit_test_helpers.cc
+++ b/content/shell/common/webkit_test_helpers.cc
@@ -110,6 +110,8 @@ void ApplyLayoutTestDefaultPreferences(WebPreferences* prefs) {
prefs->text_autosizing_enabled = false;
#endif
prefs->viewport_enabled = false;
+ prefs->default_minimum_page_scale_factor = 1.f;
+ prefs->default_maximum_page_scale_factor = 4.f;
}
base::FilePath GetWebKitRootDirFilePath() {

Powered by Google App Engine
This is Rietveld 408576698