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

Unified Diff: tests/html/selectelement_test.dart

Issue 27516011: Remove defaultSelected property. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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: 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);
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/templates/html/impl/impl_HTMLOptionElement.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698