Add delay() test support function

`Zotero.Promise.delay()` wrapper
This commit is contained in:
Dan Stillman 2023-04-28 01:50:42 -04:00
parent ed224dce34
commit 5f631ff0af

View file

@ -348,6 +348,11 @@ function waitForCallback(cb, interval, timeout) {
}
async function delay(ms) {
return Zotero.Promise.delay(ms);
}
function clickOnItemsRow(win, itemsView, row) {
itemsView._treebox.scrollToRow(row);
let elem = win.document.querySelector(`#${itemsView.id}-row-${row}`);