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

Unified Diff: tests/html/indexeddb_4_test.dart

Issue 10544208: Fix indexeddb tests to implement proper setVersion semantics. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« tests/html/indexeddb_1_test.dart ('K') | « tests/html/indexeddb_3_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/indexeddb_4_test.dart
diff --git a/tests/html/indexeddb_4_test.dart b/tests/html/indexeddb_4_test.dart
index bc43835a24ac64c2a004332bdf420754b67564d7..4c25d3b6050cc75c70b2b670ef198043d27bf6db 100644
--- a/tests/html/indexeddb_4_test.dart
+++ b/tests/html/indexeddb_4_test.dart
@@ -32,7 +32,10 @@ class Test {
db.deleteObjectStore(STORE_NAME);
} catch (IDBDatabaseException e) { }
db.createObjectStore(STORE_NAME);
- writeItems(0);
+
+ var transaction = e.target.result;
+ transaction.on.complete.add(expectAsync1((e) => writeItems(0)));
+ transaction.on.error.add(fail);
})
);
request.on.error.add(fail('setVersion error'));
« tests/html/indexeddb_1_test.dart ('K') | « tests/html/indexeddb_3_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698