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

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

Issue 2298913003: Pull in test_reflective_loader 0.0.4 and switch analyzer to it. (Closed)
Patch Set: Fixes for review comments. 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) 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 13 matching lines...) Expand all
24 import 'package:analyzer/src/generated/java_engine.dart'; 24 import 'package:analyzer/src/generated/java_engine.dart';
25 import 'package:analyzer/src/generated/resolver.dart'; 25 import 'package:analyzer/src/generated/resolver.dart';
26 import 'package:analyzer/src/generated/source.dart'; 26 import 'package:analyzer/src/generated/source.dart';
27 import 'package:analyzer/src/generated/utilities_collection.dart'; 27 import 'package:analyzer/src/generated/utilities_collection.dart';
28 import 'package:analyzer/src/task/dart.dart'; 28 import 'package:analyzer/src/task/dart.dart';
29 import 'package:analyzer/src/task/html.dart'; 29 import 'package:analyzer/src/task/html.dart';
30 import 'package:analyzer/task/dart.dart'; 30 import 'package:analyzer/task/dart.dart';
31 import 'package:analyzer/task/general.dart'; 31 import 'package:analyzer/task/general.dart';
32 import 'package:analyzer/task/model.dart'; 32 import 'package:analyzer/task/model.dart';
33 import 'package:html/dom.dart' show Document; 33 import 'package:html/dom.dart' show Document;
34 import 'package:test_reflective_loader/test_reflective_loader.dart';
34 import 'package:unittest/unittest.dart'; 35 import 'package:unittest/unittest.dart';
35 import 'package:watcher/src/utils.dart'; 36 import 'package:watcher/src/utils.dart';
36 37
37 import '../../generated/engine_test.dart'; 38 import '../../generated/engine_test.dart';
38 import '../../generated/test_support.dart'; 39 import '../../generated/test_support.dart';
39 import '../../reflective_tests.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(); 44 initializeTestEnvironment();
45 runReflectiveTests(AnalysisContextImplTest); 45 defineReflectiveTests(AnalysisContextImplTest);
46 runReflectiveTests(LimitedInvalidateTest); 46 defineReflectiveTests(LimitedInvalidateTest);
47 } 47 }
48 48
49 @reflectiveTest 49 @reflectiveTest
50 class AnalysisContextImplTest extends AbstractContextTest { 50 class AnalysisContextImplTest extends AbstractContextTest {
51 void fail_getErrors_html_some() { 51 void fail_getErrors_html_some() {
52 Source source = addSource( 52 Source source = addSource(
53 "/test.html", 53 "/test.html",
54 r''' 54 r'''
55 <html><head> 55 <html><head>
56 <script type='application/dart' src='test.dart'/> 56 <script type='application/dart' src='test.dart'/>
(...skipping 5191 matching lines...) Expand 10 before | Expand all | Expand 10 after
5248 * Initialize the visitor. 5248 * Initialize the visitor.
5249 */ 5249 */
5250 _ElementGatherer(); 5250 _ElementGatherer();
5251 5251
5252 @override 5252 @override
5253 void visitElement(Element element) { 5253 void visitElement(Element element) {
5254 elements[element] = element; 5254 elements[element] = element;
5255 super.visitElement(element); 5255 super.visitElement(element);
5256 } 5256 }
5257 } 5257 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698