| 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);
|
|
|