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

Unified Diff: tests/language/src/ConstructorNamedArgumentsTest.dart

Issue 9477013: Update ConstructorNamedArgumentTest to use the 'runtime-error' directive (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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/language/language.status ('k') | tools/testing/dart/multitest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/ConstructorNamedArgumentsTest.dart
diff --git a/tests/language/src/ConstructorNamedArgumentsTest.dart b/tests/language/src/ConstructorNamedArgumentsTest.dart
index b0ea74e8bb5d36194bed3c4285b9e3c97a80fc85..53666329902dcc62d9380dab8c9ac73da0a7a9bc 100644
--- a/tests/language/src/ConstructorNamedArgumentsTest.dart
+++ b/tests/language/src/ConstructorNamedArgumentsTest.dart
@@ -21,8 +21,11 @@ class X {
X([a = 'defa', b = 'defb']) : this.i = a, this.j = b;
X.foo() : this(b: 1, a: 2);
X.bar() : this(
- 1, /// 01: compile-time error
+ 1, /// 01: runtime error
a: 2);
+ X.foobar() : this(1
+ , a: 2 /// 02: runtime error
+ );
X.baz() : this(a: 1, b: 2);
X.qux() : this(1, 2);
X.hest() : this();
« no previous file with comments | « tests/language/language.status ('k') | tools/testing/dart/multitest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698