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

Side by Side Diff: pkg/analyzer/test/src/dart/constant/value_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.src.dart.constant.value_test; 5 library analyzer.test.src.dart.constant.value_test;
6 6
7 import 'package:analyzer/src/generated/constant.dart'; 7 import 'package:analyzer/src/generated/constant.dart';
8 import 'package:analyzer/src/generated/resolver.dart'; 8 import 'package:analyzer/src/generated/resolver.dart';
9 import 'package:analyzer/src/generated/testing/test_type_provider.dart'; 9 import 'package:analyzer/src/generated/testing/test_type_provider.dart';
10 import 'package:test/test.dart';
10 import 'package:test_reflective_loader/test_reflective_loader.dart'; 11 import 'package:test_reflective_loader/test_reflective_loader.dart';
11 import 'package:unittest/unittest.dart';
12 12
13 import '../../../generated/test_support.dart'; 13 import '../../../generated/test_support.dart';
14 import '../../../utils.dart'; 14 import '../../../utils.dart';
15 15
16 main() { 16 main() {
17 initializeTestEnvironment(); 17 initializeTestEnvironment();
18 defineReflectiveTests(DartObjectImplTest); 18 defineReflectiveSuite(() {
19 defineReflectiveTests(DartObjectImplTest);
20 });
19 } 21 }
20 22
21 const Matcher isEvaluationException = const isInstanceOf<EvaluationException>(); 23 const Matcher isEvaluationException = const isInstanceOf<EvaluationException>();
22 24
23 const int LONG_MAX_VALUE = 0x7fffffffffffffff; 25 const int LONG_MAX_VALUE = 0x7fffffffffffffff;
24 26
25 const Matcher throwsEvaluationException = const Throws(isEvaluationException); 27 const Matcher throwsEvaluationException = const Throws(isEvaluationException);
26 28
27 @reflectiveTest 29 @reflectiveTest
28 class DartObjectImplTest extends EngineTestCase { 30 class DartObjectImplTest extends EngineTestCase {
(...skipping 1954 matching lines...) Expand 10 before | Expand all | Expand 10 after
1983 } else { 1985 } else {
1984 return new DartObjectImpl( 1986 return new DartObjectImpl(
1985 _typeProvider.stringType, new StringState(value)); 1987 _typeProvider.stringType, new StringState(value));
1986 } 1988 }
1987 } 1989 }
1988 1990
1989 DartObjectImpl _symbolValue(String value) { 1991 DartObjectImpl _symbolValue(String value) {
1990 return new DartObjectImpl(_typeProvider.symbolType, new SymbolState(value)); 1992 return new DartObjectImpl(_typeProvider.symbolType, new SymbolState(value));
1991 } 1993 }
1992 } 1994 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698