mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08: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:
parent
bf416db23d
commit
d86720b7dc
5 changed files with 7 additions and 24 deletions
|
@ -1,7 +1,7 @@
|
|||
"use strict";
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
var TestReporter = function (browser, appPath) {
|
||||
var TestReporter = function (browser) {
|
||||
function send(action, json, cb) {
|
||||
var r = new XMLHttpRequest();
|
||||
// (The POST URI is ignored atm.)
|
||||
|
@ -39,7 +39,7 @@ var TestReporter = function (browser, appPath) {
|
|||
}
|
||||
|
||||
function sendQuitRequest() {
|
||||
send("/tellMeToQuit?path=" + escape(appPath), {});
|
||||
send(`/tellMeToQuit?browser=${escape(browser)}`, {});
|
||||
}
|
||||
|
||||
this.now = function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue