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

Unified Diff: lib/unittest/expectation.dart

Issue 10080005: Support Expectation.identical. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressing Bob's comments Created 8 years, 8 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 | « client/tests/client/dom/MessageEventTest.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/unittest/expectation.dart
diff --git a/lib/unittest/expectation.dart b/lib/unittest/expectation.dart
index a0add00c0bf449aa476cb7541291c70a7d4c8b88..624605bd0f6c8ba1f84cef66fd668b0d6a7f28e9 100644
--- a/lib/unittest/expectation.dart
+++ b/lib/unittest/expectation.dart
@@ -38,6 +38,13 @@ class Expectation {
Expect.approxEquals(expected, _value, tolerance: tolerance, reason: reason);
}
+ /**
+ * Asserts that two objects are same (using [:===:]).
+ */
+ void same(expected) {
+ Expect.identical(_value, expected);
+ }
+
/** Asserts that the value is [null]. */
void isNull() {
Expect.equals(null, _value);
« no previous file with comments | « client/tests/client/dom/MessageEventTest.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698