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

Side by Side Diff: test/runner/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/src/util/io.dart'; 10 import 'package:unittest/src/util/io.dart';
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 void main() { 15 void main() {
14 test("reports when no tests are run", () { 16 test("reports when no tests are run", () {
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 // Un-indent the expected string. 158 // Un-indent the expected string.
157 var indentation = expected.indexOf(new RegExp("[^ ]")); 159 var indentation = expected.indexOf(new RegExp("[^ ]"));
158 expected = expected.split("\n").map((line) { 160 expected = expected.split("\n").map((line) {
159 if (line.isEmpty) return line; 161 if (line.isEmpty) return line;
160 return line.substring(indentation); 162 return line.substring(indentation);
161 }).join("\n"); 163 }).join("\n");
162 164
163 expect(actual, equals(expected)); 165 expect(actual, equals(expected));
164 }), completes); 166 }), completes);
165 } 167 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698