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

Side by Side Diff: test/runner/browser/runner_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/src/util/exit_codes.dart' as exit_codes; 10 import 'package:unittest/src/util/exit_codes.dart' as exit_codes;
9 import 'package:unittest/unittest.dart'; 11 import 'package:unittest/unittest.dart';
10 12
11 import '../../io.dart'; 13 import '../../io.dart';
12 14
13 String _sandbox; 15 String _sandbox;
14 16
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 } 154 }
153 """); 155 """);
154 var result = _runUnittest(["-p", "chrome", "-p", "vm", "test.dart"]); 156 var result = _runUnittest(["-p", "chrome", "-p", "vm", "test.dart"]);
155 expect(result.exitCode, equals(1)); 157 expect(result.exitCode, equals(1));
156 }); 158 });
157 }); 159 });
158 } 160 }
159 161
160 ProcessResult _runUnittest(List<String> args) => 162 ProcessResult _runUnittest(List<String> args) =>
161 runUnittest(args, workingDirectory: _sandbox); 163 runUnittest(args, workingDirectory: _sandbox);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698