dom/indexedDB/test/browser_permissionsPrompt.html
author Kyle Huey <khuey@kylehuey.com>
Fri, 29 Jun 2012 09:48:35 -0700
changeset 97937 8f307e676f320f0c9985bc44634c4349aa05351e
parent 97932 939191463ed488cfadc032a4fb57e2d28eaf2dfe
child 99176 e2fd625c1e79c85c99e344ee6f980c6223f35556
permissions -rw-r--r--
Bug 726378: Unprefix IndexedDB. r=sicking

<!--
  Any copyright is dedicated to the Public Domain.
  http://creativecommons.org/publicdomain/zero/1.0/
-->
<html>
  <head>
    <title>Indexed Database Test</title>

    <script type="text/javascript;version=1.7">
      function testSteps()
      {
        const name = window.location.pathname;
        const description = "My Test Database";

        let request = indexedDB.open(name, 1, description);
        request.onerror = grabEventAndContinueHandler;
        request.onsuccess = grabEventAndContinueHandler;
        let event = yield;

        if (event.type == "success") {
          testResult = event.target.result;
        }
        else {
          testException = event.target.error.name;
        }

        event.preventDefault();

        finishTest()
        yield;
      }
    </script>

    <script type="text/javascript;version=1.7" src="browserHelpers.js"></script>

  </head>

  <body onload="runTest();" onunload="finishTestNow();"></body>

</html>