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 unittest.backend.test_platform; | 5 library test.backend.test_platform; |
6 | 6 |
7 // TODO(nweiz): support pluggable platforms. | 7 // TODO(nweiz): support pluggable platforms. |
8 /// An enum of all platforms on which tests can run. | 8 /// An enum of all platforms on which tests can run. |
9 class TestPlatform { | 9 class TestPlatform { |
10 // When adding new platforms, be sure to update the baseline and derived | 10 // When adding new platforms, be sure to update the baseline and derived |
11 // variable tests in test/backend/platform_selector/evaluate_test. | 11 // variable tests in test/backend/platform_selector/evaluate_test. |
12 | 12 |
13 /// The command-line Dart VM. | 13 /// The command-line Dart VM. |
14 static const vm = const TestPlatform._("VM", "vm", isDartVm: true); | 14 static const vm = const TestPlatform._("VM", "vm", isDartVm: true); |
15 | 15 |
(...skipping 27 matching lines...) Expand all Loading... |
43 final bool isJS; | 43 final bool isJS; |
44 | 44 |
45 /// Whether this platform uses the Blink rendering engine. | 45 /// Whether this platform uses the Blink rendering engine. |
46 final bool isBlink; | 46 final bool isBlink; |
47 | 47 |
48 const TestPlatform._(this.name, this.identifier, {this.isDartVm: false, | 48 const TestPlatform._(this.name, this.identifier, {this.isDartVm: false, |
49 this.isBrowser: false, this.isJS: false, this.isBlink: false}); | 49 this.isBrowser: false, this.isJS: false, this.isBlink: false}); |
50 | 50 |
51 String toString() => name; | 51 String toString() => name; |
52 } | 52 } |
OLD | NEW |