зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1334909 - Wait for BookmarkingUI to have all pending statements complete before continuing with test. r=mak
MozReview-Commit-ID: 1xMUm8aolOy --HG-- extra : rebase_source : c61557946f805b0b9ce98d664f97b7318ec64188
This commit is contained in:
Родитель
723732ff7f
Коммит
7a7e2ed898
|
@ -27,6 +27,11 @@ function* test_bookmarks_popup({isNewBookmark, popupShowFn, popupEditFn,
|
|||
});
|
||||
}
|
||||
|
||||
info(`BookmarkingUI.status is ${BookmarkingUI.status}`);
|
||||
yield BrowserTestUtils.waitForCondition(
|
||||
() => BookmarkingUI.status != BookmarkingUI.STATUS_UPDATING,
|
||||
"BookmarkingUI should not be updating");
|
||||
|
||||
is(bookmarkStar.hasAttribute("starred"), !isNewBookmark,
|
||||
"Page should only be starred prior to popupshown if editing bookmark");
|
||||
is(bookmarkPanel.state, "closed", "Panel should be 'closed' to start test");
|
||||
|
|
Загрузка…
Ссылка в новой задаче