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

Unified Diff: tests/html/indexeddb_3_test.dart

Issue 27490003: Wait for transaction to complete, before continuing. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/indexeddb_3_test.dart
diff --git a/tests/html/indexeddb_3_test.dart b/tests/html/indexeddb_3_test.dart
index 7bdde5d0cd341765dbb14257236b8d5ba4e71bbd..f3027e79dc0959023c591971940904612c5250b6 100644
--- a/tests/html/indexeddb_3_test.dart
+++ b/tests/html/indexeddb_3_test.dart
@@ -25,7 +25,8 @@ Future<Database> createAndOpenDb() {
Future<Database> writeItems(Database db) {
Future<Object> write(index) {
var transaction = db.transaction(STORE_NAME, 'readwrite');
- return transaction.objectStore(STORE_NAME).put('Item $index', index);
+ return transaction.objectStore(STORE_NAME).put('Item $index', index)
+ .then((_) => transaction.onComplete.first);
}
var future = write(0);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698