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

Unified Diff: tests/html/indexeddb_2_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_2_test.dart
diff --git a/tests/html/indexeddb_2_test.dart b/tests/html/indexeddb_2_test.dart
index 4c518d254a2568f8fd14c6cdda10c65433ae1041..cc1a27720a707d9babb1f90e9cc0d038b2ff64be 100644
--- a/tests/html/indexeddb_2_test.dart
+++ b/tests/html/indexeddb_2_test.dart
@@ -39,7 +39,7 @@ testReadWrite(key, value, check,
request.on.error.add(fail);
}
- step1() {
+ step1([e]) {
var transaction = db.transaction([storeName], 'readwrite');
var request = transaction.objectStore(storeName).put(value, key);
request.on.success.add(expectAsync1(step2));
@@ -56,7 +56,10 @@ testReadWrite(key, value, check,
request.on.success.add(
expectAsync1((e) {
createObjectStore();
- step1();
+
+ var transaction = e.target.result;
+ transaction.on.complete.add(expectAsync1(step1));
+ transaction.on.error.add(fail);
})
);
request.on.error.add(fail);

Powered by Google App Engine
This is Rietveld 408576698