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

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

Issue 2411513002: Fix context/builder_test.dart on Windows. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/src/context/builder.dart'; 10 import 'package:analyzer/src/context/builder.dart';
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 void createFile(String path, String content) { 90 void createFile(String path, String content) {
91 resourceProvider.newFile(path, content); 91 resourceProvider.newFile(path, content);
92 } 92 }
93 93
94 @override 94 @override
95 void setUp() { 95 void setUp() {
96 resourceProvider = new MemoryResourceProvider(); 96 resourceProvider = new MemoryResourceProvider();
97 pathContext = resourceProvider.pathContext; 97 pathContext = resourceProvider.pathContext;
98 new MockSdk(resourceProvider: resourceProvider); 98 new MockSdk(resourceProvider: resourceProvider);
99 sdkManager = new DartSdkManager('/sdk', false, (_) { 99 sdkManager =
100 new DartSdkManager(resourceProvider.convertPath('/sdk'), false, (_) {
100 fail('Should not be used to create an SDK'); 101 fail('Should not be used to create an SDK');
101 }); 102 });
102 contentCache = new ContentCache(); 103 contentCache = new ContentCache();
103 builder = new ContextBuilder(resourceProvider, sdkManager, contentCache); 104 builder = new ContextBuilder(resourceProvider, sdkManager, contentCache);
104 } 105 }
105 106
106 @failingTest 107 @failingTest
107 void test_buildContext() { 108 void test_buildContext() {
108 fail('Incomplete test'); 109 fail('Incomplete test');
109 } 110 }
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 fail('Unexpected invocation of optionsProcessed'); 739 fail('Unexpected invocation of optionsProcessed');
739 } 740 }
740 expect(options, hasLength(expectedOptions.length)); 741 expect(options, hasLength(expectedOptions.length));
741 for (String key in expectedOptions.keys) { 742 for (String key in expectedOptions.keys) {
742 expect(options.containsKey(key), isTrue, reason: 'missing key $key'); 743 expect(options.containsKey(key), isTrue, reason: 'missing key $key');
743 expect(options[key], expectedOptions[key], 744 expect(options[key], expectedOptions[key],
744 reason: 'values for key $key do not match'); 745 reason: 'values for key $key do not match');
745 } 746 }
746 } 747 }
747 } 748 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698