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

Unified Diff: pkg/unittest/html_layout_config.dart

Issue 10913271: Move parseInt parseDouble to int/double classes as a static method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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: pkg/unittest/html_layout_config.dart
diff --git a/pkg/unittest/html_layout_config.dart b/pkg/unittest/html_layout_config.dart
index c9bb15434617f65e69d805d9400314c27f9b41ca..198a50e40f0ce9c9c80f0eb856eb86813dafbf5e 100644
--- a/pkg/unittest/html_layout_config.dart
+++ b/pkg/unittest/html_layout_config.dart
@@ -48,7 +48,7 @@ class _Message {
body = msg;
} else {
messageType = match.group(1);
- elapsed = parseInt(match.group(2));
+ elapsed = int.parse(match.group(2));
body = match.group(3);
}
}
@@ -96,7 +96,7 @@ class ChildHtmlConfiguration extends Configuration {
String search = window.location.search;
int pos = search.indexOf('t=');
String ids = search.substring(pos+2);
- int id = parseInt(ids);
+ int id = int.parse(ids);
setSoloTest(id);
runTests();
}

Powered by Google App Engine
This is Rietveld 408576698