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

Unified Diff: tests/html/util.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/util.dart
===================================================================
--- tests/html/util.dart (revision 14156)
+++ tests/html/util.dart (working copy)
@@ -2,14 +2,13 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-void expectUnsupported(void fn()) =>
- Expect.throws(fn, (e) => e is UnsupportedError);
+void expectUnsupported(f) => expect(f, throwsUnsupportedError);
void expectEmptyRect(ClientRect rect) {
- Expect.equals(0, rect.bottom);
- Expect.equals(0, rect.top);
- Expect.equals(0, rect.left);
- Expect.equals(0, rect.right);
- Expect.equals(0, rect.height);
- Expect.equals(0, rect.width);
+ expect(rect.bottom, isZero);
+ expect(rect.top, isZero);
+ expect(rect.left, isZero);
+ expect(rect.right, isZero);
+ expect(rect.height, isZero);
+ expect(rect.width, isZero);
}

Powered by Google App Engine
This is Rietveld 408576698