Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: test/runner/test_on_test.dart

Issue 1715523003: Warn when an unsupported platform is passed. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 @TestOn("vm") 5 @TestOn("vm")
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'package:scheduled_test/descriptor.dart' as d; 9 import 'package:scheduled_test/descriptor.dart' as d;
10 import 'package:scheduled_test/scheduled_stream.dart'; 10 import 'package:scheduled_test/scheduled_stream.dart';
11 import 'package:scheduled_test/scheduled_test.dart'; 11 import 'package:scheduled_test/scheduled_test.dart';
12 import 'package:test/src/util/io.dart'; 12 import 'package:test/src/util/io.dart';
13 13
14 import '../io.dart'; 14 import '../io.dart';
15 15
16 final _otherOS = Platform.isWindows ? "mac-os" : "windows";
17
18 void main() { 16 void main() {
19 useSandbox(); 17 useSandbox();
20 18
21 group("for suite", () { 19 group("for suite", () {
22 test("runs a test suite on a matching platform", () { 20 test("runs a test suite on a matching platform", () {
23 _writeTestFile("vm_test.dart", suiteTestOn: "vm"); 21 _writeTestFile("vm_test.dart", suiteTestOn: "vm");
24 22
25 var test = runTest(["vm_test.dart"]); 23 var test = runTest(["vm_test.dart"]);
26 test.stdout.expect(consumeThrough(contains("All tests passed!"))); 24 test.stdout.expect(consumeThrough(contains("All tests passed!")));
27 test.shouldExit(0); 25 test.shouldExit(0);
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 if (groupTestOn != null) { 198 if (groupTestOn != null) {
201 buffer.writeln(" }, testOn: '$groupTestOn');"); 199 buffer.writeln(" }, testOn: '$groupTestOn');");
202 } else { 200 } else {
203 buffer.writeln(" });"); 201 buffer.writeln(" });");
204 } 202 }
205 203
206 buffer.writeln("}"); 204 buffer.writeln("}");
207 205
208 d.file(filename, buffer.toString()).create(); 206 d.file(filename, buffer.toString()).create();
209 } 207 }
OLDNEW
« lib/src/backend/operating_system.dart ('K') | « test/runner/configuration/top_level_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698