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

Side by Side Diff: lib/src/testing.dart

Issue 1166683005: upgrade dependencies, including migration to package:test (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 6 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 | « lib/src/options.dart ('k') | pubspec.yaml » ('j') | 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 library dev_compiler.src.testing; 5 library dev_compiler.src.testing;
6 6
7 import 'package:analyzer/file_system/file_system.dart'; 7 import 'package:analyzer/file_system/file_system.dart';
8 import 'package:analyzer/file_system/memory_file_system.dart'; 8 import 'package:analyzer/file_system/memory_file_system.dart';
9 import 'package:analyzer/src/generated/ast.dart'; 9 import 'package:analyzer/src/generated/ast.dart';
10 import 'package:analyzer/src/generated/engine.dart' show AnalysisContext; 10 import 'package:analyzer/src/generated/engine.dart' show AnalysisContext;
11 import 'package:logging/logging.dart'; 11 import 'package:logging/logging.dart';
12 import 'package:source_span/source_span.dart'; 12 import 'package:source_span/source_span.dart';
13 import 'package:unittest/unittest.dart'; 13 import 'package:test/test.dart';
14 14
15 import 'package:dev_compiler/config.dart'; 15 import 'package:dev_compiler/config.dart';
16 import 'package:dev_compiler/devc.dart' show Compiler; 16 import 'package:dev_compiler/devc.dart' show Compiler;
17 17
18 import 'analysis_context.dart'; 18 import 'analysis_context.dart';
19 import 'dependency_graph.dart' show runtimeFilesForServerMode; 19 import 'dependency_graph.dart' show runtimeFilesForServerMode;
20 import 'info.dart'; 20 import 'info.dart';
21 import 'options.dart'; 21 import 'options.dart';
22 import 'report.dart'; 22 import 'report.dart';
23 import 'utils.dart'; 23 import 'utils.dart';
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 expect(tokens[1], "should", reason: 'invalid error descriptor'); 300 expect(tokens[1], "should", reason: 'invalid error descriptor');
301 expect(tokens[2], "be", reason: 'invalid error descriptor'); 301 expect(tokens[2], "be", reason: 'invalid error descriptor');
302 if (tokens[0] == "pass") return null; 302 if (tokens[0] == "pass") return null;
303 // TODO(leafp) For now, we just use whatever the current expectation is, 303 // TODO(leafp) For now, we just use whatever the current expectation is,
304 // eventually we could do more automated reporting here. 304 // eventually we could do more automated reporting here.
305 return _parse(tokens[0]); 305 return _parse(tokens[0]);
306 } 306 }
307 307
308 String toString() => '$level $type'; 308 String toString() => '$level $type';
309 } 309 }
OLDNEW
« no previous file with comments | « lib/src/options.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698