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

Unified Diff: pkg/dev_compiler/test/codegen/lib/html/util.dart

Issue 2413073002: Start cleaning up the HTML tests. (Closed)
Patch Set: Unfork expect.dart. Created 4 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: pkg/dev_compiler/test/codegen/lib/html/util.dart
diff --git a/pkg/dev_compiler/test/codegen/lib/html/util.dart b/pkg/dev_compiler/test/codegen/lib/html/util.dart
index 52735f21d402e85ce53b5080b7bf8541925e55c8..ff35b96a65f04152726b32ca756e06f1b43544e7 100644
--- a/pkg/dev_compiler/test/codegen/lib/html/util.dart
+++ b/pkg/dev_compiler/test/codegen/lib/html/util.dart
@@ -5,15 +5,13 @@
library test.html.util;
import 'dart:html';
-import 'package:unittest/unittest.dart';
+import 'package:minitest/minitest.dart';
-void expectUnsupported(f) => expect(f, throwsUnsupportedError);
-
-void expectEmptyRect(ClientRect rect) {
- expect(rect.bottom, isZero);
- expect(rect.top, isZero);
- expect(rect.left, isZero);
- expect(rect.right, isZero);
- expect(rect.height, isZero);
- expect(rect.width, isZero);
+void expectEmptyRect(Rectangle rect) {
+ expect(rect.bottom, 0);
+ expect(rect.top, 0);
+ expect(rect.left, 0);
+ expect(rect.right, 0);
+ expect(rect.height, 0);
+ expect(rect.width, 0);
}
« no previous file with comments | « pkg/dev_compiler/test/codegen/lib/html/text_event_test.dart ('k') | pkg/dev_compiler/test/codegen/minitest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698