author Nikhil Marathe <nsm.nikhil@gmail.com>
Thu, 25 Jul 2013 17:59:14 -0700
changeset 140052 8253f5b39cbd23c09ee7485489d5daee520555a9
parent 102403 07b53bdc212ac3876cea6c2c7906e3106985043e
child 179926 50175efb3a5bdab540dbbad400603b7a18b562ce
permissions -rw-r--r--
Bug 578700 - ArrayType and BinaryArray implementation. r=nmatsakis


  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");