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

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

Issue 11549028: Issue 6971. Fixes for using built-in identifier as import prefix. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 157cb23650d3d476bfdcd977fd5ba951f992a753..87a941c9886e245a605242310b2cd711d4d6ba24 100644
--- a/compiler/javatests/com/google/dart/compiler/end2end/inc/IncrementalCompilation2Test.java
+++ b/compiler/javatests/com/google/dart/compiler/end2end/inc/IncrementalCompilation2Test.java
@@ -1585,8 +1585,10 @@ public class IncrementalCompilation2Test extends CompilerTestCase {
/**
* <p>
* http://code.google.com/p/dart/issues/detail?id=3531
+ * <p>
+ * Revised 2012-12-12 - specification has no rule about import prefix and built-in identifier.
*/
- public void test_builtInIdentifier_asTypeAnnotation() throws Exception {
+ public void test_builtInIdentifier_asImportPrefix() throws Exception {
appSource.setContent(
"A.dart",
makeCode(
@@ -1619,12 +1621,7 @@ public class IncrementalCompilation2Test extends CompilerTestCase {
""));
// do compile, no errors expected
compile();
- {
- assertEquals(15, errors.size());
- for (DartCompilationError error : errors) {
- assertEquals(ResolverErrorCode.BUILT_IN_IDENTIFIER_AS_IMPORT_PREFIX, error.getErrorCode());
- }
- }
+ assertEquals(0, errors.size());
}
public void test_implicitlyImportCore() throws Exception {
« no previous file with comments | « compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java ('k') | tests/co19/co19-compiler.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698