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

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

Issue 2419863002: Remove uses of unittest in the HTML tests where possible. (Closed)
Patch Set: Remove TODO. 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/unknownelement_test.dart
diff --git a/pkg/dev_compiler/test/codegen/lib/html/unknownelement_test.dart b/pkg/dev_compiler/test/codegen/lib/html/unknownelement_test.dart
index 21ba1ef1e196d6dc600e090f9f6881c1910b0867..43b30cf7ecef149a4392b50e7c8d9e729265b6a8 100644
--- a/pkg/dev_compiler/test/codegen/lib/html/unknownelement_test.dart
+++ b/pkg/dev_compiler/test/codegen/lib/html/unknownelement_test.dart
@@ -2,22 +2,19 @@
// 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
-library UnknownElementTest;
-import 'package:unittest/unittest.dart';
-import 'package:unittest/html_config.dart';
import 'dart:html';
-main() {
- useHtmlConfiguration();
+import 'package:expect/minitest.dart';
+main() {
var isUnknownElement =
predicate((x) => x is UnknownElement, 'is an UnknownELement');
- var foo = new Element.tag('foo');
+ dynamic foo = new Element.tag('foo');
foo.id = 'foo';
var bar = new Element.tag('bar');
bar.id = 'bar';
- document.body.nodes.addAll([foo, bar]);
+ document.body.nodes.addAll(<Node>[foo, bar]);
test('type-check', () {
expect(foo, isUnknownElement);

Powered by Google App Engine
This is Rietveld 408576698