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

Unified Diff: pkg/http_server/test/http_multipart_test.dart

Issue 18438005: Move MimeMultipartTransformer and HttpBodyHandler to mime and http_server packages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed _BufferList copy and MimeMultipartException reference in pub. Created 7 years, 5 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: pkg/http_server/test/http_multipart_test.dart
diff --git a/tests/standalone/io/http_multipart_test.dart b/pkg/http_server/test/http_multipart_test.dart
similarity index 96%
rename from tests/standalone/io/http_multipart_test.dart
rename to pkg/http_server/test/http_multipart_test.dart
index 45cdec9d04c26c4abdebb5f05ef81af94d8e3e14..ae9b3b80106d16bd5a77e8b30e6ff8bc3c89b92b 100644
--- a/tests/standalone/io/http_multipart_test.dart
+++ b/pkg/http_server/test/http_multipart_test.dart
@@ -1,13 +1,10 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-//
-// VMOptions=
-// VMOptions=--short_socket_read
-// VMOptions=--short_socket_write
-// VMOptions=--short_socket_read --short_socket_write
-import "package:expect/expect.dart";
+import "package:http_server/http_server.dart";
+import "package:mime/mime.dart";
+import "package:unittest/unittest.dart";
import 'dart:async';
import 'dart:io';
@@ -76,7 +73,7 @@ void postDataTest(List<int> message,
.fold([], (l, f) => l..add(f))
.then(Future.wait)
.then((fields) {
- Expect.listEquals(expectedFields, fields);
+ expect(fields, equals(expectedFields));
request.response.close().then((_) => server.close());
});
});

Powered by Google App Engine
This is Rietveld 408576698