Index: tests/corelib/stopwatch_test.dart |
diff --git a/tests/corelib/stopwatch_test.dart b/tests/corelib/stopwatch_test.dart |
index fe37b42de8c2f847ec74f61550773a6ff2954fc9..b688ab3f377fad73a2b2a4aa0e64b9f83e73e668 100644 |
--- a/tests/corelib/stopwatch_test.dart |
+++ b/tests/corelib/stopwatch_test.dart |
@@ -5,13 +5,12 @@ |
// Dart test program for testing stopwatch support. |
library stopwatch_test; |
-import 'dart:math'; |
class StopwatchTest { |
static bool checkTicking(Stopwatch sw) { |
sw.start(); |
for (int i = 0; i < 10000; i++) { |
- parseInt(i.toString()); |
+ int.parse(i.toString()); |
if (sw.elapsedTicks > 0) { |
break; |
} |
@@ -27,7 +26,7 @@ class StopwatchTest { |
sw2.start(); |
int sw2LastElapsed = 0; |
for (int i = 0; i < 100000; i++) { |
- parseInt(i.toString()); |
+ int.parse(i.toString()); |
int v2 = sw.elapsedTicks; |
if (v1 != v2) { |
return false; |
@@ -49,7 +48,7 @@ class StopwatchTest { |
Stopwatch sw = new Stopwatch(); |
sw.start(); |
for (int i = 0; i < 100000; i++) { |
- parseInt(i.toString()); |
+ int.parse(i.toString()); |
if (sw.elapsedTicks > 0) { |
break; |
} |
@@ -58,7 +57,7 @@ class StopwatchTest { |
int initial = sw.elapsedTicks; |
sw.start(); |
for (int i = 0; i < 100000; i++) { |
- parseInt(i.toString()); |
+ int.parse(i.toString()); |
if (sw.elapsedTicks > initial) { |
break; |
} |
@@ -71,7 +70,7 @@ class StopwatchTest { |
Stopwatch sw = new Stopwatch(); |
sw.start(); |
for (int i = 0; i < 100000; i++) { |
- parseInt(i.toString()); |
+ int.parse(i.toString()); |
if (sw.elapsedTicks > 0) { |
break; |
} |
@@ -81,14 +80,14 @@ class StopwatchTest { |
Expect.equals(0, sw.elapsedTicks); |
sw.start(); |
for (int i = 0; i < 100000; i++) { |
- parseInt(i.toString()); |
+ int.parse(i.toString()); |
if (sw.elapsedTicks > 0) { |
break; |
} |
} |
sw.reset(); |
for (int i = 0; i < 100000; i++) { |
- parseInt(i.toString()); |
+ int.parse(i.toString()); |
if (sw.elapsedTicks > 0) { |
break; |
} |