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

Side by Side Diff: pkg/analyzer/test/generated/all_the_rest_test.dart

Issue 3004153002: Fixed analyzer test to use dart2js not dartium (Closed)
Patch Set: Removed rest of dartium files. Created 3 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) 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 analyzer.test.generated.all_the_rest_test; 5 library analyzer.test.generated.all_the_rest_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/ast/token.dart'; 10 import 'package:analyzer/dart/ast/token.dart';
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 new JavaFile.relative(sdk.libraryDirectory, "core"), "core.dart") 216 new JavaFile.relative(sdk.libraryDirectory, "core"), "core.dart")
217 .toURI()); 217 .toURI());
218 expect(source, isNotNull); 218 expect(source, isNotNull);
219 expect(source.isInSystemLibrary, isTrue); 219 expect(source.isInSystemLibrary, isTrue);
220 expect(source.uri.toString(), "dart:core"); 220 expect(source.uri.toString(), "dart:core");
221 } 221 }
222 222
223 void test_fromFile_library_firstExact() { 223 void test_fromFile_library_firstExact() {
224 DirectoryBasedDartSdk sdk = _createDartSdk(); 224 DirectoryBasedDartSdk sdk = _createDartSdk();
225 JavaFile dirHtml = new JavaFile.relative(sdk.libraryDirectory, "html"); 225 JavaFile dirHtml = new JavaFile.relative(sdk.libraryDirectory, "html");
226 JavaFile dirDartium = new JavaFile.relative(dirHtml, "dartium"); 226 JavaFile dirDart2js = new JavaFile.relative(dirHtml, "dart2js");
227 JavaFile file = new JavaFile.relative(dirDartium, "html_dartium.dart"); 227 JavaFile file = new JavaFile.relative(dirDart2js, "html_dart2js.dart");
228 expect(file.isFile(), isTrue); 228 expect(file.isFile(), isTrue);
229 Source source = sdk.fromFileUri(file.toURI()); 229 Source source = sdk.fromFileUri(file.toURI());
230 expect(source, isNotNull); 230 expect(source, isNotNull);
231 expect(source.isInSystemLibrary, isTrue); 231 expect(source.isInSystemLibrary, isTrue);
232 expect(source.uri.toString(), "dart:html"); 232 expect(source.uri.toString(), "dart:html");
233 } 233 }
234 234
235 void test_fromFile_library_html_common_dart2js() { 235 void test_fromFile_library_html_common_dart2js() {
236 DirectoryBasedDartSdk sdk = _createDartSdk(); 236 DirectoryBasedDartSdk sdk = _createDartSdk();
237 JavaFile dirHtml = new JavaFile.relative(sdk.libraryDirectory, "html"); 237 JavaFile dirHtml = new JavaFile.relative(sdk.libraryDirectory, "html");
(...skipping 2025 matching lines...) Expand 10 before | Expand all | Expand 10 after
2263 '''); 2263 ''');
2264 coreIntPath = resourceProvider.convertPath('/sdk/lib/core/int.dart'); 2264 coreIntPath = resourceProvider.convertPath('/sdk/lib/core/int.dart');
2265 resourceProvider.newFile(coreIntPath, ''' 2265 resourceProvider.newFile(coreIntPath, '''
2266 part of dart.core; 2266 part of dart.core;
2267 '''); 2267 ''');
2268 sdk = new FolderBasedDartSdk(resourceProvider, sdkFolder); 2268 sdk = new FolderBasedDartSdk(resourceProvider, sdkFolder);
2269 } 2269 }
2270 } 2270 }
2271 2271
2272 class _SourceMock extends Mock implements Source {} 2272 class _SourceMock extends Mock implements Source {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698