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

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

Issue 1081533002: Re-add exit_codes import to runner_test. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 5 years, 8 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 | « no previous file | test/runner/runner_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 @TestOn("vm") 5 @TestOn("vm")
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'package:path/path.dart' as p; 9 import 'package:path/path.dart' as p;
10 import 'package:test/src/util/exit_codes.dart' as exit_codes;
11 import 'package:test/src/util/io.dart'; 10 import 'package:test/src/util/io.dart';
12 import 'package:test/test.dart'; 11 import 'package:test/test.dart';
13 12
14 import '../../io.dart'; 13 import '../../io.dart';
15 14
16 String _sandbox; 15 String _sandbox;
17 16
18 final _success = """ 17 final _success = """
19 import 'dart:async'; 18 import 'dart:async';
20 19
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 """); 215 """);
217 216
218 var result = _runUnittest(["-p", "chrome", "test.dart"]); 217 var result = _runUnittest(["-p", "chrome", "test.dart"]);
219 expect(result.stdout, contains("Hello,\nworld!\n")); 218 expect(result.stdout, contains("Hello,\nworld!\n"));
220 expect(result.exitCode, equals(0)); 219 expect(result.exitCode, equals(0));
221 }); 220 });
222 } 221 }
223 222
224 ProcessResult _runUnittest(List<String> args) => 223 ProcessResult _runUnittest(List<String> args) =>
225 runUnittest(args, workingDirectory: _sandbox); 224 runUnittest(args, workingDirectory: _sandbox);
OLDNEW
« no previous file with comments | « no previous file | test/runner/runner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698