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

Unified Diff: tests/standalone/io/mime_multipart_parser_test.dart

Issue 10829459: Deprecate Math object in corelib in favor of dart:math library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 4 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
« no previous file with comments | « tests/standalone/io/http_server_socket_test.dart ('k') | tests/standalone/io/options_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/mime_multipart_parser_test.dart
diff --git a/tests/standalone/io/mime_multipart_parser_test.dart b/tests/standalone/io/mime_multipart_parser_test.dart
index 8c1fdcc0a861695a108096f75cc5d80db0aaebe9..32af07a9ae38f34523e86ab48f2864a109f2b63a 100644
--- a/tests/standalone/io/mime_multipart_parser_test.dart
+++ b/tests/standalone/io/mime_multipart_parser_test.dart
@@ -2,6 +2,8 @@
// 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.
+#import('dart:math');
+
#source("../../../runtime/bin/http_parser.dart");
#source("../../../runtime/bin/mime_multipart_parser.dart");
@@ -64,7 +66,7 @@ void testParse(String message,
int unparsed;
for (int pos = 0; pos < data.length; pos += chunkSize) {
int remaining = data.length - pos;
- int writeLength = Math.min(chunkSize, remaining);
+ int writeLength = min(chunkSize, remaining);
written += writeLength;
int parsed =
parser.update(data.getRange(pos, writeLength), 0, writeLength);
« no previous file with comments | « tests/standalone/io/http_server_socket_test.dart ('k') | tests/standalone/io/options_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698