Add an API to get a reference to the URL of a test helper file with a specified origin

NEW
Unassigned

Status

Testing
General
3 years ago
3 years ago

People

(Reporter: Paolo, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
In bug 1142110, instead of hard-coding a helper file URL, it could be helpful to be able to use an API like:

let url = TestUtils.getHelperFileURL({
  path: "form_basic.html",
  origin: "https://example.com/",
});

And for the browser-chrome test in that bug, it would result in the string:

"https://example.com/browser/toolkit/components/passwordmgr/test/browser/form_basic.html"
(Reporter)

Updated

3 years ago
Summary: Add an API to get a reference to the URL of test a helper file with a specified origin → Add an API to get a reference to the URL of a test helper file with a specified origin
You need to log in before you can comment on or make changes to this bug.