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

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

Issue 2391423003: Switch 'analyzer' to 'package:test' and test_reflective_loader ^0.1.0. (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) 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.generated.non_hint_code_test; 5 library analyzer.test.generated.non_hint_code_test;
6 6
7 import 'package:analyzer/error/error.dart'; 7 import 'package:analyzer/error/error.dart';
8 import 'package:analyzer/src/error/codes.dart'; 8 import 'package:analyzer/src/error/codes.dart';
9 import 'package:analyzer/src/generated/source_io.dart'; 9 import 'package:analyzer/src/generated/source_io.dart';
10 import 'package:test_reflective_loader/test_reflective_loader.dart'; 10 import 'package:test_reflective_loader/test_reflective_loader.dart';
11 11
12 import '../utils.dart'; 12 import '../utils.dart';
13 import 'resolver_test_case.dart'; 13 import 'resolver_test_case.dart';
14 14
15 main() { 15 main() {
16 initializeTestEnvironment(); 16 initializeTestEnvironment();
17 defineReflectiveTests(NonHintCodeTest); 17 defineReflectiveSuite(() {
18 defineReflectiveTests(NonHintCodeTest);
19 });
18 } 20 }
19 21
20 @reflectiveTest 22 @reflectiveTest
21 class NonHintCodeTest extends ResolverTestCase { 23 class NonHintCodeTest extends ResolverTestCase {
22 void test_deadCode_afterTryCatch() { 24 void test_deadCode_afterTryCatch() {
23 Source source = addSource(''' 25 Source source = addSource('''
24 main() { 26 main() {
25 try { 27 try {
26 return f(); 28 return f();
27 } catch (e) { 29 } catch (e) {
(...skipping 1312 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 1342
1341 void test_import_valid_outside_lib() { 1343 void test_import_valid_outside_lib() {
1342 cacheSource("/myproj/pubspec.yaml", ""); 1344 cacheSource("/myproj/pubspec.yaml", "");
1343 cacheSource("/myproj/web/other.dart", ""); 1345 cacheSource("/myproj/web/other.dart", "");
1344 Source source = 1346 Source source =
1345 addNamedSource("/myproj/lib2/test.dart", "import '../web/other.dart';"); 1347 addNamedSource("/myproj/lib2/test.dart", "import '../web/other.dart';");
1346 computeLibrarySourceErrors(source); 1348 computeLibrarySourceErrors(source);
1347 assertNoErrors(source); 1349 assertNoErrors(source);
1348 } 1350 }
1349 } 1351 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698