Tests: Add convenience function to pause execution without timing out
`await pause(this)` can be used to disable the test timeout and pause execution so the UI state can be manually inspected
This commit is contained in:
parent
42d4064bac
commit
aaac18ced6
1 changed files with 8 additions and 0 deletions
|
@ -374,6 +374,14 @@ function waitForNotifierEvent(event, type) {
|
|||
return deferred.promise;
|
||||
}
|
||||
|
||||
/**
|
||||
* Hang tests for manual inspection
|
||||
*/
|
||||
async function pause(thisObj) {
|
||||
thisObj.timeout(100000000);
|
||||
await Zotero.Promise.delay(100000000);
|
||||
}
|
||||
|
||||
/**
|
||||
* Looks for windows with a specific URL.
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue