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

Unified Diff: editor/tools/plugins/com.google.dart.server_test/src/com/google/dart/server/internal/local/computer/DartUnitHighlightsComputerTest.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.server_test/src/com/google/dart/server/internal/local/computer/DartUnitHighlightsComputerTest.java
diff --git a/editor/tools/plugins/com.google.dart.server_test/src/com/google/dart/server/internal/local/computer/DartUnitHighlightsComputerTest.java b/editor/tools/plugins/com.google.dart.server_test/src/com/google/dart/server/internal/local/computer/DartUnitHighlightsComputerTest.java
index 21f11ac45b98ca717572e581b4f02d520da26982..2747a8e8de1c6c9462fc49cf30f5183a185008bd 100644
--- a/editor/tools/plugins/com.google.dart.server_test/src/com/google/dart/server/internal/local/computer/DartUnitHighlightsComputerTest.java
+++ b/editor/tools/plugins/com.google.dart.server_test/src/com/google/dart/server/internal/local/computer/DartUnitHighlightsComputerTest.java
@@ -29,16 +29,6 @@ public class DartUnitHighlightsComputerTest extends AbstractLocalServerTest {
private String testCode;
private HighlightRegion[] regions;
- public void fail_BUILT_IN_deferred() throws Exception {
- prepareRegions(//
- "import 'dart:math' deferred as math;",
- "main() {",
- " int deferred = 42;",
- "}");
- assertHasRegion("deferred as math", HighlightType.BUILT_IN);
- assertNoRegion("deferred = 42", HighlightType.BUILT_IN);
- }
-
public void test_ANNOTATION_hasArguments() throws Exception {
prepareRegions(//
"class AAA {",
@@ -78,6 +68,16 @@ public class DartUnitHighlightsComputerTest extends AbstractLocalServerTest {
assertNoRegion("as = 42", HighlightType.BUILT_IN);
}
+ public void test_BUILT_IN_deferred() throws Exception {
+ prepareRegions(//
+ "import 'dart:math' deferred as math;",
+ "main() {",
+ " int deferred = 42;",
+ "}");
+ assertHasRegion("deferred as math", HighlightType.BUILT_IN);
+ assertNoRegion("deferred = 42", HighlightType.BUILT_IN);
+ }
+
public void test_BUILT_IN_export() throws Exception {
prepareRegions(//
"export 'foo.dart';",

Powered by Google App Engine
This is Rietveld 408576698