1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/tests/mochitest/webapps/test_install_utf8.xul Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,37 @@ 1.4 +<?xml version="1.0"?> 1.5 + 1.6 +<!-- Any copyright is dedicated to the Public Domain. 1.7 + - http://creativecommons.org/publicdomain/zero/1.0/ --> 1.8 + 1.9 +<?xml-stylesheet type="text/css" href="chrome://global/skin"?> 1.10 +<?xml-stylesheet type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"?> 1.11 + 1.12 +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 1.13 + title="Mozilla Bug 741549"> 1.14 + <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/> 1.15 + <script type="application/javascript" src="head.js"/> 1.16 + <!-- test results are displayed in the html:body --> 1.17 + <body xmlns="http://www.w3.org/1999/xhtml"> 1.18 + <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=741549" 1.19 + target="_blank">Mozilla Bug 741549</a> 1.20 + </body> 1.21 + 1.22 +<script> 1.23 + 1.24 +SimpleTest.waitForExplicitFinish(); 1.25 + 1.26 +var url = "http://test/chrome/dom/tests/mochitest/webapps/apps/utf8.webapp"; 1.27 + 1.28 +confirmNextInstall(); 1.29 +navigator.mozApps.install(url, null).onsuccess = function onInstall() { 1.30 + is(this.result.manifest.name, "TheBOM ゲゴケ゚セニツ゚ヅヂチ", "manifest.name"); 1.31 + is(this.result.manifest.description, "This App is THE BOM, yo. ヅヂチ", 1.32 + "manifest.description"); 1.33 + 1.34 + navigator.mozApps.mgmt.uninstall(this.result).onsuccess = function onUninstall() { 1.35 + SimpleTest.finish(); 1.36 + } 1.37 +}; 1.38 + 1.39 +</script> 1.40 +</window>