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