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

Unified Diff: utils/tests/pub/test_pub.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 | « utils/template/template.dart ('k') | utils/tests/pub/yaml_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/test_pub.dart
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart
index 9e8e9d373d0d40e05b10400f2673a2ff11e7311d..d272cb7f026b891f2dd58947330d164618d3723a 100644
--- a/utils/tests/pub/test_pub.dart
+++ b/utils/tests/pub/test_pub.dart
@@ -13,6 +13,7 @@
#import('dart:io');
#import('dart:isolate');
#import('dart:json');
+#import('dart:math');
#import('dart:uri');
#import('../../../pkg/unittest/unittest.dart');
@@ -364,7 +365,7 @@ void _validateOutputString(String expectedText, List<String> actual) {
// to expect zero lines of output, not a single empty line.
expected.removeLast();
- final length = Math.min(expected.length, actual.length);
+ final length = min(expected.length, actual.length);
for (var i = 0; i < length; i++) {
if (expected[i].trim() != actual[i].trim()) {
Expect.fail(
« no previous file with comments | « utils/template/template.dart ('k') | utils/tests/pub/yaml_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698