summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/extensions/api_test/storage/tab.html
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/data/extensions/api_test/storage/tab.html')
-rw-r--r--chrome/test/data/extensions/api_test/storage/tab.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/chrome/test/data/extensions/api_test/storage/tab.html b/chrome/test/data/extensions/api_test/storage/tab.html
new file mode 100644
index 0000000..b52fdc3
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/storage/tab.html
@@ -0,0 +1,17 @@
+<script src="api_test.js"></script>
+<script>
+ // Check that the localstorage stuff we stored is still there.
+ expectTrue(localStorage.foo == "bar");
+
+ // Check that the database stuff we stored is still there.
+ var db = window.openDatabase("mydb2", "1.0", "database test", 2048);
+ db.transaction(function(tx) {
+ tx.executeSql("select body from note", [], function(tx, results) {
+ expectTrue(results.rows.length == 1);
+ expectTrue(results.rows.item(0).body == "hotdog");
+ allTestsSucceeded();
+ });
+ }, function(error) {
+ fail(error.message);
+ });
+</script>