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

Unified Diff: tests/html/css_test.dart

Issue 10544167: Some unit test fixes (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
« no previous file with comments | « tests/html/cross_frame_test.dart ('k') | tests/html/cssstyledeclaration_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/css_test.dart
===================================================================
--- tests/html/css_test.dart (revision 8732)
+++ tests/html/css_test.dart (working copy)
@@ -7,12 +7,12 @@
useHtmlConfiguration();
test('CSSMatrix', () {
CSSMatrix matrix1 = new CSSMatrix();
- Expect.equals(1, matrix1.m11.round());
- Expect.equals(0, matrix1.m12.round());
+ expect(matrix1.m11.round(), equals(1));
+ expect(matrix1.m12.round(), isZero);
CSSMatrix matrix2 = new CSSMatrix('matrix(1, 0, 0, 1, -835, 0)');
- Expect.equals(1, matrix2.a.round());
- Expect.equals(-835, matrix2.e.round());
+ expect(matrix2.a.round(), equals(1));
+ expect(matrix2.e.round(), equals(-835));
});
test('Point', () {
Element element = new Element.tag('div');
@@ -38,6 +38,6 @@
}
void checkPoint(expectedX, expectedY, Point point) {
- Expect.equals(expectedX, point.x.round(), 'Wrong point.x');
- Expect.equals(expectedY, point.y.round(), 'Wrong point.y');
+ expect(point.x.round(), equals(expectedX), 'Wrong point.x');
+ expect(point.y.round(), equals(expectedY), 'Wrong point.y');
}
« no previous file with comments | « tests/html/cross_frame_test.dart ('k') | tests/html/cssstyledeclaration_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698