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

Unified Diff: tests/html/indexeddb_2_test.dart

Issue 218273002: Upgrading tests with unittest deprecations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 028dc8b8cbe370116a4b0c86119c572550fe6a31..efd4d80def7be385966ea1b0c68905c557e9e5a4 100644
--- a/tests/html/indexeddb_2_test.dart
+++ b/tests/html/indexeddb_2_test.dart
@@ -23,19 +23,19 @@ testReadWrite(key, value, check,
var db;
// Delete any existing DBs.
- return html.window.indexedDB.deleteDatabase(dbName).then(expectAsync1((_) {
+ return html.window.indexedDB.deleteDatabase(dbName).then(expectAsync((_) {
return html.window.indexedDB.open(dbName, version: version,
onUpgradeNeeded: createObjectStore);
- })).then(expectAsync1((result) {
+ })).then(expectAsync((result) {
db = result;
var transaction = db.transactionList([storeName], 'readwrite');
transaction.objectStore(storeName).put(value, key);
return transaction.completed;
- })).then(expectAsync1((db) {
+ })).then(expectAsync((db) {
var transaction = db.transaction(storeName, 'readonly');
return transaction.objectStore(storeName).getObject(key);
- })).then(expectAsync1((object) {
+ })).then(expectAsync((object) {
db.close();
check(value, object);
})).catchError((e) {

Powered by Google App Engine
This is Rietveld 408576698