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

Unified Diff: tests/html/svg_1_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/svg_1_test.dart
===================================================================
--- tests/html/svg_1_test.dart (revision 14114)
+++ tests/html/svg_1_test.dart (working copy)
@@ -19,14 +19,14 @@
''';
var e = document.query('#svg1');
- Expect.isTrue(e != null);
+ expect(e, isNotNull);
SVGRectElement r = document.query('#rect1');
- Expect.equals(10, r.x.baseVal.value);
- Expect.equals(20, r.y.baseVal.value);
- Expect.equals(40, r.height.baseVal.value);
- Expect.equals(130, r.width.baseVal.value);
- Expect.equals(5, r.rx.baseVal.value);
+ expect(r.x.baseVal.value, 10);
+ expect(r.y.baseVal.value, 20);
+ expect(r.height.baseVal.value, 40);
+ expect(r.width.baseVal.value, 130);
+ expect(r.rx.baseVal.value, 5);
});
test('trailing newline', () {
@@ -37,7 +37,7 @@
</svg>
""");
- expect(logo is SVGElement, true);
+ expect(logo, new isInstanceOf<SVGElement>('SVGElement'));
});
}

Powered by Google App Engine
This is Rietveld 408576698