зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1440678 - Disable RDM reload notification for tests. r=ochameau
MozReview-Commit-ID: 5dXxE6u1ZSI --HG-- extra : rebase_source : 8ef589abc535b06216c2e6545e461c64dc0b206a
This commit is contained in:
Родитель
c670e162da
Коммит
b049c9cb2a
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче