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

Unified Diff: pkg/dev_compiler/test/codegen/lib/html/element_constructor_1_test.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/element_constructor_1_test.dart
diff --git a/pkg/dev_compiler/test/codegen/lib/html/element_constructor_1_test.dart b/pkg/dev_compiler/test/codegen/lib/html/element_constructor_1_test.dart
index b53e3667553f4042442696e09f24ed63ad43414f..609f5c7afb0194a10f456a4c74bdd0fff7c85e03 100644
--- a/pkg/dev_compiler/test/codegen/lib/html/element_constructor_1_test.dart
+++ b/pkg/dev_compiler/test/codegen/lib/html/element_constructor_1_test.dart
@@ -6,25 +6,22 @@
// Move constructors that fail on some configuration to their own
// element_constructor_foo_test.dart file.
-library ElementConstructorTest;
-import 'package:unittest/unittest.dart';
-import 'package:unittest/html_config.dart';
import 'dart:html';
-main() {
- useHtmlConfiguration();
+import 'package:minitest/minitest.dart';
- var isAnchorElement =
+main() {
+ var isAnchorElement =
predicate((x) => x is AnchorElement, 'is an AnchorElement');
- var isAreaElement =
+ var isAreaElement =
predicate((x) => x is AreaElement, 'is an AreaElement');
var isDivElement = predicate((x) => x is DivElement, 'is a DivElement');
- var isCanvasElement =
+ var isCanvasElement =
predicate((x) => x is CanvasElement, 'is a CanvasElement');
var isParagraphElement =
predicate((x) => x is ParagraphElement, 'is a ParagraphElement');
var isSpanElement = predicate((x) => x is SpanElement, 'is a SpanElement');
- var isSelectElement =
+ var isSelectElement =
predicate((x) => x is SelectElement, 'is a SelectElement');
test('anchor1', () {
@@ -35,7 +32,7 @@ main() {
test('anchor2', () {
var e = new AnchorElement(href: '#blah');
expect(e, isAnchorElement);
- expect(e.href, endsWith('#blah'));
+ expect(e.href.endsWith('#blah'), isTrue);
});
test('area', () {

Powered by Google App Engine
This is Rietveld 408576698