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

Side by Side Diff: pkg/analyzer/test/src/context/builder_test.dart

Issue 2350143004: More clean-up in server (Closed)
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 analyzer.test.src.context.context_builder_test; 5 library analyzer.test.src.context.context_builder_test;
6 6
7 import 'package:analyzer/file_system/file_system.dart'; 7 import 'package:analyzer/file_system/file_system.dart';
8 import 'package:analyzer/file_system/memory_file_system.dart'; 8 import 'package:analyzer/file_system/memory_file_system.dart';
9 import 'package:analyzer/plugin/options.dart'; 9 import 'package:analyzer/plugin/options.dart';
10 import 'package:analyzer/source/package_map_resolver.dart'; 10 import 'package:analyzer/source/package_map_resolver.dart';
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 contentCache = new ContentCache(); 97 contentCache = new ContentCache();
98 builder = new ContextBuilder(resourceProvider, sdkManager, contentCache); 98 builder = new ContextBuilder(resourceProvider, sdkManager, contentCache);
99 } 99 }
100 100
101 @failingTest 101 @failingTest
102 void test_buildContext() { 102 void test_buildContext() {
103 fail('Incomplete test'); 103 fail('Incomplete test');
104 } 104 }
105 105
106 void test_convertPackagesToMap_noPackages() { 106 void test_convertPackagesToMap_noPackages() {
107 expect(builder.convertPackagesToMap(Packages.noPackages), isNull); 107 expect(builder.convertPackagesToMap(Packages.noPackages), isNotNull);
scheglov 2016/09/20 15:29:14 Should we check the returned map is empty here and
Brian Wilkerson 2016/09/20 15:39:16 Done
108 } 108 }
109 109
110 void test_convertPackagesToMap_null() { 110 void test_convertPackagesToMap_null() {
111 expect(builder.convertPackagesToMap(null), isNull); 111 expect(builder.convertPackagesToMap(null), isNotNull);
112 } 112 }
113 113
114 void test_convertPackagesToMap_packages() { 114 void test_convertPackagesToMap_packages() {
115 String fooName = 'foo'; 115 String fooName = 'foo';
116 String fooPath = '/pkg/foo'; 116 String fooPath = '/pkg/foo';
117 Uri fooUri = new Uri.directory(fooPath); 117 Uri fooUri = new Uri.directory(fooPath);
118 String barName = 'bar'; 118 String barName = 'bar';
119 String barPath = '/pkg/bar'; 119 String barPath = '/pkg/bar';
120 Uri barUri = new Uri.directory(barPath); 120 Uri barUri = new Uri.directory(barPath);
121 121
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 fail('Unexpected invocation of optionsProcessed'); 709 fail('Unexpected invocation of optionsProcessed');
710 } 710 }
711 expect(options, hasLength(expectedOptions.length)); 711 expect(options, hasLength(expectedOptions.length));
712 for (String key in expectedOptions.keys) { 712 for (String key in expectedOptions.keys) {
713 expect(options.containsKey(key), isTrue, reason: 'missing key $key'); 713 expect(options.containsKey(key), isTrue, reason: 'missing key $key');
714 expect(options[key], expectedOptions[key], 714 expect(options[key], expectedOptions[key],
715 reason: 'values for key $key do not match'); 715 reason: 'values for key $key do not match');
716 } 716 }
717 } 717 }
718 } 718 }
OLDNEW
« pkg/analyzer/lib/src/context/builder.dart ('K') | « pkg/analyzer/lib/src/context/builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698