OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 library fasta.test.compile_test; | 5 library fasta.test.compile_test; |
6 | 6 |
7 import 'dart:async' show Future; | 7 import 'dart:async' show Future; |
8 | 8 |
9 import 'testing/suite.dart'; | 9 import 'testing/suite.dart'; |
10 | 10 |
11 Future<FastaContext> createContext( | 11 Future<FastaContext> createContext( |
12 Chain suite, Map<String, String> environment) { | 12 Chain suite, Map<String, String> environment) { |
13 environment[ENABLE_FULL_COMPILE] = ""; | 13 environment[ENABLE_FULL_COMPILE] = ""; |
14 environment[AST_KIND_INDEX] = "${AstKind.Analyzer.index}"; | 14 environment[AST_KIND_INDEX] = "${AstKind.Analyzer.index}"; |
15 return FastaContext.create(suite, environment); | 15 return FastaContext.create(suite, environment); |
16 } | 16 } |
17 | 17 |
18 main(List<String> arguments) => runMe(arguments, createContext, "testing.json"); | 18 main(List<String> arguments) => |
| 19 runMe(arguments, createContext, "../../testing.json"); |
OLD | NEW |