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

Side by Side Diff: tests/html/css_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, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #library('CSSTest'); 1 #library('CSSTest');
2 #import('../../pkg/unittest/unittest.dart'); 2 #import('../../pkg/unittest/unittest.dart');
3 #import('../../pkg/unittest/html_config.dart'); 3 #import('../../pkg/unittest/html_config.dart');
4 #import('dart:html'); 4 #import('dart:html');
5 5
6 main() { 6 main() {
7 useHtmlConfiguration(); 7 useHtmlConfiguration();
8 test('CSSMatrix', () { 8 test('CSSMatrix', () {
9 CSSMatrix matrix1 = new CSSMatrix(); 9 CSSMatrix matrix1 = new CSSMatrix();
10 expect(matrix1.m11.round(), equals(1)); 10 expect(matrix1.m11.round(), equals(1));
(...skipping 20 matching lines...) Expand all
31 Point point = new Point(5, 2); 31 Point point = new Point(5, 2);
32 checkPoint(5, 2, point); 32 checkPoint(5, 2, point);
33 checkPoint(256, 110, window.webkitConvertPointFromNodeToPage(element, point) ); 33 checkPoint(256, 110, window.webkitConvertPointFromNodeToPage(element, point) );
34 point.y = 100; 34 point.y = 100;
35 checkPoint(5, 100, point); 35 checkPoint(5, 100, point);
36 checkPoint(254, 196, window.webkitConvertPointFromNodeToPage(element, point) ); 36 checkPoint(254, 196, window.webkitConvertPointFromNodeToPage(element, point) );
37 }); 37 });
38 } 38 }
39 39
40 void checkPoint(expectedX, expectedY, Point point) { 40 void checkPoint(expectedX, expectedY, Point point) {
41 expect(point.x.round(), equals(expectedX), 'Wrong point.x'); 41 expect(point.x.round(), equals(expectedX), reason: 'Wrong point.x');
42 expect(point.y.round(), equals(expectedY), 'Wrong point.y'); 42 expect(point.y.round(), equals(expectedY), reason: 'Wrong point.y');
43 } 43 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698