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

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: 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') | runtime/bin/websocket_impl.dart » ('J')
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 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 {
« no previous file with comments | « no previous file | corelib/src/bool.dart » ('j') | runtime/bin/websocket_impl.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698