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

Side by Side Diff: pkg/analyzer/test/generated/strong_mode_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.strong_mode_test; 5 library analyzer.test.generated.strong_mode_test;
6 6
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/element/element.dart'; 8 import 'package:analyzer/dart/element/element.dart';
9 import 'package:analyzer/dart/element/type.dart'; 9 import 'package:analyzer/dart/element/type.dart';
10 import 'package:analyzer/src/dart/element/element.dart'; 10 import 'package:analyzer/src/dart/element/element.dart';
11 import 'package:analyzer/src/error/codes.dart'; 11 import 'package:analyzer/src/error/codes.dart';
12 import 'package:analyzer/src/generated/engine.dart'; 12 import 'package:analyzer/src/generated/engine.dart';
13 import 'package:analyzer/src/generated/source_io.dart'; 13 import 'package:analyzer/src/generated/source_io.dart';
14 import 'package:test/test.dart';
14 import 'package:test_reflective_loader/test_reflective_loader.dart'; 15 import 'package:test_reflective_loader/test_reflective_loader.dart';
15 import 'package:unittest/unittest.dart';
16 16
17 import '../utils.dart'; 17 import '../utils.dart';
18 import 'resolver_test_case.dart'; 18 import 'resolver_test_case.dart';
19 19
20 main() { 20 main() {
21 initializeTestEnvironment(); 21 initializeTestEnvironment();
22 defineReflectiveTests(StrongModeDownwardsInferenceTest); 22 defineReflectiveSuite(() {
23 defineReflectiveTests(StrongModeStaticTypeAnalyzer2Test); 23 defineReflectiveTests(StrongModeDownwardsInferenceTest);
24 defineReflectiveTests(StrongModeTypePropagationTest); 24 defineReflectiveTests(StrongModeStaticTypeAnalyzer2Test);
25 defineReflectiveTests(StrongModeTypePropagationTest);
26 });
25 } 27 }
26 28
27 /** 29 /**
28 * Strong mode static analyzer downwards inference tests 30 * Strong mode static analyzer downwards inference tests
29 */ 31 */
30 @reflectiveTest 32 @reflectiveTest
31 class StrongModeDownwardsInferenceTest extends ResolverTestCase { 33 class StrongModeDownwardsInferenceTest extends ResolverTestCase {
32 TypeAssertions _assertions; 34 TypeAssertions _assertions;
33 35
34 Asserter<DartType> _isDynamic; 36 Asserter<DartType> _isDynamic;
(...skipping 2365 matching lines...) Expand 10 before | Expand all | Expand 10 after
2400 main() { 2402 main() {
2401 var v = x; 2403 var v = x;
2402 v; // marker 2404 v; // marker
2403 } 2405 }
2404 int x = 3; 2406 int x = 3;
2405 '''; 2407 ''';
2406 assertPropagatedAssignedType(code, typeProvider.intType, null); 2408 assertPropagatedAssignedType(code, typeProvider.intType, null);
2407 assertTypeOfMarkedExpression(code, typeProvider.intType, null); 2409 assertTypeOfMarkedExpression(code, typeProvider.intType, null);
2408 } 2410 }
2409 } 2411 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698