OLD | NEW |
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.utilities_test; | 5 library analyzer.test.generated.utilities_test; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 | 8 |
9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
10 import 'package:analyzer/dart/ast/token.dart'; | 10 import 'package:analyzer/dart/ast/token.dart'; |
11 import 'package:analyzer/src/dart/ast/token.dart'; | 11 import 'package:analyzer/src/dart/ast/token.dart'; |
12 import 'package:analyzer/src/dart/ast/utilities.dart'; | 12 import 'package:analyzer/src/dart/ast/utilities.dart'; |
13 import 'package:analyzer/src/dart/scanner/reader.dart'; | 13 import 'package:analyzer/src/dart/scanner/reader.dart'; |
14 import 'package:analyzer/src/dart/scanner/scanner.dart'; | 14 import 'package:analyzer/src/dart/scanner/scanner.dart'; |
15 import 'package:analyzer/src/generated/java_engine.dart'; | 15 import 'package:analyzer/src/generated/java_engine.dart'; |
16 import 'package:analyzer/src/generated/parser.dart'; | 16 import 'package:analyzer/src/generated/parser.dart'; |
17 import 'package:analyzer/src/generated/source.dart'; | 17 import 'package:analyzer/src/generated/source.dart'; |
18 import 'package:analyzer/src/generated/testing/ast_factory.dart'; | 18 import 'package:analyzer/src/generated/testing/ast_factory.dart'; |
19 import 'package:analyzer/src/generated/testing/token_factory.dart'; | 19 import 'package:analyzer/src/generated/testing/token_factory.dart'; |
20 import 'package:analyzer/src/generated/utilities_collection.dart'; | 20 import 'package:analyzer/src/generated/utilities_collection.dart'; |
21 import 'package:test/test.dart'; | 21 import 'package:test/test.dart'; |
22 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 22 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
23 | 23 |
24 import '../utils.dart'; | |
25 import 'test_support.dart'; | 24 import 'test_support.dart'; |
26 | 25 |
27 main() { | 26 main() { |
28 initializeTestEnvironment(); | |
29 defineReflectiveSuite(() { | 27 defineReflectiveSuite(() { |
30 defineReflectiveTests(AstClonerTest); | 28 defineReflectiveTests(AstClonerTest); |
31 defineReflectiveTests(NodeReplacerTest); | 29 defineReflectiveTests(NodeReplacerTest); |
32 defineReflectiveTests(LineInfoTest); | 30 defineReflectiveTests(LineInfoTest); |
33 defineReflectiveTests(SourceRangeTest); | 31 defineReflectiveTests(SourceRangeTest); |
34 defineReflectiveTests(BooleanArrayTest); | 32 defineReflectiveTests(BooleanArrayTest); |
35 defineReflectiveTests(DirectedGraphTest); | 33 defineReflectiveTests(DirectedGraphTest); |
36 defineReflectiveTests(MultipleMapIteratorTest); | 34 defineReflectiveTests(MultipleMapIteratorTest); |
37 defineReflectiveTests(SingleMapIteratorTest); | 35 defineReflectiveTests(SingleMapIteratorTest); |
38 defineReflectiveTests(TokenMapTest); | 36 defineReflectiveTests(TokenMapTest); |
(...skipping 4296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4335 } | 4333 } |
4336 | 4334 |
4337 void test_get_added() { | 4335 void test_get_added() { |
4338 TokenMap tokenMap = new TokenMap(); | 4336 TokenMap tokenMap = new TokenMap(); |
4339 Token key = TokenFactory.tokenFromType(TokenType.AT); | 4337 Token key = TokenFactory.tokenFromType(TokenType.AT); |
4340 Token value = TokenFactory.tokenFromType(TokenType.AT); | 4338 Token value = TokenFactory.tokenFromType(TokenType.AT); |
4341 tokenMap.put(key, value); | 4339 tokenMap.put(key, value); |
4342 expect(tokenMap.get(key), same(value)); | 4340 expect(tokenMap.get(key), same(value)); |
4343 } | 4341 } |
4344 } | 4342 } |
OLD | NEW |