Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1995)

Unified Diff: chrome/test/data/extensions/api_test/storage/tab.html

Issue 173306: Force databases and localstorage to be enabled extensions. (Closed)
Patch Set: cleanup Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/storage/tab.html
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 0000000000000000000000000000000000000000..b52fdc3f2968c6dd506ae732ad76b180d5e084f2
--- /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>

Powered by Google App Engine
This is Rietveld 408576698