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

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

Issue 15004020: Report StaticWarningCode.IMPORT_DUPLICATED_LIBRARY_NAME (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use multiline test sources Created 7 years, 7 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/NonErrorResolverTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
index 4428f0f189e7cf232ed217050bc83c9b42bbd798..ff65bb3630fbcdc745b613a1e66c0426d08de29a 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
@@ -360,6 +360,17 @@ public class NonErrorResolverTest extends ResolverTestCase {
verify(source);
}
+ public void test_importDuplicatedLibraryName() throws Exception {
+ Source source = addSource(createSource(//
+ "library test;",
+ "import 'lib.dart';",
+ "import 'lib.dart';"));
+ addSource("/lib.dart", "library lib;");
+ resolve(source);
+ assertNoErrors();
+ verify(source);
+ }
+
public void test_importOfNonLibrary_libraryDeclared() throws Exception {
Source source = addSource(createSource(//
"library lib;",

Powered by Google App Engine
This is Rietveld 408576698