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

Unified Diff: packages/matcher/test/string_matchers_test.dart

Issue 3015713002: Roll to pickup pool changes
Patch Set: Created 3 years, 3 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 | « packages/matcher/test/core_matchers_test.dart ('k') | packages/meta/.packages » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/matcher/test/string_matchers_test.dart
diff --git a/packages/matcher/test/string_matchers_test.dart b/packages/matcher/test/string_matchers_test.dart
index 5b5afe4ce4c8ecdd55e1a206ff18b1f057077442..28d085c02b825fd871976b54fb15ce5afa7eba89 100644
--- a/packages/matcher/test/string_matchers_test.dart
+++ b/packages/matcher/test/string_matchers_test.dart
@@ -13,6 +13,16 @@ void main() {
contains('Differ at offset 7'));
});
+ test("Retains outer matcher mismatch text", () {
+ shouldFail(
+ {'word': 'thing'},
+ containsPair('word', equals('notthing')),
+ allOf([
+ contains("contains key 'word' but with value is different"),
+ contains("Differ at offset 0")
+ ]));
+ });
+
test('collapseWhitespace', () {
var source = '\t\r\n hello\t\r\n world\r\t \n';
expect(collapseWhitespace(source), 'hello world');
« no previous file with comments | « packages/matcher/test/core_matchers_test.dart ('k') | packages/meta/.packages » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698