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

Unified Diff: tests/language/constructor_call_as_function_test.dart

Issue 23403007: Rewrite test language/constructor_negative_test to a multi-test (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 | « no previous file | tests/language/constructor_negative_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/constructor_call_as_function_test.dart
diff --git a/tests/language/constructor_negative_test.dart b/tests/language/constructor_call_as_function_test.dart
similarity index 75%
rename from tests/language/constructor_negative_test.dart
rename to tests/language/constructor_call_as_function_test.dart
index 864f7a7cfbed30ea1eeb9d5f3a2ee14c76d78ed1..8bcca7494d96a730153838f541c332cc834d4fdc 100644
--- a/tests/language/constructor_negative_test.dart
+++ b/tests/language/constructor_call_as_function_test.dart
@@ -12,12 +12,12 @@ class Point {
}
-class ConstructorNegativeTest {
+class ConstructorTest {
static testMain() {
- Point p = Point(1, 2); // should be const or new before Point(1,2).
+ Point p = Point(1, 2); /// 01: static type warning, runtime error
ahe 2013/08/26 14:06:33 Inline this in main?
Søren Gjesse 2013/10/30 11:40:30 Done.
}
}
main() {
- ConstructorNegativeTest.testMain();
+ ConstructorTest.testMain(); /// 01: continued
ahe 2013/08/26 14:06:33 Don't need "continued" here.
Søren Gjesse 2013/10/30 11:40:30 Line removed with the call inlined in main.
}
« no previous file with comments | « no previous file | tests/language/constructor_negative_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698