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); |
}); |
} |