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

Unified Diff: tests/standalone/io/process_check_arguments_script.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/options_test.dart ('k') | tests/standalone/io/process_stderr_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/process_check_arguments_script.dart
diff --git a/tests/standalone/io/process_check_arguments_script.dart b/tests/standalone/io/process_check_arguments_script.dart
index ee3b4ea4562980e2f499b66b22a398d91caf7718..1898356605a16af3cb90c8051136c0a18f509762 100644
--- a/tests/standalone/io/process_check_arguments_script.dart
+++ b/tests/standalone/io/process_check_arguments_script.dart
@@ -4,12 +4,13 @@
//
// Utility script to check that arguments are correctly passed from
// one dart process to another using the dart:io process interface.
+#import('dart:math');
main() {
var options = new Options();
Expect.isTrue(options.script.endsWith('process_check_arguments_script.dart'));
- var expected_num_args = Math.parseInt(options.arguments[0]);
- var contains_quote = Math.parseInt(options.arguments[1]);
+ var expected_num_args = parseInt(options.arguments[0]);
+ var contains_quote = parseInt(options.arguments[1]);
Expect.equals(expected_num_args, options.arguments.length);
for (var i = 2; i < options.arguments.length; i++) {
Expect.isTrue((contains_quote == 0) || options.arguments[i].contains('"'));
« no previous file with comments | « tests/standalone/io/options_test.dart ('k') | tests/standalone/io/process_stderr_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698