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

Unified Diff: pkg/dev_compiler/test/codegen/lib/html/selectelement_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/selectelement_test.dart
diff --git a/pkg/dev_compiler/test/codegen/lib/html/selectelement_test.dart b/pkg/dev_compiler/test/codegen/lib/html/selectelement_test.dart
index b56912c36de8da22d6420124a5205db7be0d5059..94a9a29a669fb1fac64331e3aff6e83c22a7bee9 100644
--- a/pkg/dev_compiler/test/codegen/lib/html/selectelement_test.dart
+++ b/pkg/dev_compiler/test/codegen/lib/html/selectelement_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 selectelement_test;
-import 'package:unittest/unittest.dart';
-import 'package:unittest/html_config.dart';
import 'dart:html';
-main() {
- useHtmlConfiguration();
+import 'package:expect/minitest.dart';
+main() {
test('selectedOptions', () {
var element = new SelectElement();
element.multiple = false;
@@ -64,14 +61,14 @@ main() {
'<optgroup>'
'<option>2</option>'
'</optgroup>'
- '</select>');
+ '</select>') as SelectElement;
expect(element.options.length, 2);
element.selectedIndex = 1;
var optGroup = element.children[1];
expect(optGroup is OptGroupElement, isTrue);
- expect(optGroup.children.single.selected, isTrue);
+ expect((optGroup.children.single as OptionElement).selected, isTrue);
expect(element.selectedOptions, optGroup.children);
});
}

Powered by Google App Engine
This is Rietveld 408576698