Bug 1440678 - Disable RDM reload notification for tests. r=ochameau

MozReview-Commit-ID: 5dXxE6u1ZSI

--HG--
extra : rebase_source : 8ef589abc535b06216c2e6545e461c64dc0b206a
This commit is contained in:
J. Ryan Stinnett 2018-03-07 17:15:41 -06:00
Родитель c670e162da
Коммит b049c9cb2a
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -50,10 +50,14 @@ requestLongerTimeout(2);
flags.testing = true;
Services.prefs.setCharPref("devtools.devices.url", TEST_URI_ROOT + "devices.json");
// The appearance of this notification causes intermittent behavior in some tests that
// send mouse events, since it causes the content to shift when it appears.
Services.prefs.setBoolPref("devtools.responsive.reloadNotification.enabled", false);
registerCleanupFunction(async () => {
flags.testing = false;
Services.prefs.clearUserPref("devtools.devices.url");
Services.prefs.clearUserPref("devtools.responsive.reloadNotification.enabled");
Services.prefs.clearUserPref("devtools.responsive.html.displayedDeviceList");
Services.prefs.clearUserPref("devtools.responsive.reloadConditions.touchSimulation");
Services.prefs.clearUserPref("devtools.responsive.reloadConditions.userAgent");