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

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

Issue 274703002: Bit flip- re-enable deferred loading support in the analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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/HintCodeTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/HintCodeTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/HintCodeTest.java
index c35cdfcf18040ac5bd094791ec21d2b0a27f6ce3..1fc2e5f1bc8b6ee5e414809b2ff0e23348a0bb1b 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/HintCodeTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/HintCodeTest.java
@@ -47,20 +47,6 @@ public class HintCodeTest extends ResolverTestCase {
verify(source);
}
- public void fail_importDeferredLibraryWithLoadFunction() throws Exception {
- addNamedSource("/lib1.dart", createSource(//
- "library lib1;",
- "loadLibrary() {}",
- "f() {}"));
- Source source = addSource(createSource(//
- "library root;",
- "import 'lib1.dart' deferred as lib1;",
- "main() { lib1.f(); }"));
- resolve(source);
- assertErrors(source, HintCode.IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION);
- verify(source);
- }
-
public void fail_isInt() throws Exception {
Source source = addSource(createSource(//
"var v = 1 is int;"));
@@ -776,6 +762,20 @@ public class HintCodeTest extends ResolverTestCase {
verify(source);
}
+ public void test_importDeferredLibraryWithLoadFunction() throws Exception {
+ addNamedSource("/lib1.dart", createSource(//
+ "library lib1;",
+ "loadLibrary() {}",
+ "f() {}"));
+ Source source = addSource(createSource(//
+ "library root;",
+ "import 'lib1.dart' deferred as lib1;",
+ "main() { lib1.f(); }"));
+ resolve(source);
+ assertErrors(source, HintCode.IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION);
+ verify(source);
+ }
+
public void test_invalidAssignment_instanceVariable() throws Exception {
Source source = addSource(createSource(//
"class A {",

Powered by Google App Engine
This is Rietveld 408576698