browser_forgetThisSiteGet.html 904 B

12345678910111213141516171819202122232425262728293031323334353637
  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 Test</title>
  8. <script type="text/javascript;version=1.7">
  9. function testSteps()
  10. {
  11. let request = indexedDB.open("browser_forgetThisSite.js");
  12. request.onerror = grabEventAndContinueHandler;
  13. request.onsuccess = grabEventAndContinueHandler;
  14. let event = yield undefined;
  15. if (event.type == "error") {
  16. testException = event.target.error.name;
  17. }
  18. else {
  19. let db = event.target.result;
  20. testResult = db.version;
  21. }
  22. finishTest()
  23. yield undefined;
  24. }
  25. </script>
  26. <script type="text/javascript;version=1.7" src="browserHelpers.js"></script>
  27. </head>
  28. <body onload="runTest();" onunload="finishTestNow();"></body>
  29. </html>