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

Side by Side Diff: pkg/analysis_server/test/services/dependencies/reachable_source_collector_test.dart

Issue 2975253002: Format analyzer, analysis_server, analyzer_plugin, front_end and kernel with the latest dartfmt. (Closed)
Patch Set: Created 3 years, 5 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 import 'package:analysis_server/src/services/dependencies/reachable_source_colle ctor.dart'; 5 import 'package:analysis_server/src/services/dependencies/reachable_source_colle ctor.dart';
6 import 'package:analyzer/src/generated/source.dart'; 6 import 'package:analyzer/src/generated/source.dart';
7 import 'package:test/test.dart'; 7 import 'package:test/test.dart';
8 import 'package:test_reflective_loader/test_reflective_loader.dart'; 8 import 'package:test_reflective_loader/test_reflective_loader.dart';
9 9
10 import '../../abstract_context.dart'; 10 import '../../abstract_context.dart';
(...skipping 20 matching lines...) Expand all
31 // See https://github.com/dart-lang/sdk/issues/29311 31 // See https://github.com/dart-lang/sdk/issues/29311
32 fail('The analysis.getReachableSources is not implemented.'); 32 fail('The analysis.getReachableSources is not implemented.');
33 expect(() => new ReachableSourceCollector(null, null), 33 expect(() => new ReachableSourceCollector(null, null),
34 throwsA(new isInstanceOf<ArgumentError>())); 34 throwsA(new isInstanceOf<ArgumentError>()));
35 } 35 }
36 36
37 @failingTest 37 @failingTest
38 test_sources() { 38 test_sources() {
39 // See https://github.com/dart-lang/sdk/issues/29311 39 // See https://github.com/dart-lang/sdk/issues/29311
40 fail('The analysis.getReachableSources is not implemented.'); 40 fail('The analysis.getReachableSources is not implemented.');
41 Source lib1 = addSource( 41 Source lib1 = addSource('/lib1.dart', '''
42 '/lib1.dart',
43 '''
44 import "lib2.dart"; 42 import "lib2.dart";
45 import "dart:html";'''); 43 import "dart:html";''');
46 Source lib2 = addSource('/lib2.dart', 'import "lib1.dart";'); 44 Source lib2 = addSource('/lib2.dart', 'import "lib1.dart";');
47 45
48 Source lib3 = addSource('/lib3.dart', 'import "lib4.dart";'); 46 Source lib3 = addSource('/lib3.dart', 'import "lib4.dart";');
49 addSource('/lib4.dart', 'import "lib3.dart";'); 47 addSource('/lib4.dart', 'import "lib3.dart";');
50 48
51 Map<String, List<String>> imports = importsFor(lib1); 49 Map<String, List<String>> imports = importsFor(lib1);
52 50
53 // Verify keys. 51 // Verify keys.
(...skipping 21 matching lines...) Expand all
75 unorderedEquals([ 73 unorderedEquals([
76 'dart:_internal', 74 'dart:_internal',
77 'dart:async', 75 'dart:async',
78 'dart:core', 76 'dart:core',
79 'dart:math', 77 'dart:math',
80 'file:///lib3.dart', 78 'file:///lib3.dart',
81 'file:///lib4.dart' 79 'file:///lib4.dart'
82 ])); 80 ]));
83 } 81 }
84 } 82 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/services/correction/util_test.dart ('k') | pkg/analysis_server/test/services/linter/linter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698