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

Unified Diff: pkg/analysis_server/test/services/correction/fix_test.dart

Issue 556573002: Make SdkLibrary.shortName consistently include 'dart:' (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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
« no previous file with comments | « pkg/analysis_server/test/mock_sdk.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/services/correction/fix_test.dart
diff --git a/pkg/analysis_server/test/services/correction/fix_test.dart b/pkg/analysis_server/test/services/correction/fix_test.dart
index 1f6be7aa264a105f41e5b048816f800582c0ccbf..fa6530d8495a7c0965a6ac1d1fbf02e952d086e7 100644
--- a/pkg/analysis_server/test/services/correction/fix_test.dart
+++ b/pkg/analysis_server/test/services/correction/fix_test.dart
@@ -1024,7 +1024,6 @@ main() {
}
void test_importLibrarySdk_withTopLevelVariable() {
- _ensureSdkMathLibraryResolved();
_indexTestUnit('''
main() {
print(PI);
@@ -1041,7 +1040,6 @@ main() {
}
void test_importLibrarySdk_withType_invocationTarget() {
- _ensureSdkAsyncLibraryResolved();
_indexTestUnit('''
main() {
Future.wait(null);
@@ -1057,7 +1055,6 @@ main() {
}
void test_importLibrarySdk_withType_typeAnnotation() {
- _ensureSdkAsyncLibraryResolved();
_indexTestUnit('''
main() {
Future f = null;
@@ -1073,7 +1070,6 @@ main() {
}
void test_importLibrarySdk_withType_typeAnnotation_PrefixedIdentifier() {
- _ensureSdkAsyncLibraryResolved();
_indexTestUnit('''
main() {
Future.wait;
@@ -1813,22 +1809,6 @@ main() {
}
}
- /**
- * We search for elements only already resolved lbiraries, and we use
- * `dart:async` elements in tests.
- */
- void _ensureSdkAsyncLibraryResolved() {
- resolveLibraryUnit(addSource('/other.dart', 'import "dart:async";'));
- }
-
- /**
- * We search for elements only already resolved lbiraries, and we use
- * `dart:async` elements in tests.
- */
- void _ensureSdkMathLibraryResolved() {
- resolveLibraryUnit(addSource('/other.dart', 'import "dart:math";'));
- }
-
AnalysisError _findErrorToFix() {
List<AnalysisError> errors = context.computeErrors(testSource);
expect(
« no previous file with comments | « pkg/analysis_server/test/mock_sdk.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698