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

Unified Diff: tests/html/form_data_test.dart

Issue 11473004: Making FormData able to add Blobs and Files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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
« no previous file with comments | « sdk/lib/html/idl/dart/dart.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/form_data_test.dart
diff --git a/tests/html/form_data_test.dart b/tests/html/form_data_test.dart
index 61f01477d4f6af88cb6900ee550e0e0cf7566527..6ea53810970239f06301717ad1c3bdba4d55b09f 100644
--- a/tests/html/form_data_test.dart
+++ b/tests/html/form_data_test.dart
@@ -29,10 +29,18 @@ void main() {
test('appendTest', () {
var form = new FormData();
- form.append('test', '1', 'foo');
- form.append('username', 'Elmo', 'foo');
- form.append('address', '1 Sesame Street', 'foo');
+ form.append('test', '1');
+ form.append('username', 'Elmo');
+ form.append('address', '1 Sesame Street');
form.append('password', '123456', 'foo');
expect(form, isNotNull);
});
+
+ test('appendBlob', () {
+ var form = new FormData();
+ var blob = new Blob(
+ ['Indescribable... Indestructible! Nothing can stop it!'],
+ 'text/plain');
+ form.append('theBlob', blob, 'theBlob.txt');
+ });
}
« no previous file with comments | « sdk/lib/html/idl/dart/dart.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698