Run existing tests without font size inflation, even when it is enabled. (Bug 627842, patch 17) r=roc

This commit is contained in:
L. David Baron 2011-11-23 18:48:24 -08:00
parent 20e2347ed6
commit 9316570c37
2 changed files with 5 additions and 0 deletions

View File

@ -367,6 +367,9 @@ user_pref("app.update.enabled", false);
user_pref("browser.panorama.experienced_first_run", true); // Assume experienced
user_pref("dom.w3c_touch_events.enabled", true);
user_pref("toolkit.telemetry.prompted", 2);
// Existing tests assume there is no font size inflation.
user_pref("font.size.inflation.emPerLine", 0);
user_pref("font.size.inflation.minTwips", 0);
// Only load extensions from the application and user profile
// AddonManager.SCOPE_PROFILE + AddonManager.SCOPE_APPLICATION

View File

@ -335,6 +335,8 @@ class RemoteReftest(RefTest):
fhandle = open(os.path.join(profileDir, "user.js"), 'a')
fhandle.write("""
user_pref("browser.firstrun.show.localepicker", false);
user_pref("font.size.inflation.emPerLine", 0);
user_pref("font.size.inflation.minTwips", 0);
""")
#workaround for jsreftests.