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

Unified Diff: compiler/javatests/com/google/dart/compiler/resolver/NegativeResolverTest.java

Issue 11260031: Issue 6202. Remove support for 'Dynamic'. Add Clean Up to rename to 'dynamic'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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: compiler/javatests/com/google/dart/compiler/resolver/NegativeResolverTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/resolver/NegativeResolverTest.java b/compiler/javatests/com/google/dart/compiler/resolver/NegativeResolverTest.java
index abf0f485b4206816c8f1f93941e7b38066f64fc4..bba5949b7accfe132054c141158fd4e254ab0a87 100644
--- a/compiler/javatests/com/google/dart/compiler/resolver/NegativeResolverTest.java
+++ b/compiler/javatests/com/google/dart/compiler/resolver/NegativeResolverTest.java
@@ -898,18 +898,18 @@ public class NegativeResolverTest extends CompilerTestCase {
};
}
- public void test_blackListed_Dynamic() throws Exception {
+ public void test_blackListed_dynamic() throws Exception {
checkSourceErrors(
makeCode(
"// filler filler filler filler filler filler filler filler filler filler",
- "class A extends Dynamic {",
+ "class A extends dynamic {",
"}",
- "class B implements Dynamic {",
+ "class B implements dynamic {",
"}"),
errEx(ResolverErrorCode.BLACK_LISTED_EXTENDS, 2, 17, 7),
errEx(ResolverErrorCode.BLACK_LISTED_IMPLEMENTS, 4, 20, 7));
- assertEquals("'Dynamic' can not be used as superclass", errors.get(0).getMessage());
- assertEquals("'Dynamic' can not be used as superinterface", errors.get(1).getMessage());
+ assertEquals("'dynamic' can not be used as superclass", errors.get(0).getMessage());
+ assertEquals("'dynamic' can not be used as superinterface", errors.get(1).getMessage());
}
public void test_blackListed_Function() throws Exception {
@@ -1007,7 +1007,7 @@ public class NegativeResolverTest extends CompilerTestCase {
public void test_explicitDynamicTypeArgument() throws Exception {
checkSourceErrors(makeCode(
"// filler filler filler filler filler filler filler filler filler filler",
- "class MyClass implements Map<Object, Dynamic> {",
+ "class MyClass implements Map<Object, dynamic> {",
"}"));
}

Powered by Google App Engine
This is Rietveld 408576698