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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java

Issue 613673006: Support more checked mode compile time errors in analysis engine. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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
Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
index 0228aed96f3ba8e3b638df2d942b409010dc8510..220830e49f78fc2e3b54402a156d587d7dd71480 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
@@ -2844,30 +2844,6 @@ public class CompileTimeErrorCodeTest extends ResolverTestCase {
// We cannot verify resolution with undefined labels
}
- public void test_listElementTypeNotAssignable() throws Exception {
- Source source = addSource(createSource(//
- "var v = const <String> [42];"));
- resolve(source);
- assertErrors(source, CompileTimeErrorCode.LIST_ELEMENT_TYPE_NOT_ASSIGNABLE);
- verify(source);
- }
-
- public void test_mapKeyTypeNotAssignable() throws Exception {
- Source source = addSource(createSource(//
- "var v = const <String, int > {1 : 2};"));
- resolve(source);
- assertErrors(source, CompileTimeErrorCode.MAP_KEY_TYPE_NOT_ASSIGNABLE);
- verify(source);
- }
-
- public void test_mapValueTypeNotAssignable() throws Exception {
- Source source = addSource(createSource(//
- "var v = const <String, String> {'a' : 2};"));
- resolve(source);
- assertErrors(source, CompileTimeErrorCode.MAP_VALUE_TYPE_NOT_ASSIGNABLE);
- verify(source);
- }
-
public void test_memberWithClassName_field() throws Exception {
Source source = addSource(createSource(//
"class A {",

Powered by Google App Engine
This is Rietveld 408576698