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

Unified Diff: samples/tests/samples/lib/observable/observable_test.dart

Issue 10441104: New expectation functions plus convert old tests to use these. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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: samples/tests/samples/lib/observable/observable_test.dart
===================================================================
--- samples/tests/samples/lib/observable/observable_test.dart (revision 8345)
+++ samples/tests/samples/lib/observable/observable_test.dart (working copy)
@@ -25,12 +25,12 @@
}
void validateEvent(ChangeEvent e, target, pName, index, type, newVal, oldVal) {
- expect(e.target).equals(target);
- expect(e.propertyName).equals(pName);
- expect(e.index).equals(index);
- expect(e.type).equals(type);
- expect(e.newValue).equals(newVal);
- expect(e.oldValue).equals(oldVal);
+ expect(e.target, equals(target));
+ expect(e.propertyName, equals(pName));
+ expect(e.index, equals(index));
+ expect(e.type, equals(type));
+ expect(e.newValue, equals(newVal));
+ expect(e.oldValue, equals(oldVal));
}
void validateGlobal(ChangeEvent e, target) {

Powered by Google App Engine
This is Rietveld 408576698