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; |