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

Side by Side Diff: pkg/analysis_server/test/services/completion/dart/completion_manager_test.dart

Issue 2884233004: Remove some more library directives (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library test.services.completion.dart.manager;
6
7 import 'dart:async'; 5 import 'dart:async';
8 6
9 import 'package:analysis_server/src/provisional/completion/dart/completion_dart. dart'; 7 import 'package:analysis_server/src/provisional/completion/dart/completion_dart. dart';
10 import 'package:analysis_server/src/services/completion/completion_core.dart'; 8 import 'package:analysis_server/src/services/completion/completion_core.dart';
11 import 'package:analysis_server/src/services/completion/completion_performance.d art'; 9 import 'package:analysis_server/src/services/completion/completion_performance.d art';
12 import 'package:analysis_server/src/services/completion/dart/completion_manager. dart'; 10 import 'package:analysis_server/src/services/completion/dart/completion_manager. dart';
13 import 'package:analysis_server/src/services/completion/dart/imported_reference_ contributor.dart'; 11 import 'package:analysis_server/src/services/completion/dart/imported_reference_ contributor.dart';
14 import 'package:analyzer/dart/element/element.dart'; 12 import 'package:analyzer/dart/element/element.dart';
15 import 'package:analyzer/src/task/dart.dart'; 13 import 'package:analyzer/src/task/dart.dart';
16 import 'package:test/test.dart'; 14 import 'package:test/test.dart';
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 void assertImportedLib(String expectedUri) { 81 void assertImportedLib(String expectedUri) {
84 ImportElement importElem = importNamed(expectedUri); 82 ImportElement importElem = importNamed(expectedUri);
85 expect(importElem.importedLibrary.exportNamespace, isNotNull); 83 expect(importElem.importedLibrary.exportNamespace, isNotNull);
86 } 84 }
87 85
88 // Assert that the new imports each have an export namespace 86 // Assert that the new imports each have an export namespace
89 assertImportedLib(null /* dart:core */); 87 assertImportedLib(null /* dart:core */);
90 assertImportedLib('/libA.dart'); 88 assertImportedLib('/libA.dart');
91 } 89 }
92 } 90 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698