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

Unified Diff: tests/html/element_constructor_1_test.dart

Issue 11196020: Force named arguments in constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « lib/html/scripts/systemhtml.py ('k') | tests/html/query_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/element_constructor_1_test.dart
diff --git a/tests/html/element_constructor_1_test.dart b/tests/html/element_constructor_1_test.dart
index 2b010aed75b976fb8f55d4ee54d38982b62671aa..cf4e43fe51a331f4898fcbfc012e46b0050d7c98 100644
--- a/tests/html/element_constructor_1_test.dart
+++ b/tests/html/element_constructor_1_test.dart
@@ -20,8 +20,7 @@ main() {
});
test('anchor2', () {
- // OPTIONALS var e = new AnchorElement(href: '#blah');
- var e = new AnchorElement('#blah');
+ var e = new AnchorElement(href: '#blah');
Expect.isTrue(e is AnchorElement);
Expect.isTrue(e.href.endsWith('#blah'));
});
@@ -44,8 +43,7 @@ main() {
});
test('canvas2', () {
- // OPTIONALS var e = new CanvasElement(height: 100, width: 200);
- var e = new CanvasElement(200, 100);
+ var e = new CanvasElement(height: 100, width: 200);
Expect.isTrue(e is CanvasElement);
Expect.equals(200, e.width);
Expect.equals(100, e.height);
« no previous file with comments | « lib/html/scripts/systemhtml.py ('k') | tests/html/query_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698