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) {
|
function clickOnItemsRow(win, itemsView, row) {
|
||||||
itemsView._treebox.scrollToRow(row);
|
itemsView._treebox.scrollToRow(row);
|
||||||
let elem = win.document.querySelector(`#${itemsView.id}-row-${row}`);
|
let elem = win.document.querySelector(`#${itemsView.id}-row-${row}`);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue