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

Side by Side Diff: test/runner/browser/compact_reporter_test.dart

Issue 1027193004: Respect top-level @TestOn declarations. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Add another test. Created 5 years, 9 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")
6
5 import 'dart:io'; 7 import 'dart:io';
6 8
7 import 'package:path/path.dart' as p; 9 import 'package:path/path.dart' as p;
8 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
9 11
10 import '../../io.dart'; 12 import '../../io.dart';
11 13
12 String _sandbox; 14 String _sandbox;
13 15
14 void main() { 16 void main() {
(...skipping 19 matching lines...) Expand all
34 36
35 var result = _runUnittest(["-p", "chrome", "-p", "vm", "test.dart"]); 37 var result = _runUnittest(["-p", "chrome", "-p", "vm", "test.dart"]);
36 expect(result.stdout, contains("[VM]")); 38 expect(result.stdout, contains("[VM]"));
37 expect(result.stdout, contains("[Chrome]")); 39 expect(result.stdout, contains("[Chrome]"));
38 expect(result.exitCode, equals(0)); 40 expect(result.exitCode, equals(0));
39 }); 41 });
40 } 42 }
41 43
42 ProcessResult _runUnittest(List<String> args) => 44 ProcessResult _runUnittest(List<String> args) =>
43 runUnittest(args, workingDirectory: _sandbox); 45 runUnittest(args, workingDirectory: _sandbox);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698