Add delay()
test support function
`Zotero.Promise.delay()` wrapper
This commit is contained in:
parent
ed224dce34
commit
5f631ff0af
1 changed files with 5 additions and 0 deletions
|
@ -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}`);
|
||||
|
|
Loading…
Reference in a new issue