Index: tests/html/selectelement_test.dart |
diff --git a/tests/html/selectelement_test.dart b/tests/html/selectelement_test.dart |
index f88c4af5275bb4c679d3a68978976388d43d62e0..81eb13db0cd2e3f29ad66d2a646610eb0434640a 100644 |
--- a/tests/html/selectelement_test.dart |
+++ b/tests/html/selectelement_test.dart |
@@ -16,11 +16,9 @@ main() { |
var options = [ |
new OptionElement(), |
new DivElement(), |
- new OptionElement(data: 'data', value: 'two', defaultSelected: false, |
- selected: true), |
+ new OptionElement(data: 'data', value: 'two', selected: true), |
new DivElement(), |
- new OptionElement(data: 'data', value: 'two', defaultSelected: false, |
- selected: true), |
+ new OptionElement(data: 'data', value: 'two', selected: true), |
new OptionElement(), |
]; |
element.children.addAll(options); |
@@ -34,12 +32,11 @@ main() { |
var options = [ |
new OptionElement(), |
new DivElement(), |
- new OptionElement(data: 'data', value: 'two', defaultSelected: false, |
- selected: true), |
+ new OptionElement(data: 'data', value: 'two', selected: true), |
new DivElement(), |
- new OptionElement(data: 'data', value: 'two', defaultSelected: false, |
- selected: true), |
+ new OptionElement(data: 'data', value: 'two', selected: true), |
new OptionElement(), |
+ new OptionElement(data: 'data', value: 'two', selected: false), |
]; |
element.children.addAll(options); |
expect(element.selectedOptions.length, 2); |
@@ -51,10 +48,8 @@ main() { |
var element = new SelectElement(); |
var options = [ |
new OptionElement(), |
- new OptionElement(data: 'data', value: 'two', defaultSelected: false, |
- selected: true), |
- new OptionElement(data: 'data', value: 'two', defaultSelected: false, |
- selected: true), |
+ new OptionElement(data: 'data', value: 'two', selected: true), |
+ new OptionElement(data: 'data', value: 'two', selected: true), |
new OptionElement(), |
]; |
element.children.addAll(options); |