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

Side by Side Diff: pkg/analyzer/test/src/dart/sdk/sdk_test.dart

Issue 2399913002: Remove 'initializeTestEnvironment' from 'analyzer'. (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
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.sdk_test; 5 library analyzer.test.generated.sdk_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/src/context/builder.dart' show EmbedderYamlLocator; 9 import 'package:analyzer/src/context/builder.dart' show EmbedderYamlLocator;
10 import 'package:analyzer/src/dart/sdk/sdk.dart'; 10 import 'package:analyzer/src/dart/sdk/sdk.dart';
11 import 'package:analyzer/src/generated/engine.dart'; 11 import 'package:analyzer/src/generated/engine.dart';
12 import 'package:analyzer/src/generated/java_engine_io.dart'; 12 import 'package:analyzer/src/generated/java_engine_io.dart';
13 import 'package:analyzer/src/generated/sdk.dart'; 13 import 'package:analyzer/src/generated/sdk.dart';
14 import 'package:analyzer/src/generated/source.dart'; 14 import 'package:analyzer/src/generated/source.dart';
15 import 'package:analyzer/src/summary/summarize_elements.dart'; 15 import 'package:analyzer/src/summary/summarize_elements.dart';
16 import 'package:test/test.dart'; 16 import 'package:test/test.dart';
17 import 'package:test_reflective_loader/test_reflective_loader.dart'; 17 import 'package:test_reflective_loader/test_reflective_loader.dart';
18 18
19 import '../../../embedder_tests.dart'; 19 import '../../../embedder_tests.dart';
20 import '../../../generated/test_support.dart'; 20 import '../../../generated/test_support.dart';
21 import '../../../resource_utils.dart'; 21 import '../../../resource_utils.dart';
22 import '../../../utils.dart';
23 22
24 main() { 23 main() {
25 initializeTestEnvironment();
26 defineReflectiveSuite(() { 24 defineReflectiveSuite(() {
27 defineReflectiveTests(EmbedderSdkTest); 25 defineReflectiveTests(EmbedderSdkTest);
28 defineReflectiveTests(FolderBasedDartSdkTest); 26 defineReflectiveTests(FolderBasedDartSdkTest);
29 defineReflectiveTests(SdkExtensionFinderTest); 27 defineReflectiveTests(SdkExtensionFinderTest);
30 defineReflectiveTests(SDKLibrariesReaderTest); 28 defineReflectiveTests(SDKLibrariesReaderTest);
31 }); 29 });
32 } 30 }
33 31
34 @reflectiveTest 32 @reflectiveTest
35 class EmbedderSdkTest extends EmbedderRelatedTest { 33 class EmbedderSdkTest extends EmbedderRelatedTest {
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 expect(second, isNotNull); 458 expect(second, isNotNull);
461 expect(second.category, "Server"); 459 expect(second.category, "Server");
462 expect(second.path, "second/second.dart"); 460 expect(second.path, "second/second.dart");
463 expect(second.shortName, "dart:second"); 461 expect(second.shortName, "dart:second");
464 expect(second.isDart2JsLibrary, false); 462 expect(second.isDart2JsLibrary, false);
465 expect(second.isDocumented, false); 463 expect(second.isDocumented, false);
466 expect(second.isImplementation, true); 464 expect(second.isImplementation, true);
467 expect(second.isVmLibrary, false); 465 expect(second.isVmLibrary, false);
468 } 466 }
469 } 467 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/src/dart/element/test_all.dart ('k') | pkg/analyzer/test/src/dart/sdk/test_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698