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

Unified Diff: tests/html/selectelement_test.dart

Issue 25585002: Make OptionElement construtor arguments named optional parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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
« no previous file with comments | « tests/html/htmloptionscollection_test.dart ('k') | tools/dom/scripts/generator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/selectelement_test.dart
diff --git a/tests/html/selectelement_test.dart b/tests/html/selectelement_test.dart
index 717502f505f1312d696046ac1f7f5d94c2622d52..f88c4af5275bb4c679d3a68978976388d43d62e0 100644
--- a/tests/html/selectelement_test.dart
+++ b/tests/html/selectelement_test.dart
@@ -16,9 +16,11 @@ main() {
var options = [
new OptionElement(),
new DivElement(),
- new OptionElement('data', 'two', false, true),
+ new OptionElement(data: 'data', value: 'two', defaultSelected: false,
+ selected: true),
new DivElement(),
- new OptionElement('data', 'two', false, true),
+ new OptionElement(data: 'data', value: 'two', defaultSelected: false,
+ selected: true),
new OptionElement(),
];
element.children.addAll(options);
@@ -32,9 +34,11 @@ main() {
var options = [
new OptionElement(),
new DivElement(),
- new OptionElement('data', 'two', false, true),
+ new OptionElement(data: 'data', value: 'two', defaultSelected: false,
+ selected: true),
new DivElement(),
- new OptionElement('data', 'two', false, true),
+ new OptionElement(data: 'data', value: 'two', defaultSelected: false,
+ selected: true),
new OptionElement(),
];
element.children.addAll(options);
@@ -47,8 +51,10 @@ main() {
var element = new SelectElement();
var options = [
new OptionElement(),
- new OptionElement('data', 'two', false, true),
- new OptionElement('data', 'two', false, true),
+ new OptionElement(data: 'data', value: 'two', defaultSelected: false,
+ selected: true),
+ new OptionElement(data: 'data', value: 'two', defaultSelected: false,
+ selected: true),
new OptionElement(),
];
element.children.addAll(options);
« no previous file with comments | « tests/html/htmloptionscollection_test.dart ('k') | tools/dom/scripts/generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698