Index: pkg/analyzer/test/src/task/dart_test.dart |
diff --git a/pkg/analyzer/test/src/task/dart_test.dart b/pkg/analyzer/test/src/task/dart_test.dart |
index 0142fcbf93309be6a2e43e6cbc480d8f8c9f2c07..e3615fe2f45e875b83ed36e2d9ff513130cf931d 100644 |
--- a/pkg/analyzer/test/src/task/dart_test.dart |
+++ b/pkg/analyzer/test/src/task/dart_test.dart |
@@ -1912,7 +1912,7 @@ class GatherUsedLocalElementsTaskTest extends _AbstractDartTaskTest { |
UsedLocalElements usedElements; |
Set<String> usedElementNames; |
- fail_perform_forPart_afterLibraryUpdate() { |
+ test_perform_forPart_afterLibraryUpdate() { |
Source libSource = newSource( |
'/my_lib.dart', |
''' |
@@ -3982,25 +3982,6 @@ class StrongModeVerifyUnitTaskTest extends _AbstractDartTaskTest { |
enableStrongMode(); |
} |
- void test_perform_verifyError() { |
- enableStrongMode(); |
- AnalysisTarget source = newSource( |
- '/test.dart', |
- ''' |
-int topLevel = 3; |
-class C { |
- String field = topLevel; |
-} |
-'''); |
- computeResult(new LibrarySpecificUnit(source, source), STRONG_MODE_ERRORS); |
- // validate |
- _fillErrorListener(STRONG_MODE_ERRORS); |
- |
- var errors = errorListener.errors; |
- expect(errors.length, 1); |
- expect(errors[0].errorCode.name, "dev_compiler.StaticTypeError"); |
- } |
- |
void test_perform_recordDynamicInvoke() { |
enableStrongMode(); |
AnalysisTarget source = newSource( |
@@ -4025,6 +4006,25 @@ void main() { |
expect(DynamicInvoke.get(idx.target), isNotNull); |
expect(DynamicInvoke.get(idx.target), isTrue); |
} |
+ |
+ void test_perform_verifyError() { |
+ enableStrongMode(); |
+ AnalysisTarget source = newSource( |
+ '/test.dart', |
+ ''' |
+int topLevel = 3; |
+class C { |
+ String field = topLevel; |
+} |
+'''); |
+ computeResult(new LibrarySpecificUnit(source, source), STRONG_MODE_ERRORS); |
+ // validate |
+ _fillErrorListener(STRONG_MODE_ERRORS); |
+ |
+ var errors = errorListener.errors; |
+ expect(errors.length, 1); |
+ expect(errors[0].errorCode.name, "dev_compiler.StaticTypeError"); |
+ } |
} |
@reflectiveTest |