test_open_for_principal.html 883 B

1234567891011121314151617181920212223242526272829303132
  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>
  8. <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  9. <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
  10. <script type="text/javascript;version=1.7">
  11. function testSteps()
  12. {
  13. is("open" in indexedDB, true, "open() defined");
  14. is("openForPrincipal" in indexedDB, false, "openForPrincipal() not defined");
  15. is("deleteDatabase" in indexedDB, true, "deleteDatabase() defined");
  16. is("deleteForPrincipal" in indexedDB, false, "deleteForPrincipal() not defined");
  17. finishTest();
  18. yield undefined;
  19. }
  20. </script>
  21. <script type="text/javascript;version=1.7" src="helpers.js"></script>
  22. </head>
  23. <body onload="runTest();"></body>
  24. </html>