Bug 1372495 - Define dialog size to fix browser_manageProfilesDialog test failure. r=lchang

MozReview-Commit-ID: H8zZYyh4iTJ

--HG--
extra : rebase_source : dd5d59d2db72fd35436a976da8bb4020dbf363a7
This commit is contained in:
Scott Wu 2017-06-13 15:38:01 +08:00
Родитель 195dc2311e
Коммит 60bc4a75d4
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -7,6 +7,8 @@ const TEST_SELECTORS = {
btnEdit: "#edit",
};
const DIALOG_SIZE = "width=600,height=400";
function waitForAddresses() {
return new Promise(resolve => {
Services.cpmm.addMessageListener("FormAutofill:Addresses", function getResult(result) {
@ -45,7 +47,7 @@ add_task(async function test_removingSingleAndMultipleProfiles() {
await saveAddress(TEST_ADDRESS_2);
await saveAddress(TEST_ADDRESS_3);
let win = window.openDialog(MANAGE_PROFILES_DIALOG_URL);
let win = window.openDialog(MANAGE_PROFILES_DIALOG_URL, null, DIALOG_SIZE);
await waitForAddresses();
let selAddresses = win.document.querySelector(TEST_SELECTORS.selAddresses);
@ -74,7 +76,7 @@ add_task(async function test_removingSingleAndMultipleProfiles() {
});
add_task(async function test_profilesDialogWatchesStorageChanges() {
let win = window.openDialog(MANAGE_PROFILES_DIALOG_URL);
let win = window.openDialog(MANAGE_PROFILES_DIALOG_URL, null, DIALOG_SIZE);
await waitForAddresses();
let selAddresses = win.document.querySelector(TEST_SELECTORS.selAddresses);