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

Unified Diff: tests/html/indexeddb_3_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
Index: tests/html/indexeddb_3_test.dart
diff --git a/tests/html/indexeddb_3_test.dart b/tests/html/indexeddb_3_test.dart
index cd4663b5fcca1b1522600a93843b6ada36c94607..f443b80c41eb768f41eee8faf0e37da5207e9379 100644
--- a/tests/html/indexeddb_3_test.dart
+++ b/tests/html/indexeddb_3_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'));

Powered by Google App Engine
This is Rietveld 408576698