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

Side by Side Diff: lib/src/simple_configuration.dart

Issue 1135653004: pkg/(unit)test: include a copy of old matcher (Closed) Base URL: https://github.com/dart-lang/test.git@stable
Patch Set: another nit Created 5 years, 7 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 | « lib/src/matcher/util.dart ('k') | lib/unittest.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library unittest.simple_configuration; 5 library unittest.simple_configuration;
6 6
7 import 'dart:isolate'; 7 import 'dart:isolate';
8 8
9 import 'package:matcher/matcher.dart' 9 import 'matcher.dart'
10 show DefaultFailureHandler, configureExpectFailureHandler, TestFailure; 10 show DefaultFailureHandler, configureExpectFailureHandler, TestFailure;
11 11
12 import '../unittest.dart'; 12 import '../unittest.dart';
13 import 'internal_test_case.dart'; 13 import 'internal_test_case.dart';
14 import 'utils.dart'; 14 import 'utils.dart';
15 15
16 // A custom failure handler for [expect] that routes failures to the 16 // A custom failure handler for [expect] that routes failures to the
17 // [SimpleConfiguration]. 17 // [SimpleConfiguration].
18 class _ExpectFailureHandler extends DefaultFailureHandler { 18 class _ExpectFailureHandler extends DefaultFailureHandler {
19 final SimpleConfiguration _config; 19 final SimpleConfiguration _config;
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 } 198 }
199 } 199 }
200 } 200 }
201 201
202 void _postMessage(String message) { 202 void _postMessage(String message) {
203 // In dart2js browser tests, the JavaScript-based test controller 203 // In dart2js browser tests, the JavaScript-based test controller
204 // intercepts calls to print and listens for "secret" messages. 204 // intercepts calls to print and listens for "secret" messages.
205 print(message); 205 print(message);
206 } 206 }
207 } 207 }
OLDNEW
« no previous file with comments | « lib/src/matcher/util.dart ('k') | lib/unittest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698