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 import 'package:testing/testing.dart'; | 5 import 'package:testing/testing.dart'; |
6 | 6 |
7 import 'package:front_end/src/fasta/testing/scanner_chain.dart'; | 7 import 'package:front_end/src/fasta/testing/scanner_chain.dart'; |
8 | 8 |
9 Future<ChainContext> createContext( | 9 Future<ChainContext> createContext( |
10 Chain suite, Map<String, String> environment) async { | 10 Chain suite, Map<String, String> environment) async { |
11 return new ScannerContext(); | 11 return new ScannerContext(); |
12 } | 12 } |
13 | 13 |
14 class ScannerContext extends ChainContext { | 14 class ScannerContext extends ChainContext { |
15 final List<Step> steps = const <Step>[ | 15 final List<Step> steps = const <Step>[ |
16 const Read(), | 16 const Read(), |
17 const Scan(), | 17 const Scan(), |
18 ]; | 18 ]; |
19 } | 19 } |
20 | 20 |
21 main(List<String> arguments) => | 21 main(List<String> arguments) => |
22 runMe(arguments, createContext, "../testing.json"); | 22 runMe(arguments, createContext, "../../../testing.json"); |
OLD | NEW |