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

Unified Diff: tests/html/indexeddb_4_test.dart

Issue 11275054: Modified unittest to use new argument syntax. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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_4_test.dart
===================================================================
--- tests/html/indexeddb_4_test.dart (revision 14156)
+++ tests/html/indexeddb_4_test.dart (working copy)
@@ -12,7 +12,7 @@
class Test {
fail(message) => (e) {
guardAsync(() {
- Expect.fail('IndexedDB failure: $message');
+ expect(false, isTrue, reason: 'IndexedDB failure: $message');
});
};
@@ -99,16 +99,16 @@
if (firstKey == null) firstKey = cursor.key;
lastKey = cursor.key;
itemCount += 1;
- Expect.equals('Item ${cursor.key}', cursor.value);
+ expect(cursor.value, 'Item ${cursor.key}');
cursor.continueFunction();
} else {
// Done
- Expect.equals(expectedFirst, firstKey);
- Expect.equals(expectedLast, lastKey);
+ expect(firstKey, expectedFirst);
+ expect(lastKey, expectedLast);
if (expectedFirst == null) {
- Expect.equals(0, itemCount);
+ expect(itemCount, isZero);
} else {
- Expect.equals(expectedLast - expectedFirst + 1, itemCount);
+ expect(itemCount, expectedLast - expectedFirst + 1);
}
}
},

Powered by Google App Engine
This is Rietveld 408576698