OLD | NEW |
1 // Copyright (c) 2016, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dartino 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 tests.fletchc.incremental.experimental_mode; | 5 library tests.dartino_compiler.incremental.experimental_mode; |
6 | 6 |
7 import 'feature_test.dart' show | 7 import 'feature_test.dart' show |
8 compileAndRun; | 8 compileAndRun; |
9 | 9 |
10 import 'package:fletchc/incremental/fletchc_incremental.dart' show | 10 import 'package:dartino_compiler/incremental/dartino_compiler_incremental.dart'
show |
11 IncrementalMode; | 11 IncrementalMode; |
12 | 12 |
13 import 'common.dart'; | 13 import 'common.dart'; |
14 | 14 |
15 class ExperimentalModeTestSuite extends IncrementalTestSuite { | 15 class ExperimentalModeTestSuite extends IncrementalTestSuite { |
16 const ExperimentalModeTestSuite() | 16 const ExperimentalModeTestSuite() |
17 : super("experimental"); | 17 : super("experimental"); |
18 | 18 |
19 Future<Null> run(String testName, EncodedResult encodedResult) { | 19 Future<Null> run(String testName, EncodedResult encodedResult) { |
20 return compileAndRun( | 20 return compileAndRun( |
21 testName, encodedResult, incrementalMode: IncrementalMode.experimental); | 21 testName, encodedResult, incrementalMode: IncrementalMode.experimental); |
22 } | 22 } |
23 } | 23 } |
24 | 24 |
25 const ExperimentalModeTestSuite suite = const ExperimentalModeTestSuite(); | 25 const ExperimentalModeTestSuite suite = const ExperimentalModeTestSuite(); |
26 | 26 |
27 /// Invoked by ../../fletch_tests/fletch_test_suite.dart. | 27 /// Invoked by ../../dartino_tests/dartino_test_suite.dart. |
28 Future<Map<String, NoArgFuture>> list() => suite.list(); | 28 Future<Map<String, NoArgFuture>> list() => suite.list(); |
29 | 29 |
30 Future<Null> main(List<String> arguments) => suite.runFromMain(arguments); | 30 Future<Null> main(List<String> arguments) => suite.runFromMain(arguments); |
OLD | NEW |