| 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 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 Loading... |
| 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 } |
| OLD | NEW |