blob: 092287a7f5a1808a6168cb4e5937bb93c6ada797 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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");
}
|