dom/indexedDB/test/test_globalObjects_content.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 <!--
     2   Any copyright is dedicated to the Public Domain.
     3   http://creativecommons.org/publicdomain/zero/1.0/
     4 -->
     5 <html>
     6 <head>
     7   <title>Indexed Database Property Test</title>
     9   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    10   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    12   <script type="text/javascript;version=1.7">
    13   function testSteps()
    14   {
    15     const name = window.location.pathname;
    17     // Test for IDBKeyRange and indexedDB availability in content windows.
    18     let keyRange = IDBKeyRange.only(42);
    19     ok(keyRange, "Got keyRange");
    21     let request = indexedDB.open(name, 1);
    22     request.onerror = errorHandler;
    23     request.onsuccess = grabEventAndContinueHandler;
    24     let event = yield undefined;
    26     let db = event.target.result;
    27     ok(db, "Got database");
    29     finishTest();
    30     yield undefined;
    31   }
    32   </script>
    33   <script type="text/javascript;version=1.7" src="helpers.js"></script>
    34 </head>
    36 <body onload="runTest();"></body>
    38 </html>

mercurial