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

Unified Diff: tests/html/blob_constructor_test.dart

Issue 11184007: Support new named arguments. (Closed) Base URL: https://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
diff --git a/tests/html/blob_constructor_test.dart b/tests/html/blob_constructor_test.dart
index b3a633a151555fd7702b167a8905c43b87740e82..788d4d58f31875f2d181bf9dbc77fa309b6841e7 100644
--- a/tests/html/blob_constructor_test.dart
+++ b/tests/html/blob_constructor_test.dart
@@ -16,23 +16,27 @@ main() {
});
test('type1', () {
- var b = new Blob(['Harry'], type: 'text');
+ // OPTIONALS var b = new Blob(['Harry'], type: 'text');
+ var b = new Blob(['Harry'], 'text');
expect(b.size, 5);
expect(b.type, 'text');
});
test('endings1', () {
- var b = new Blob(['A\nB\n'], endings: 'transparent');
+ // OPTIONALS var b = new Blob(['A\nB\n'], endings: 'transparent');
+ var b = new Blob(['A\nB\n'], null, 'transparent');
expect(b.size, 4);
});
test('endings2', () {
- var b = new Blob(['A\nB\n'], endings: 'native');
+ // 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);
});
test('twoStrings', () {
- var b = new Blob(['123', 'xyz'], type: 'text/plain;charset=UTF-8');
+ // OPTIONALS var b = new Blob(['123', 'xyz'], type: 'text/plain;charset=UTF-8');
+ var b = new Blob(['123', 'xyz'], 'text/plain;charset=UTF-8');
expect(b.size, 6);
});

Powered by Google App Engine
This is Rietveld 408576698