| Index: test/runner/test_on_test.dart
|
| diff --git a/test/runner/test_on_test.dart b/test/runner/test_on_test.dart
|
| index 3fa8608def15f51da555a0b7e5be3d039bdf866a..99b7986ce38566359b432c3bdaf23411d141cfbd 100644
|
| --- a/test/runner/test_on_test.dart
|
| +++ b/test/runner/test_on_test.dart
|
| @@ -4,8 +4,6 @@
|
|
|
| @TestOn("vm")
|
|
|
| -import 'dart:io';
|
| -
|
| import 'package:scheduled_test/descriptor.dart' as d;
|
| import 'package:scheduled_test/scheduled_stream.dart';
|
| import 'package:scheduled_test/scheduled_test.dart';
|
| @@ -34,7 +32,7 @@ void main() {
|
| }, tags: 'content-shell');
|
|
|
| test("runs a test suite on a matching operating system", () {
|
| - _writeTestFile("os_test.dart", suiteTestOn: currentOS.name);
|
| + _writeTestFile("os_test.dart", suiteTestOn: currentOS.identifier);
|
|
|
| var test = runTest(["os_test.dart"]);
|
| test.stdout.expect(consumeThrough(contains("All tests passed!")));
|
| @@ -42,7 +40,7 @@ void main() {
|
| });
|
|
|
| test("doesn't run a test suite on a non-matching operating system", () {
|
| - _writeTestFile("os_test.dart", suiteTestOn: _otherOS,
|
| + _writeTestFile("os_test.dart", suiteTestOn: otherOS,
|
| loadable: false);
|
|
|
| var test = runTest(["os_test.dart"]);
|
| @@ -54,9 +52,9 @@ void main() {
|
| _writeTestFile("vm_test.dart", suiteTestOn: "vm");
|
| _writeTestFile("browser_test.dart",
|
| suiteTestOn: "browser", loadable: false);
|
| - _writeTestFile("this_os_test.dart", suiteTestOn: currentOS.name);
|
| + _writeTestFile("this_os_test.dart", suiteTestOn: currentOS.identifier);
|
| _writeTestFile("other_os_test.dart",
|
| - suiteTestOn: _otherOS, loadable: false);
|
| + suiteTestOn: otherOS, loadable: false);
|
|
|
| var test = runTest(["."]);
|
| test.stdout.expect(consumeThrough(contains("+2: All tests passed!")));
|
|
|