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

Unified Diff: tests/html/selectelement_test.dart

Issue 11275054: Modified unittest to use new argument syntax. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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: tests/html/selectelement_test.dart
===================================================================
--- tests/html/selectelement_test.dart (revision 14156)
+++ tests/html/selectelement_test.dart (working copy)
@@ -23,7 +23,7 @@
];
element.elements.addAll(options);
expect(element.selectedOptions.length, 1);
- expect(element.selectedOptions[0] == options[4]);
+ expect(element.selectedOptions[0], equals(options[4]));
});
test('multiple selectedOptions', () {
@@ -39,8 +39,8 @@
];
element.elements.addAll(options);
expect(element.selectedOptions.length, 2);
- expect(element.selectedOptions[0] == options[2]);
- expect(element.selectedOptions[1] == options[4]);
+ expect(element.selectedOptions[0], equals(options[2]));
+ expect(element.selectedOptions[1], equals(options[4]));
});
test('options', () {
@@ -53,6 +53,6 @@
];
element.elements.addAll(options);
// Use last to make sure that the list was correctly wrapped.
- expect(element.options.last, options[3]);
+ expect(element.options.last, equals(options[3]));
});
}

Powered by Google App Engine
This is Rietveld 408576698