Bug 1252869 - Fix browser_experiments.js to work with e10s. r=gfritzsche

This commit is contained in:
Alessio Placitelli 2016-03-07 17:21:58 +01:00
parent a91fe1b7f8
commit fd3d11e603
2 changed files with 6 additions and 2 deletions

View File

@ -40,7 +40,6 @@ skip-if = e10s # Bug ?????? - test times out on try on all platforms, but works
[browser_dragdrop.js]
skip-if = buildapp == 'mulet'
[browser_experiments.js]
skip-if = e10s
[browser_list.js]
[browser_metadataTimeout.js]
[browser_searching.js]

View File

@ -225,7 +225,12 @@ add_task(function* testOpenPreferences() {
}, "advanced-pane-loaded", false);
info("Loading preferences pane.");
EventUtils.synthesizeMouseAtCenter(btn, {}, gManagerWindow);
// We need to focus before synthesizing the mouse event (bug 1240052) as
// synthesizeMouseAtCenter currently only synthesizes the mouse in the child process.
// This can cause some subtle differences if the child isn't focused.
yield SimpleTest.promiseFocus();
yield BrowserTestUtils.synthesizeMouseAtCenter("#experiments-change-telemetry", {},
gBrowser.selectedBrowser);
yield deferred.promise;
});