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

Side by Side 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, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 <script src="api_test.js"></script>
2 <script>
3 // Check that the localstorage stuff we stored is still there.
4 expectTrue(localStorage.foo == "bar");
5
6 // Check that the database stuff we stored is still there.
7 var db = window.openDatabase("mydb2", "1.0", "database test", 2048);
8 db.transaction(function(tx) {
9 tx.executeSql("select body from note", [], function(tx, results) {
10 expectTrue(results.rows.length == 1);
11 expectTrue(results.rows.item(0).body == "hotdog");
12 allTestsSucceeded();
13 });
14 }, function(error) {
15 fail(error.message);
16 });
17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698