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

Side by Side Diff: test/util/parse_annotations_test.dart

Issue 1010803010: pkg/unittest: fix analyzer errors (Closed) Base URL: https://github.com/dart-lang/unittest.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « test/backend/platform_selector/ast_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « test/backend/platform_selector/ast_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698