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

Unified Diff: pkg/unittest/interactive_html_config.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 | « pkg/intl/number_format.dart ('k') | runtime/bin/file_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/interactive_html_config.dart
diff --git a/pkg/unittest/interactive_html_config.dart b/pkg/unittest/interactive_html_config.dart
index d0ceb0b3533eb3c4dfcbea03eca1d937341dc828..c3e88dedc9a74388816ca5525ffe8286f8dbd389 100644
--- a/pkg/unittest/interactive_html_config.dart
+++ b/pkg/unittest/interactive_html_config.dart
@@ -15,6 +15,7 @@
// IFrame for failed tests/keep IFrame for all tests.
#import('dart:html');
+#import('dart:math');
#import('unittest.dart');
/** The messages exchanged between master and slave. */
@@ -42,7 +43,7 @@ class _Message {
messageType = msg.substring(0, idx);
++idx;
int idx2 = msg.indexOf(' ', idx);
- elapsed = Math.parseInt(msg.substring(idx, idx2));
+ elapsed = parseInt(msg.substring(idx, idx2));
++idx2;
body = msg.substring(idx2);
}
@@ -90,7 +91,7 @@ class SlaveInteractiveHtmlConfiguration extends Configuration {
String search = window.location.search;
int pos = search.indexOf('t=');
String ids = search.substring(pos+2);
- int id = Math.parseInt(ids);
+ int id = parseInt(ids);
setSoloTest(id);
runTests();
}
@@ -287,7 +288,7 @@ class MasterInteractiveHtmlConfiguration extends Configuration {
for (Element t in tests.elements) {
cb = t.query('.testselect');
cb.checked = state;
- var testId = Math.parseInt(t.id.substring(_testIdPrefix.length));
+ var testId = parseInt(t.id.substring(_testIdPrefix.length));
if (state) {
enableTest(testId);
} else {
« no previous file with comments | « pkg/intl/number_format.dart ('k') | runtime/bin/file_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698