OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 matcher.prints_matchers_test; | 5 library unittest.prints_matchers_test; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:metatest/metatest.dart'; | 9 import 'package:metatest/metatest.dart'; |
10 import 'package:unittest/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
11 | 11 |
12 /// The VM and dart2js have different toStrings for closures. | 12 /// The VM and dart2js have different toStrings for closures. |
13 final closureToString = (() {}).toString(); | 13 final closureToString = (() {}).toString(); |
14 | 14 |
15 void main() => initTests(_test); | 15 void main() => initTests(_test); |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 ''') | 135 ''') |
136 }, | 136 }, |
137 { | 137 { |
138 'result': 'fail', | 138 'result': 'fail', |
139 'message': startsWith(r'''Expected future to complete successfully, but it
failed with Expected: contains 'Goodbye' | 139 'message': startsWith(r'''Expected future to complete successfully, but it
failed with Expected: contains 'Goodbye' |
140 Actual: '' | 140 Actual: '' |
141 ''') | 141 ''') |
142 } | 142 } |
143 ]); | 143 ]); |
144 } | 144 } |
OLD | NEW |