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

Unified Diff: tests/language/math_vm_test.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 | « tests/language/intrinsified_methods_test.dart ('k') | tests/lib/math/math2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/math_vm_test.dart
diff --git a/tests/language/math_vm_test.dart b/tests/language/math_vm_test.dart
index a6f3b746a3a3fcb4e3e853fc28c8c1751f0e965d..da304b6ba3036dd7a55c49de43d9e201c6e0cd60 100644
--- a/tests/language/math_vm_test.dart
+++ b/tests/language/math_vm_test.dart
@@ -4,6 +4,8 @@
// Tests that the VM does not crash on weird corner cases of class Math.
// VMOptions=--optimization_counter_threshold=100
+#import('dart:math');
+
class FakeNumber {
const FakeNumber();
void toDouble() {}
@@ -12,7 +14,7 @@ class FakeNumber {
class MathTest {
static bool testParseInt(x) {
try {
- Math.parseInt(x); // Expects string.
+ parseInt(x); // Expects string.
return true;
} catch (var e) {
return false;
@@ -21,7 +23,7 @@ class MathTest {
static bool testSqrt(x) {
try {
- Math.sqrt(x); // Expects number.
+ sqrt(x); // Expects number.
return true;
} catch (var e) {
return false;
« no previous file with comments | « tests/language/intrinsified_methods_test.dart ('k') | tests/lib/math/math2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698