mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Don't close window from test driver.
Sometimes I get a "Unable to find target with id XXX closeTarget..." error when running tests which happens when test.js tries to close all the open pages. I haven't been able to fully verify since this is intermittent, but I think this is coming from us closing the window in driver.js and also trying to close it in test.js.
This commit is contained in:
parent
b753271ca6
commit
a969440af8
1 changed files with 0 additions and 5 deletions
|
@ -850,11 +850,6 @@ class Driver {
|
|||
// Send the quit request
|
||||
const r = new XMLHttpRequest();
|
||||
r.open("POST", `/tellMeToQuit?browser=${escape(this.browser)}`, false);
|
||||
r.onreadystatechange = function (e) {
|
||||
if (r.readyState === 4) {
|
||||
window.close();
|
||||
}
|
||||
};
|
||||
r.send(null);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue