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

Unified Diff: pkg/analyzer/test/generated/resolver_test.dart

Issue 459703002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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:
Download patch
« no previous file with comments | « pkg/analyzer/test/generated/engine_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/resolver_test.dart
diff --git a/pkg/analyzer/test/generated/resolver_test.dart b/pkg/analyzer/test/generated/resolver_test.dart
index 09ca548c01d14ac7d6b507013a64ba451e92455d..d2c499172e414a344090df842a62e9f842582a85 100644
--- a/pkg/analyzer/test/generated/resolver_test.dart
+++ b/pkg/analyzer/test/generated/resolver_test.dart
@@ -10419,6 +10419,37 @@ class NonErrorResolverTest extends ResolverTestCase {
verify([source]);
}
+ void test_ambiguousImport_hideCombinator() {
+ Source source = addSource(EngineTestCase.createSource([
+ "import 'lib1.dart';",
+ "import 'lib2.dart';",
+ "import 'lib3.dart' hide N;",
+ "main() {",
+ " new N1();",
+ " new N2();",
+ " new N3();",
+ "}"]));
+ addNamedSource("/lib1.dart", EngineTestCase.createSource(["library lib1;", "class N {}", "class N1 {}"]));
+ addNamedSource("/lib2.dart", EngineTestCase.createSource(["library lib2;", "class N {}", "class N2 {}"]));
+ addNamedSource("/lib3.dart", EngineTestCase.createSource(["library lib3;", "class N {}", "class N3 {}"]));
+ resolve(source);
+ assertNoErrors(source);
+ }
+
+ void test_ambiguousImport_showCombinator() {
+ Source source = addSource(EngineTestCase.createSource([
+ "import 'lib1.dart';",
+ "import 'lib2.dart' show N, N2;",
+ "main() {",
+ " new N1();",
+ " new N2();",
+ "}"]));
+ addNamedSource("/lib1.dart", EngineTestCase.createSource(["library lib1;", "class N {}", "class N1 {}"]));
+ addNamedSource("/lib2.dart", EngineTestCase.createSource(["library lib2;", "class N {}", "class N2 {}"]));
+ resolve(source);
+ assertNoErrors(source);
+ }
+
void test_argumentTypeNotAssignable_classWithCall_Function() {
Source source = addSource(EngineTestCase.createSource([
" caller(Function callee) {",
@@ -14437,6 +14468,14 @@ class NonErrorResolverTest extends ResolverTestCase {
final __test = new NonErrorResolverTest();
runJUnitTest(__test, __test.test_ambiguousExport_sameDeclaration);
});
+ _ut.test('test_ambiguousImport_hideCombinator', () {
+ final __test = new NonErrorResolverTest();
+ runJUnitTest(__test, __test.test_ambiguousImport_hideCombinator);
+ });
+ _ut.test('test_ambiguousImport_showCombinator', () {
+ final __test = new NonErrorResolverTest();
+ runJUnitTest(__test, __test.test_ambiguousImport_showCombinator);
+ });
_ut.test('test_argumentTypeNotAssignable_Object_Function', () {
final __test = new NonErrorResolverTest();
runJUnitTest(__test, __test.test_argumentTypeNotAssignable_Object_Function);
« no previous file with comments | « pkg/analyzer/test/generated/engine_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698