dom/tests/mochitest/webapps/test_install_utf8.xul

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <?xml version="1.0"?>
     3 <!-- Any copyright is dedicated to the Public Domain.
     4    - http://creativecommons.org/publicdomain/zero/1.0/ -->
     6 <?xml-stylesheet type="text/css" href="chrome://global/skin"?>
     7 <?xml-stylesheet type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"?>
     9 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    10         title="Mozilla Bug 741549">
    11   <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
    12   <script type="application/javascript" src="head.js"/>
    13   <!-- test results are displayed in the html:body -->
    14   <body xmlns="http://www.w3.org/1999/xhtml">
    15   <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=741549"
    16      target="_blank">Mozilla Bug 741549</a>
    17   </body>
    19 <script>
    21 SimpleTest.waitForExplicitFinish();
    23 var url = "http://test/chrome/dom/tests/mochitest/webapps/apps/utf8.webapp";
    25 confirmNextInstall();
    26 navigator.mozApps.install(url, null).onsuccess = function onInstall() {
    27   is(this.result.manifest.name, "TheBOM ゲゴケ゚セニツ゚ヅヂチ", "manifest.name");
    28   is(this.result.manifest.description, "This App is THE BOM, yo. ヅヂチ",
    29      "manifest.description");
    31   navigator.mozApps.mgmt.uninstall(this.result).onsuccess = function onUninstall() {
    32     SimpleTest.finish();
    33   }
    34 };
    36 </script>
    37 </window>

mercurial