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

Unified Diff: pkg/dev_compiler/test/codegen/lib/html/datalistelement_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/datalistelement_test.dart
diff --git a/pkg/dev_compiler/test/codegen/lib/html/datalistelement_test.dart b/pkg/dev_compiler/test/codegen/lib/html/datalistelement_test.dart
index 2fd9fa8175d3e20eda0b53531dc99378444ee07d..45596cbdf37b30727372c6e290e7872ef493df82 100644
--- a/pkg/dev_compiler/test/codegen/lib/html/datalistelement_test.dart
+++ b/pkg/dev_compiler/test/codegen/lib/html/datalistelement_test.dart
@@ -2,14 +2,11 @@
// 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 datalistelement_dataview_test;
-import 'package:unittest/unittest.dart';
-import 'package:unittest/html_config.dart';
import 'dart:html';
-main() {
- useHtmlConfiguration();
+import 'package:minitest/minitest.dart';
+main() {
var isDataListElement =
predicate((x) => x is DataListElement, 'is a DataListElement');
@@ -46,15 +43,15 @@ main() {
test('list', () {
expect(() {
- var list = document.query('#browsers');
- var input = document.query('#input');
+ var list = document.query('#browsers') as DataListElement;
+ var input = document.query('#input') as InputElement;
expect(input.list, list);
}, expectation);
});
test('options', () {
expect(() {
- var options = document.query('#browsers').options;
+ var options = (document.query('#browsers') as DataListElement).options;
expect(options.length, 5);
}, expectation);
});

Powered by Google App Engine
This is Rietveld 408576698