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

Unified Diff: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java

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 | « no previous file | corelib/src/bool.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
index a2476d1435624320a246a5a6bcc7a6f61c6423a0..581c4430bf1973d678cb860cac06a635bb858d40 100644
--- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
@@ -1959,7 +1959,6 @@ public class TypeAnalyzerCompilerTest extends CompilerTestCase {
" var v5 = 1.0 + 2.0;",
" var v6 = new Map<String, int>();",
" var v7 = new Map().length;",
- " var v8 = Math.random();",
"}",
"");
// prepare expected results
@@ -1972,7 +1971,6 @@ public class TypeAnalyzerCompilerTest extends CompilerTestCase {
expectedList.add("double");
expectedList.add("Map<String, int>");
expectedList.add("int");
- expectedList.add("double");
// check each "v" type
for (int i = 0; i < expectedList.size(); i++) {
String expectedTypeString = expectedList.get(i);
@@ -2390,13 +2388,11 @@ public class TypeAnalyzerCompilerTest extends CompilerTestCase {
"// filler filler filler filler filler filler filler filler filler filler",
"class A {",
" final v1 = 123;",
- " final v2 = Math.random();",
- " final v3 = 1 + 2.0;",
+ " final v2 = 1 + 2.0;",
"}",
"");
assertInferredElementTypeString(testUnit, "v1", "int");
assertInferredElementTypeString(testUnit, "v2", "double");
- assertInferredElementTypeString(testUnit, "v3", "double");
}
public void test_typesPropagation_field_inClass_const() throws Exception {
@@ -2429,12 +2425,10 @@ public class TypeAnalyzerCompilerTest extends CompilerTestCase {
analyzeLibrary(
"// filler filler filler filler filler filler filler filler filler filler",
"final v1 = 123;",
- "final v2 = Math.random();",
- "final v3 = 1 + 2.0;",
+ "final v2 = 1 + 2.0;",
"");
assertInferredElementTypeString(testUnit, "v1", "int");
assertInferredElementTypeString(testUnit, "v2", "double");
- assertInferredElementTypeString(testUnit, "v3", "double");
}
public void test_typesPropagation_field_topLevel_const() throws Exception {
« no previous file with comments | « no previous file | corelib/src/bool.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698