dom/indexedDB/test/browser_permissionsPrompt.html
author Blake Kaplan <mrbkap@gmail.com>
Tue, 05 Apr 2016 18:58:00 +0200
changeset 323844 11a1576c661ac9f9f693b7f3dcf03782009c55ba
parent 242710 aeb8189b138a862189affeae64d6415b0d29bdcf
child 348709 29a171c7f26dcff9326ffd950e5446ee1f9d0d7b
permissions -rw-r--r--
Bug 1252738 - Stop using CPOWs in this test. r=felipc, a=test-only

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

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

        let request = indexedDB.open(name, { version: 1,
                                             storage: "persistent" });
        request.onerror = grabEventAndContinueHandler;
        request.onsuccess = grabEventAndContinueHandler;
        let event = yield undefined;

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

        event.preventDefault();

        finishTest()
        yield undefined;
      }
    </script>

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

  </head>

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

</html>