OLD | NEW |
(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> |
OLD | NEW |