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

Unified Diff: test/future_matchers_test.dart

Issue 840133003: matcher: fixed status file, formatting, tweaks to readme (Closed) Base URL: https://github.com/dart-lang/matcher.git@master
Patch Set: nits Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/core_matchers_test.dart ('k') | test/iterable_matchers_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/future_matchers_test.dart
diff --git a/test/future_matchers_test.dart b/test/future_matchers_test.dart
index 6fac0de819f17d5d872d5aaa93097056ed3286fb..4e21ea2e41a5665fe76a4394fa3b94b0b5238688 100644
--- a/test/future_matchers_test.dart
+++ b/test/future_matchers_test.dart
@@ -17,10 +17,9 @@ void main() {
test('completes - unexpected error', () {
var completer = new Completer();
completer.completeError('X');
- shouldFail(completer.future, completes,
- contains('Expected future to complete successfully, '
- 'but it failed with X'),
- isAsync: true);
+ shouldFail(completer.future, completes, contains(
+ 'Expected future to complete successfully, '
+ 'but it failed with X'), isAsync: true);
});
test('completes - successfully', () {
@@ -33,8 +32,8 @@ void main() {
var completer = new Completer();
completer.complete('1');
shouldFail(completer.future, throws,
- contains("Expected future to fail, but succeeded with '1'"),
- isAsync: true);
+ contains("Expected future to fail, but succeeded with '1'"),
+ isAsync: true);
});
test('throws - expected to see exception', () {
@@ -45,7 +44,9 @@ void main() {
test('throws - expected to see exception thrown later on', () {
var completer = new Completer();
- var chained = completer.future.then((_) { throw 'X'; });
+ var chained = completer.future.then((_) {
+ throw 'X';
+ });
shouldPass(chained, throws, isAsync: true);
completer.complete('1');
});
@@ -54,8 +55,8 @@ void main() {
var completer = new Completer();
completer.complete('1');
shouldFail(completer.future, throwsA(equals('X')),
- contains("Expected future to fail, but succeeded with '1'"),
- isAsync: true);
+ contains("Expected future to fail, but succeeded with '1'"),
+ isAsync: true);
});
test('throwsA - correct error', () {
@@ -70,7 +71,6 @@ void main() {
shouldFail(completer.future, throwsA(equals('Y')),
"Expected: 'Y' Actual: 'X' "
"Which: is different. "
- "Expected: Y Actual: X ^ Differ at offset 0",
- isAsync: true);
+ "Expected: Y Actual: X ^ Differ at offset 0", isAsync: true);
});
}
« no previous file with comments | « test/core_matchers_test.dart ('k') | test/iterable_matchers_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698