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/generated/scanner_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.generated.scanner_test; 5 library analyzer.test.generated.scanner_test;
6 6
7 import 'package:analyzer/dart/ast/token.dart'; 7 import 'package:analyzer/dart/ast/token.dart';
8 import 'package:analyzer/error/error.dart'; 8 import 'package:analyzer/error/error.dart';
9 import 'package:analyzer/error/listener.dart'; 9 import 'package:analyzer/error/listener.dart';
10 import 'package:analyzer/src/dart/ast/token.dart'; 10 import 'package:analyzer/src/dart/ast/token.dart';
11 import 'package:analyzer/src/dart/scanner/reader.dart'; 11 import 'package:analyzer/src/dart/scanner/reader.dart';
12 import 'package:analyzer/src/dart/scanner/scanner.dart'; 12 import 'package:analyzer/src/dart/scanner/scanner.dart';
13 import 'package:analyzer/src/generated/source.dart'; 13 import 'package:analyzer/src/generated/source.dart';
14 import 'package:test/test.dart'; 14 import 'package:test/test.dart';
15 import 'package:test_reflective_loader/test_reflective_loader.dart'; 15 import 'package:test_reflective_loader/test_reflective_loader.dart';
16 16
17 import '../utils.dart';
18 import 'test_support.dart'; 17 import 'test_support.dart';
19 18
20 main() { 19 main() {
21 initializeTestEnvironment();
22 defineReflectiveSuite(() { 20 defineReflectiveSuite(() {
23 defineReflectiveTests(CharSequenceReaderTest); 21 defineReflectiveTests(CharSequenceReaderTest);
24 defineReflectiveTests(KeywordStateTest); 22 defineReflectiveTests(KeywordStateTest);
25 defineReflectiveTests(ScannerTest); 23 defineReflectiveTests(ScannerTest);
26 defineReflectiveTests(TokenTypeTest); 24 defineReflectiveTests(TokenTypeTest);
27 }); 25 });
28 } 26 }
29 27
30 class CharacterRangeReaderTest extends EngineTestCase { 28 class CharacterRangeReaderTest extends EngineTestCase {
31 void test_advance() { 29 void test_advance() {
(...skipping 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after
1432 expect(TokenType.LT_LT.isUserDefinableOperator, isTrue); 1430 expect(TokenType.LT_LT.isUserDefinableOperator, isTrue);
1433 expect(TokenType.MINUS.isUserDefinableOperator, isTrue); 1431 expect(TokenType.MINUS.isUserDefinableOperator, isTrue);
1434 expect(TokenType.PERCENT.isUserDefinableOperator, isTrue); 1432 expect(TokenType.PERCENT.isUserDefinableOperator, isTrue);
1435 expect(TokenType.PLUS.isUserDefinableOperator, isTrue); 1433 expect(TokenType.PLUS.isUserDefinableOperator, isTrue);
1436 expect(TokenType.SLASH.isUserDefinableOperator, isTrue); 1434 expect(TokenType.SLASH.isUserDefinableOperator, isTrue);
1437 expect(TokenType.STAR.isUserDefinableOperator, isTrue); 1435 expect(TokenType.STAR.isUserDefinableOperator, isTrue);
1438 expect(TokenType.TILDE.isUserDefinableOperator, isTrue); 1436 expect(TokenType.TILDE.isUserDefinableOperator, isTrue);
1439 expect(TokenType.TILDE_SLASH.isUserDefinableOperator, isTrue); 1437 expect(TokenType.TILDE_SLASH.isUserDefinableOperator, isTrue);
1440 } 1438 }
1441 } 1439 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/resolver_test.dart ('k') | pkg/analyzer/test/generated/sdk_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698