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

Unified Diff: pkg/matcher/lib/src/core_matchers.dart

Issue 208823005: pkg/matcher (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nit Created 6 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 | « pkg/matcher/lib/mirror_matchers.dart ('k') | pkg/matcher/lib/src/description.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/matcher/lib/src/core_matchers.dart
diff --git a/pkg/unittest/lib/src/core_matchers.dart b/pkg/matcher/lib/src/core_matchers.dart
similarity index 99%
copy from pkg/unittest/lib/src/core_matchers.dart
copy to pkg/matcher/lib/src/core_matchers.dart
index e8ffbc1b723f0b53d753c6c03ef97b409e08cde5..7acd7b4c66ffc03ad540eacf204ae18e43777c04 100644
--- a/pkg/unittest/lib/src/core_matchers.dart
+++ b/pkg/matcher/lib/src/core_matchers.dart
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-part of unittest.matcher;
+part of matcher;
/**
* Returns a matcher that matches empty strings, maps or iterables
@@ -700,9 +700,8 @@ class _HasLength extends Matcher {
if (item.length * item.length >= 0) {
return _matcher.matches(item.length, matchState);
}
- } catch (e) {
- return false;
- }
+ } catch (e) {}
+ return false;
}
Description describe(Description description) =>
@@ -718,9 +717,8 @@ class _HasLength extends Matcher {
return mismatchDescription.add('has length of ').
addDescriptionOf(item.length);
}
- } catch (e) {
- return mismatchDescription.add('has no length property');
- }
+ } catch (e) {}
+ return mismatchDescription.add('has no length property');
}
}
« no previous file with comments | « pkg/matcher/lib/mirror_matchers.dart ('k') | pkg/matcher/lib/src/description.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698