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

Unified Diff: tests/html/indexeddb_2_test.dart

Issue 16958006: Added async_helper and fixed broken asynchronous test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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
« no previous file with comments | « tests/async_helper.dart ('k') | tests/isolate/global_error_handler2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/indexeddb_2_test.dart
diff --git a/tests/html/indexeddb_2_test.dart b/tests/html/indexeddb_2_test.dart
index 03a0fd4a673aff90f8c183e420bc98b2d63fbd6f..d197585e49c0eba82b61e41e348d442b1e58c791 100644
--- a/tests/html/indexeddb_2_test.dart
+++ b/tests/html/indexeddb_2_test.dart
@@ -23,22 +23,22 @@ testReadWrite(key, value, check,
var db;
// Delete any existing DBs.
- return html.window.indexedDB.deleteDatabase(dbName).then((_) {
+ return html.window.indexedDB.deleteDatabase(dbName).then(expectAsync1((_) {
return html.window.indexedDB.open(dbName, version: version,
onUpgradeNeeded: createObjectStore);
- }).then((result) {
+ })).then(expectAsync1((result) {
db = result;
var transaction = db.transaction([storeName], 'readwrite');
transaction.objectStore(storeName).put(value, key);
return transaction.completed;
- }).then((db) {
+ })).then(expectAsync1((db) {
var transaction = db.transaction(storeName, 'readonly');
return transaction.objectStore(storeName).getObject(key);
- }).then((object) {
+ })).then(expectAsync1((object) {
db.close();
check(value, object);
- }).catchError((e) {
+ })).catchError((e) {
if (db != null) {
db.close();
}
« no previous file with comments | « tests/async_helper.dart ('k') | tests/isolate/global_error_handler2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698