Index: tests/html/selectelement_test.dart |
diff --git a/tests/html/selectelement_test.dart b/tests/html/selectelement_test.dart |
index 8b7d76b1e9fe4842b1c84414a50a65b99f6708de..717502f505f1312d696046ac1f7f5d94c2622d52 100644 |
--- a/tests/html/selectelement_test.dart |
+++ b/tests/html/selectelement_test.dart |
@@ -57,12 +57,13 @@ main() { |
}); |
test('optgroup', () { |
- var element = new SelectElement(); |
- element.innerHtml = |
+ var element = new Element.html( |
+ '<select>' |
'<option>1</option>' |
'<optgroup>' |
'<option>2</option>' |
- '</optgroup>'; |
+ '</optgroup>' |
+ '</select>'); |
expect(element.options.length, 2); |
element.selectedIndex = 1; |