OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 import 'dart:io'; | 5 import 'dart:io'; |
6 | 6 |
| 7 import 'package:analyzer/src/generated/ast.dart'; |
7 import 'package:path/path.dart' as p; | 8 import 'package:path/path.dart' as p; |
8 import 'package:unittest/unittest.dart'; | 9 import 'package:unittest/unittest.dart'; |
9 import 'package:unittest/src/util/dart.dart'; | 10 import 'package:unittest/src/util/dart.dart'; |
10 | 11 |
11 String _sandbox; | 12 String _sandbox; |
12 String _path; | 13 String _path; |
13 | 14 |
14 void main() { | 15 void main() { |
15 setUp(() { | 16 setUp(() { |
16 _sandbox = Directory.systemTemp.createTempSync('unittest_').path; | 17 _sandbox = Directory.systemTemp.createTempSync('unittest_').path; |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 170 |
170 var annotations = parseAnnotations(_path); | 171 var annotations = parseAnnotations(_path); |
171 expect(annotations, hasLength(2)); | 172 expect(annotations, hasLength(2)); |
172 expect(annotations[0].name.name, equals('Annotation1')); | 173 expect(annotations[0].name.name, equals('Annotation1')); |
173 expect(annotations[0].arguments.arguments, isEmpty); | 174 expect(annotations[0].arguments.arguments, isEmpty); |
174 expect(annotations[1].name.name, equals('Annotation2')); | 175 expect(annotations[1].name.name, equals('Annotation2')); |
175 expect(annotations[1].arguments.arguments, isEmpty); | 176 expect(annotations[1].arguments.arguments, isEmpty); |
176 }); | 177 }); |
177 }); | 178 }); |
178 } | 179 } |
OLD | NEW |