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

Unified Diff: tests/standalone/io/process_stderr_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
Index: tests/standalone/io/process_stderr_test.dart
diff --git a/tests/standalone/io/process_stderr_test.dart b/tests/standalone/io/process_stderr_test.dart
index 8c57880ac5a45d10c0957b6b97a53398c48268ac..11141e32630506bec7d1a4cbc9e59d3585266054 100644
--- a/tests/standalone/io/process_stderr_test.dart
+++ b/tests/standalone/io/process_stderr_test.dart
@@ -9,8 +9,10 @@
// VMOptions=--short_socket_write
// VMOptions=--short_socket_read --short_socket_write
-#import("dart:io");
-#source("process_test_util.dart");
+#import('dart:io');
+#import('dart:math');
+
+#source('process_test_util.dart');
void test(Process process, int expectedExitCode) {
// Wait for the process to start and then interact with it.
@@ -27,7 +29,7 @@ void test(Process process, int expectedExitCode) {
void readData() {
buffer.addAll(input.read());
for (int i = received;
- i < Math.min(data.length, buffer.length) - 1;
+ i < min(data.length, buffer.length) - 1;
i++) {
Expect.equals(data[i], buffer[i]);
}
« no previous file with comments | « tests/standalone/io/process_check_arguments_script.dart ('k') | tests/standalone/io/process_stdout_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698