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

Unified Diff: sdk/lib/_internal/pub/test/validator/dependency_test.dart

Issue 20172003: Replace someElement with anyElement. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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
Index: sdk/lib/_internal/pub/test/validator/dependency_test.dart
===================================================================
--- sdk/lib/_internal/pub/test/validator/dependency_test.dart (revision 25450)
+++ sdk/lib/_internal/pub/test/validator/dependency_test.dart (working copy)
@@ -22,12 +22,12 @@
expectDependencyValidationError(String error) {
expect(schedulePackageValidation(dependency),
- completion(pairOf(someElement(contains(error)), isEmpty)));
+ completion(pairOf(anyElement(contains(error)), isEmpty)));
}
expectDependencyValidationWarning(String warning) {
expect(schedulePackageValidation(dependency),
- completion(pairOf(isEmpty, someElement(contains(warning)))));
+ completion(pairOf(isEmpty, anyElement(contains(warning)))));
}
/// Sets up a test package with dependency [dep] and mocks a server with
« pkg/unittest/lib/src/iterable_matchers.dart ('K') | « pkg/unittest/test/matchers_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698