dom/indexedDB/test/test_open_for_principal.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     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     is("open" in indexedDB, true, "open() defined");
    16     is("openForPrincipal" in indexedDB, false, "openForPrincipal() not defined");
    18     is("deleteDatabase" in indexedDB, true, "deleteDatabase() defined");
    19     is("deleteForPrincipal" in indexedDB, false, "deleteForPrincipal() not defined");
    21     finishTest();
    22     yield undefined;
    23   }
    24   </script>
    25   <script type="text/javascript;version=1.7" src="helpers.js"></script>
    27 </head>
    29 <body onload="runTest();"></body>
    31 </html>

mercurial