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

Unified Diff: compiler/javatests/com/google/dart/compiler/end2end/inc/IncrementalCompilation2Test.java

Issue 11293058: Issue 5157. Introduce TypeQuality. Try to find member in subclasses. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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/end2end/inc/IncrementalCompilation2Test.java
diff --git a/compiler/javatests/com/google/dart/compiler/end2end/inc/IncrementalCompilation2Test.java b/compiler/javatests/com/google/dart/compiler/end2end/inc/IncrementalCompilation2Test.java
index eb13e61432b78eccc8736b769d874e2f30412eb9..c78d2b42397c5a523774dfe50e39915e960a2a57 100644
--- a/compiler/javatests/com/google/dart/compiler/end2end/inc/IncrementalCompilation2Test.java
+++ b/compiler/javatests/com/google/dart/compiler/end2end/inc/IncrementalCompilation2Test.java
@@ -23,6 +23,7 @@ import com.google.dart.compiler.ast.LibraryUnit;
import com.google.dart.compiler.common.ErrorExpectation;
import com.google.dart.compiler.resolver.ResolverErrorCode;
import com.google.dart.compiler.resolver.TypeErrorCode;
+import com.google.dart.compiler.type.TypeQuality;
import static com.google.dart.compiler.DartCompiler.EXTENSION_DEPS;
import static com.google.dart.compiler.DartCompiler.EXTENSION_TIMESTAMP;
@@ -1352,19 +1353,19 @@ public class IncrementalCompilation2Test extends CompilerTestCase {
// validate types
DartUnit unit = units.get(APP);
assertNotNull(unit);
- assertInferredElementTypeString(unit, "v1", "AnchorElement");
- assertInferredElementTypeString(unit, "v2", "AnchorElement");
- assertInferredElementTypeString(unit, "v3", "BodyElement");
- assertInferredElementTypeString(unit, "v4", "ButtonElement");
- assertInferredElementTypeString(unit, "v5", "DivElement");
- assertInferredElementTypeString(unit, "v6", "InputElement");
- assertInferredElementTypeString(unit, "v7", "SelectElement");
+ assertInferredElementTypeString(unit, "v1", "AnchorElement", TypeQuality.INFERRED);
+ assertInferredElementTypeString(unit, "v2", "AnchorElement", TypeQuality.INFERRED);
+ assertInferredElementTypeString(unit, "v3", "BodyElement", TypeQuality.INFERRED);
+ assertInferredElementTypeString(unit, "v4", "ButtonElement", TypeQuality.INFERRED);
+ assertInferredElementTypeString(unit, "v5", "DivElement", TypeQuality.INFERRED);
+ assertInferredElementTypeString(unit, "v6", "InputElement", TypeQuality.INFERRED);
+ assertInferredElementTypeString(unit, "v7", "SelectElement", TypeQuality.INFERRED);
// invocation of method
- assertInferredElementTypeString(unit, "m1", "DivElement");
+ assertInferredElementTypeString(unit, "m1", "DivElement", TypeQuality.INFERRED);
// bad cases, or unsupported now
- assertInferredElementTypeString(unit, "b1", "Element");
- assertInferredElementTypeString(unit, "b2", "Element");
- assertInferredElementTypeString(unit, "b3", "Element");
+ assertInferredElementTypeString(unit, "b1", "Element", TypeQuality.INFERRED);
+ assertInferredElementTypeString(unit, "b2", "Element", TypeQuality.INFERRED);
+ assertInferredElementTypeString(unit, "b3", "Element", TypeQuality.INFERRED);
}
/**

Powered by Google App Engine
This is Rietveld 408576698