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

Unified Diff: tests/html/blob_constructor_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/blob_constructor_test.dart
===================================================================
--- tests/html/blob_constructor_test.dart (revision 14114)
+++ tests/html/blob_constructor_test.dart (working copy)
@@ -12,7 +12,7 @@
test('basic', () {
var b = new Blob([]);
- expect(b.size, 0);
+ expect(b.size, isZero);
});
test('type1', () {
@@ -31,7 +31,8 @@
test('endings2', () {
// OPTIONALS var b = new Blob(['A\nB\n'], endings: 'native');
var b = new Blob(['A\nB\n'], null, 'native');
- expect(b.size, (x) => x == 4 || x == 6);
+ expect(b.size, (x) => x == 4 || x == 6,
+ reason: "b.size should be 4 or 6");
});
test('twoStrings', () {
@@ -43,7 +44,7 @@
test('fromBlob1', () {
var b1 = new Blob([]);
var b2 = new Blob([b1]);
- expect(b2.size, 0);
+ expect(b2.size, isZero);
});
test('fromBlob2', () {

Powered by Google App Engine
This is Rietveld 408576698