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

Unified Diff: pkg/dev_compiler/test/codegen/lib/html/document_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/document_test.dart
diff --git a/pkg/dev_compiler/test/codegen/lib/html/document_test.dart b/pkg/dev_compiler/test/codegen/lib/html/document_test.dart
index 2ed520f756803cb05ea5e9eecd39b33580d86d23..88c4dec8c0a646978af57f9644e698a837685309 100644
--- a/pkg/dev_compiler/test/codegen/lib/html/document_test.dart
+++ b/pkg/dev_compiler/test/codegen/lib/html/document_test.dart
@@ -1,11 +1,8 @@
-library DocumentTest;
-import 'package:unittest/unittest.dart';
-import 'package:unittest/html_individual_config.dart';
import 'dart:html';
-main() {
- useHtmlIndividualConfiguration();
+import 'package:minitest/minitest.dart';
+main() {
var isElement = predicate((x) => x is Element, 'is an Element');
var isDivElement = predicate((x) => x is DivElement, 'is a DivElement');
var isAnchorElement =
@@ -59,7 +56,7 @@ main() {
var div = new Element.html('<div><div id="foo">bar</div></div>');
var doc = document.implementation.createHtmlDocument('');
var div2 = doc.importNode(div, true);
- expect(div2, isNot(equals(div)));
+ expect(div2, notEquals(div));
expect(div2.ownerDocument, doc);
doc.body.nodes.add(div2);
expect(doc.query('#foo').text, 'bar');

Powered by Google App Engine
This is Rietveld 408576698