| 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);
|
| }
|
|
|