fx-compat: Fix some tag selector tests

This commit is contained in:
Dan Stillman 2022-06-20 19:32:03 -04:00
parent 54529ab461
commit 3a5c24b6f1

View file

@ -657,13 +657,14 @@ describe("Tag Selector", function () {
yield promise;
promise = waitForTagSelector(win);
var promptPromise = waitForWindow("chrome://global/content/commonDialog.xul", function (dialog) {
dialog.document.getElementById('loginTextbox').value = newTag;
dialog.document.documentElement.acceptDialog();
var promptPromise = waitForDialog(function (dialogWindow, dialog) {
dialogWindow.document.getElementById('loginTextbox').value = newTag;
dialog.acceptDialog();
})
tagSelector.contextTag = {name: tag};
yield tagSelector.openRenamePrompt();
yield promise;
yield promptPromise;
var tags = getRegularTags();
assert.include(tags, newTag);
@ -680,9 +681,9 @@ describe("Tag Selector", function () {
yield promise;
promise = waitForTagSelector(win);
waitForWindow("chrome://global/content/commonDialog.xul", function (dialog) {
dialog.document.getElementById('loginTextbox').value = newTag;
dialog.document.documentElement.acceptDialog();
waitForDialog(function (dialogWindow, dialog) {
dialogWindow.document.getElementById('loginTextbox').value = newTag;
dialog.acceptDialog();
});
tagSelector.contextTag = {name: oldTag};
yield tagSelector.openRenamePrompt();