author Mihai Sucan <mihai.sucan@gmail.com>
Fri, 24 Aug 2012 19:17:00 +0300
changeset 103459 d8accb9118ce3328d71dec425b24a8249b4e46af
parent 102403 07b53bdc212ac3876cea6c2c7906e3106985043e
child 179926 50175efb3a5bdab540dbbad400603b7a18b562ce
permissions -rw-r--r--
Bug 785387 - Autocompletion display glitch; r=rcampbell


  This is a sample WebappRT content mochitest.  Since its name is prefixed with
  webapprt_, this file is picked up by the Mochitest harness.  It's just a plain
  mochitest that runs in the app browser within an app window.

    <meta charset="utf-8">
    <script src="/tests/SimpleTest/SimpleTest.js"></script>
    <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    <p id="display">
      This is the sample WebappRT content mochitest.
    <div id="content" style="display: none"></div>
    <pre id="test">


ok(true, "true is true!");

var self = navigator.mozApps.getSelf();
self.onsuccess = function () {
  ok(true, "onsuccess should be called");
  ok(self.result, "result should be nonnull");
  ok(self.result.manifest, "manifest should be nonnull");
  is(self.result.manifest.name, "WebappRT Mochitest Webapp",
self.onerror = function () {
  ok(false, "onerror should not be called");