webapprt/test/content/webapprt_indexeddb.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <!DOCTYPE HTML>
     3 <!--
     4   This is a IndexedDB WebappRT content mochitest.  Since its name is prefixed with
     5   webapprt_, this file is picked up by the Mochitest harness.  It's just a plain
     6   mochitest that runs in the app browser within an app window.
     7 -->
     9 <html>
    10   <head>
    11     <meta charset="utf-8">
    12     <script src="/tests/SimpleTest/SimpleTest.js"></script>
    13     <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    14   </head>
    15   <body>
    16     <p id="display">
    17       This is the IndexedDB WebappRT content mochitest.
    18     </p>
    19     <div id="content" style="display: none"></div>
    20     <pre id="test">
    21       <script>
    23 SimpleTest.waitForExplicitFinish();
    25 var request = indexedDB.open('test');
    26 request.onsuccess = function() {
    27   ok(true, "onsuccess should be called");
    28   SimpleTest.finish();
    29 }
    30 request.onerror = function() {
    31   ok(false, "onerror shouldn't be called");
    32   SimpleTest.finish();
    33 }
    35       </script>
    36     </pre>
    37   </body>
    38 </html>

mercurial