mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
69 lines
2.2 KiB
XML
69 lines
2.2 KiB
XML
<?xml version="1.0"?>
|
|
<?xml-stylesheet type="text/css" href="chrome://global/skin"?>
|
|
<?xml-stylesheet type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"?>
|
|
|
|
<!-- Any copyright is dedicated to the Public Domain.
|
|
- http://creativecommons.org/publicdomain/zero/1.0/
|
|
- https://bugzilla.mozilla.org/show_bug.cgi?id=741549
|
|
-->
|
|
|
|
<window title="Mozilla Bug 741549"
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
<script type="application/javascript" src="chrome://mochikit/content/chrome-harness.js"></script>
|
|
<script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
|
|
<script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"/>
|
|
<script type="application/javascript" src="apphelper.js"/>
|
|
<script type="application/javascript" src="jshelper.js"/>
|
|
<!-- test results are displayed in the html:body -->
|
|
<body xmlns="http://www.w3.org/1999/xhtml">
|
|
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=741549"
|
|
target="_blank">Mozilla Bug 741549</a>
|
|
</body>
|
|
|
|
<script>
|
|
|
|
steps = [setUp, verify_no_apps, get_installed_returns_nothing, install_bom, tearDown];
|
|
|
|
runAll(steps);
|
|
|
|
function setUp(next) {
|
|
debug("in " + arguments.callee.name);
|
|
uninstallAll(next);
|
|
}
|
|
|
|
function verify_no_apps(next) {
|
|
debug("in " + arguments.callee.name);
|
|
mozAppscb(navigator.mozApps.mgmt.getAll(),
|
|
[{}],
|
|
"success",
|
|
ok,
|
|
next);
|
|
}
|
|
|
|
function get_installed_returns_nothing(next) {
|
|
debug("in " + arguments.callee.name);
|
|
mozAppscb(navigator.mozApps.getInstalled(),
|
|
[{}],
|
|
"success",
|
|
ok,
|
|
next);
|
|
}
|
|
|
|
function install_bom(next) {
|
|
debug("in " + arguments.callee.name);
|
|
var appURL = SERVERS['manifest_with_bom'];
|
|
var pending = navigator.mozApps.install(appURL, null);
|
|
pending.onsuccess = function() {
|
|
var name = pending.result.manifest.name;
|
|
var description = pending.result.manifest.description;
|
|
ok(name == "TheBOM ゲゴケ゚セニツ゚ヅヂチ", name);
|
|
ok(description == "This App is THE BOM, yo. ヅヂチ", description);
|
|
next();
|
|
};
|
|
}
|
|
|
|
</script>
|
|
|
|
</window>
|
|
|