mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 10:27:32 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
23
dom/apps/tests/unit/test_manifestHelper.js
Normal file
23
dom/apps/tests/unit/test_manifestHelper.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
// Test that W3C start_url takes precedence over mozApps launch_path
|
||||
function run_test() {
|
||||
Components.utils.import("resource:///modules/AppsUtils.jsm");
|
||||
|
||||
let manifest1 = {
|
||||
launch_path: "other.html"
|
||||
};
|
||||
|
||||
let manifest2 = {
|
||||
start_url: "start.html",
|
||||
launch_path: "other.html"
|
||||
};
|
||||
|
||||
var helper = new ManifestHelper(manifest1, "http://foo.com",
|
||||
"http://foo.com/manifest.json");
|
||||
var path = helper.fullLaunchPath();
|
||||
do_check_true(path == "http://foo.com/other.html");
|
||||
|
||||
helper = new ManifestHelper(manifest2, "http://foo.com",
|
||||
"http://foo.com/manifest.json");
|
||||
path = helper.fullLaunchPath();
|
||||
do_check_true(path == "http://foo.com/start.html");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue