Chromium Code Reviews| Index: tests/html/indexeddb_1_test.dart |
| diff --git a/tests/html/indexeddb_1_test.dart b/tests/html/indexeddb_1_test.dart |
| index f622788223e65d81e8ede13cfa0154cddd234c22..0c876e72e3f3d2e1ae8027dd8284120660f492cd 100644 |
| --- a/tests/html/indexeddb_1_test.dart |
| +++ b/tests/html/indexeddb_1_test.dart |
| @@ -34,7 +34,7 @@ testReadWrite(key, value, check, |
| request.on.error.add(fail); |
| } |
| - step1() { |
| + step1([e]) { |
|
sra1
2012/06/18 16:48:32
This is a bit odd...
|
| var transaction = db.transaction([storeName], 'readwrite'); |
| var request = transaction.objectStore(storeName).put(value, key); |
| request.on.success.add(expectAsync1(step2)); |
| @@ -51,7 +51,10 @@ testReadWrite(key, value, check, |
| request.on.success.add( |
| expectAsync1((e) { |
| createObjectStore(); |
| - step1(); |
| + |
| + var transaction = e.target.result; |
| + transaction.on.complete.add(expectAsync1(step1)); |
|
sra1
2012/06/18 16:48:32
... instead use
(e) => step1()
|
| + transaction.on.error.add(fail); |
| }) |
| ); |
| request.on.error.add(fail); |