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

Unified Diff: test/frontend/matcher/throws_test.dart

Issue 1031063003: Fix tests that were broken in Chrome. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/frontend/matcher/prints_test.dart ('k') | test/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/frontend/matcher/throws_test.dart
diff --git a/test/frontend/matcher/throws_test.dart b/test/frontend/matcher/throws_test.dart
index b61cd7642928bdeb86bb3c54a9c926e3d0aa295a..bc5e6921dcbf9c37a1c3e0e153ab0afea2b43a64 100644
--- a/test/frontend/matcher/throws_test.dart
+++ b/test/frontend/matcher/throws_test.dart
@@ -21,7 +21,7 @@ void main() {
}).then((liveTest) {
expectTestFailed(liveTest,
"Expected: throws\n"
- " Actual: <Closure: () => dynamic>\n"
+ " Actual: <$closureString>\n"
" Which: did not throw\n");
});
});
@@ -54,7 +54,7 @@ void main() {
}).then((liveTest) {
expectTestFailed(liveTest,
"Expected: throws 'oh no'\n"
- " Actual: <Closure: () => dynamic>\n"
+ " Actual: <$closureString>\n"
" Which: did not throw\n");
});
});
@@ -76,7 +76,7 @@ void main() {
}).then((liveTest) {
expectTestFailed(liveTest,
"Expected: throws 'oh no'\n"
- " Actual: <Closure: () => dynamic>\n"
+ " Actual: <$closureString>\n"
" Which: threw 'aw dang'\n");
});
});
@@ -132,7 +132,7 @@ void main() {
}).then((liveTest) {
expectTestFailed(liveTest, startsWith(
"Expected: throws 'oh no'\n"
- " Actual: <Closure: () => dynamic>\n"
+ " Actual: <$closureString>\n"
" Which: threw 'aw dang'\n"));
});
});
« no previous file with comments | « test/frontend/matcher/prints_test.dart ('k') | test/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698