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

Unified Diff: tests/corelib/stopwatch_test.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/corelib/sort_helper.dart ('k') | tests/corelib/string_base_vm_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « tests/corelib/sort_helper.dart ('k') | tests/corelib/string_base_vm_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698