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

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

Issue 9124006: Blacklist types from core library, issue 969 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use Set for checking type names. Created 8 years, 11 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/ResolverTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java b/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
index 4b17ff094c75ae2c3a4259d40bd00bda1f90ca74..61ca8922440534913d16ef6e9eac01ba0834d3d0 100644
--- a/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
+++ b/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
@@ -654,12 +654,8 @@ public class ResolverTest extends ResolverTestCase {
/**
* Test that a class may implement the implied interface of another class and that interfaces may
* extend the implied interface of a class.
- *
- * @throws DuplicatedInterfaceException
- * @throws CyclicDeclarationException
*/
- public void testImpliedInterfaces() throws CyclicDeclarationException,
- DuplicatedInterfaceException {
+ public void testImpliedInterfaces() throws Exception {
DartClass a = makeClass("A", null);
DartClass b = makeClass("B", null, makeTypes("A"));
DartClass ia = makeInterface("IA", makeTypes("B"), null);
@@ -831,22 +827,6 @@ public class ResolverTest extends ResolverTestCase {
ResolverErrorCode.NOT_A_CLASS);
}
- public void test_noSuchType_classImplements() throws Exception {
- resolveAndTest(Joiner.on("\n").join(
- "class Object {}",
- "class MyClass implements Unknown {",
- "}"),
- ResolverErrorCode.NO_SUCH_TYPE);
- }
-
- public void test_noSuchType_classImplementsTypeVariable() throws Exception {
- resolveAndTest(Joiner.on("\n").join(
- "class Object {}",
- "class MyClass<E> implements E {",
- "}"),
- ResolverErrorCode.NOT_A_CLASS_OR_INTERFACE);
- }
-
public void test_noSuchType_superClass_typeArgument() throws Exception {
String source =
Joiner.on("\n").join(
@@ -1049,32 +1029,6 @@ public class ResolverTest extends ResolverTestCase {
ResolverErrorCode.NO_SUCH_TYPE);
}
- // TODO(scheglov) check for "extends/implements Dynamic"
- public void _test_extendsDynamic() throws Exception {
- resolveAndTest(Joiner.on("\n").join(
- "class Object {}",
- "class MyClass extends Dynamic {",
- "}"),
- ResolverErrorCode.DYNAMIC_EXTENDS);
- }
-
- // TODO(scheglov) check for "extends/implements Dynamic"
- public void _test_implementsDynamic() throws Exception {
- resolveAndTest(Joiner.on("\n").join(
- "class Object {}",
- "class MyClass implements Dynamic {",
- "}"),
- ResolverErrorCode.DYNAMIC_IMPLEMENTS);
- }
-
- public void test_explicitDynamicTypeArgument() throws Exception {
- resolveAndTest(Joiner.on("\n").join(
- "class Object {}",
- "class Map<K, V>{}",
- "class MyClass implements Map<Object, Dynamic> {",
- "}"));
- }
-
public void test_operatorIs_withFunctionAlias() throws Exception {
resolveAndTest(Joiner.on("\n").join(
"class Object {}",

Powered by Google App Engine
This is Rietveld 408576698