1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

Identify browsers using the name instead of the path

The other testing code already uses the name of the browser as the
unique identifier, so I don't see a good reason to not use that for
identifying browsers to quit as well. Doing so simplifies the (already
somewhat complex) testing logic and ensures that we can use existing
functionality (such as the `getSession` function) to retrieve sessions.
This commit is contained in:
Tim van der Meij 2020-04-18 16:12:50 +02:00
parent bf416db23d
commit d86720b7dc
No known key found for this signature in database
GPG key ID: 8C3FD2925A5F2762
5 changed files with 7 additions and 24 deletions

View file

@ -175,10 +175,7 @@ function initializePDFJS(callback) {
env.addReporter(htmlReporter);
if (queryString.getParam("browser")) {
var testReporter = new TestReporter(
queryString.getParam("browser"),
queryString.getParam("path")
);
var testReporter = new TestReporter(queryString.getParam("browser"));
env.addReporter(testReporter);
}