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

Side by Side Diff: pkg/analyzer/test/src/context/context_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.src.context.context_test; 5 library analyzer.test.src.context.context_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'package:analyzer/dart/ast/ast.dart'; 10 import 'package:analyzer/dart/ast/ast.dart';
(...skipping 23 matching lines...) Expand all
34 import 'package:test/test.dart'; 34 import 'package:test/test.dart';
35 import 'package:test_reflective_loader/test_reflective_loader.dart'; 35 import 'package:test_reflective_loader/test_reflective_loader.dart';
36 import 'package:watcher/src/utils.dart'; 36 import 'package:watcher/src/utils.dart';
37 37
38 import '../../generated/engine_test.dart'; 38 import '../../generated/engine_test.dart';
39 import '../../generated/test_support.dart'; 39 import '../../generated/test_support.dart';
40 import '../../utils.dart'; 40 import '../../utils.dart';
41 import 'abstract_context.dart'; 41 import 'abstract_context.dart';
42 42
43 main() { 43 main() {
44 initializeTestEnvironment();
45 defineReflectiveSuite(() { 44 defineReflectiveSuite(() {
46 defineReflectiveTests(AnalysisContextImplTest); 45 defineReflectiveTests(AnalysisContextImplTest);
47 defineReflectiveTests(LimitedInvalidateTest); 46 defineReflectiveTests(LimitedInvalidateTest);
48 }); 47 });
49 } 48 }
50 49
51 @reflectiveTest 50 @reflectiveTest
52 class AnalysisContextImplTest extends AbstractContextTest { 51 class AnalysisContextImplTest extends AbstractContextTest {
53 void fail_getErrors_html_some() { 52 void fail_getErrors_html_some() {
54 Source source = addSource( 53 Source source = addSource(
(...skipping 5216 matching lines...) Expand 10 before | Expand all | Expand 10 after
5271 * Initialize the visitor. 5270 * Initialize the visitor.
5272 */ 5271 */
5273 _ElementGatherer(); 5272 _ElementGatherer();
5274 5273
5275 @override 5274 @override
5276 void visitElement(Element element) { 5275 void visitElement(Element element) {
5277 elements[element] = element; 5276 elements[element] = element;
5278 super.visitElement(element); 5277 super.visitElement(element);
5279 } 5278 }
5280 } 5279 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/src/context/cache_test.dart ('k') | pkg/analyzer/test/src/context/test_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698