diff options
Diffstat (limited to 'WebCore/manual-tests/indexed-database.html')
-rw-r--r-- | WebCore/manual-tests/indexed-database.html | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/WebCore/manual-tests/indexed-database.html b/WebCore/manual-tests/indexed-database.html deleted file mode 100644 index da2a1e1..0000000 --- a/WebCore/manual-tests/indexed-database.html +++ /dev/null @@ -1,49 +0,0 @@ -<html> -<body> -<p>This is a test that only applies to IndexedDB. <span id=enabled>Our test for whether you have it enabled seems to have failed.</span></p> - -<p>Please follow these steps in order:</p> - -<p>First, click <a href="javascript: doOpen(true)">here</a> to open an indexedDB database. Look in the proper place in your file system (the place being specific to each port) and verify a file was created. You should be able to open the file up with sqlite and examine it that way as well.</p> - -<p>Next, close the browser, delete the file, replace it with some garbage, and make it read only to the user the browser is running as. Now click <a href="javascript: doOpen(false)">here</a>. You should get some sort of error.</p> - -<p>Close the browser, delete the file you made, and click <a href="javascript: doOpen(true)">here</a>. All should be well again.</p> - -<p>Status: <span id=status>...</span></p> - -<script> - -if (!('indexedDB' in window)) - document.getElementById("enabled").innerHTML = "<font color=red>Your build does NOT seem to have it enabled. So all code on this page is disabled.</font>"; -else - document.getElementById("enabled").innerHTML = "<font color=green>Your build seems to have it enabled.</font>"; - -function status(str, color) -{ - if (color) - str = "<font color='" + color + "'>" + str + "</font>"; - document.getElementById("status").innerHTML = str; -} - -function doOpen(expectSuccess) -{ - status("Calling open"); - request = indexedDB.open("xyz"); - request.onsuccess = function() { - if (expectSuccess) - status("Open successful", "green"); - else - status("Open was successful...but shouldn't have been", "red"); - }; - request.onerror = function() { - if (expectSuccess) - status("Unexpected error: " + event.message, "red"); - else - status("Expected error: " + event.message, "green"); - }; -} - -</script> -</body> -</html> |