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

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

Issue 979523002: Move more files around. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: 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
« no previous file with comments | « test/runner/browser/chrome_test.dart ('k') | test/runner/engine_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 import 'dart:io'; 5 import 'dart:io';
6 6
7 import 'package:path/path.dart' as p; 7 import 'package:path/path.dart' as p;
8 import 'package:unittest/src/util/io.dart'; 8 import 'package:unittest/src/util/io.dart';
9 import 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
10 10
11 import 'io.dart'; 11 import '../io.dart';
12 12
13 String _sandbox; 13 String _sandbox;
14 14
15 void main() { 15 void main() {
16 test("reports when no tests are run", () { 16 test("reports when no tests are run", () {
17 return withTempDir((path) { 17 return withTempDir((path) {
18 new File(p.join(path, "test.dart")).writeAsStringSync("void main() {}"); 18 new File(p.join(path, "test.dart")).writeAsStringSync("void main() {}");
19 var result = runUnittest(["test.dart"], workingDirectory: path); 19 var result = runUnittest(["test.dart"], workingDirectory: path);
20 expect(result.stdout, equals("No tests ran.\n")); 20 expect(result.stdout, equals("No tests ran.\n"));
21 }); 21 });
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // Un-indent the expected string. 169 // Un-indent the expected string.
170 var indentation = expected.indexOf(new RegExp("[^ ]")); 170 var indentation = expected.indexOf(new RegExp("[^ ]"));
171 expected = expected.split("\n").map((line) { 171 expected = expected.split("\n").map((line) {
172 if (line.isEmpty) return line; 172 if (line.isEmpty) return line;
173 return line.substring(indentation); 173 return line.substring(indentation);
174 }).join("\n"); 174 }).join("\n");
175 175
176 expect(actual, equals(expected)); 176 expect(actual, equals(expected));
177 }), completes); 177 }), completes);
178 } 178 }
OLDNEW
« no previous file with comments | « test/runner/browser/chrome_test.dart ('k') | test/runner/engine_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698