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 4e70c706fe1947f208fa3a63009ee7818c165e0b..7bd69600a43796a631ae27d9558ac07d7d199972 100644 |
--- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java |
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java |
@@ -1946,7 +1946,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 |
@@ -1959,7 +1958,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); |
@@ -2377,13 +2375,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 { |
@@ -2416,12 +2412,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 { |