зеркало из https://github.com/mozilla/pjs.git
Bug 608431: Wait for window close before proceeding with tests. r=robstrong, a=tests
This commit is contained in:
Родитель
62386ad60a
Коммит
af6a6118ae
|
@ -234,6 +234,7 @@ add_test(function() {
|
|||
ok(!button.disabled, "Finish button should not be disabled");
|
||||
EventUtils.synthesizeMouse(button, 2, 2, { }, aWindow);
|
||||
|
||||
wait_for_window_close(aWindow, function() {
|
||||
AddonManager.getAddonsByIDs(["addon8@tests.mozilla.org",
|
||||
"addon9@tests.mozilla.org"],
|
||||
function([a8, a9]) {
|
||||
|
@ -248,6 +249,7 @@ add_test(function() {
|
|||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
// Tests that the install failures show the install failed page and disabling
|
||||
|
@ -317,10 +319,12 @@ add_test(function() {
|
|||
ok(!button.hidden, "Finish button should not be hidden");
|
||||
ok(!button.disabled, "Finish button should not be disabled");
|
||||
|
||||
EventUtils.synthesizeMouse(button, 2, 2, { }, aWindow);
|
||||
|
||||
wait_for_window_close(aWindow, function() {
|
||||
uninstall_test_addons(run_next_test);
|
||||
});
|
||||
|
||||
EventUtils.synthesizeMouse(button, 2, 2, { }, aWindow);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -400,10 +404,13 @@ add_test(function() {
|
|||
var button = doc.documentElement.getButton("finish");
|
||||
ok(!button.hidden, "Finish button should not be hidden");
|
||||
ok(!button.disabled, "Finish button should not be disabled");
|
||||
EventUtils.synthesizeMouse(button, 2, 2, { }, aWindow);
|
||||
|
||||
wait_for_window_close(aWindow, function() {
|
||||
uninstall_test_addons(run_next_test);
|
||||
});
|
||||
|
||||
EventUtils.synthesizeMouse(button, 2, 2, { }, aWindow);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче