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

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

Issue 8437091: - Update tests to make sure they recerefence invalid code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 1 month 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 | dart/tests/language/src/Prefix13NegativeTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/language/src/BlackListedTest.dart
===================================================================
--- dart/tests/language/src/BlackListedTest.dart (revision 1146)
+++ dart/tests/language/src/BlackListedTest.dart (working copy)
@@ -7,32 +7,72 @@
// implemented or extended.
// bool.
-class MyBool implements bool {} /// 01: compile-time error
-interface MyBoolInterface extends bool {} /// 02: compile-time error
+class MyBool implements bool {} /// 01: compile-time error
+interface MyBoolInterface extends bool factory F { /// 02: compile-time error
+ MyBoolInterface(); /// 02: continued
+} /// 02: continued
// num.
-class MyNum implements num {} /// 03: compile-time error
-interface MyNumInterface extends num {} /// 04: compile-time error
+class MyNum implements num {} /// 03: compile-time error
+interface MyNumInterface extends num factory F { /// 04: compile-time error
+ MyNumInterface(); /// 04: continued
+} /// 04: continued
// int.
-class MyInt implements int {} /// 05: compile-time error
-interface MyIntInterface extends int {} /// 06: compile-time error
+class MyInt implements int {} /// 05: compile-time error
+interface MyIntInterface extends int factory F { /// 06: compile-time error
+ MyIntInterface(); /// 06: continued
+} /// 06: continued
// double.
-class MyDouble implements double {} /// 07: compile-time error
-interface MyDoubleInterface extends double {} /// 08: compile-time error
+class MyDouble implements double {} /// 07: compile-time error
+interface MyDoubleInterface extends double factory F { /// 08: compile-time error
+ MyDoubleInterface(); /// 08: continued
+} /// 08: continued
// String.
-class MyString implements String {} /// 09: compile-time error
-interface MyStringInterface extends String {} /// 10: compile-time error
+class MyString implements String {} /// 09: compile-time error
+interface MyStringInterface extends String factory F { /// 10: compile-time error
+ MyStringInterface(); /// 10: continued
+} /// 10: continued
// Function.
-class MyFunction implements Function {} /// 11: compile-time error
-interface MyFunctionInterface extends Function {} /// 12: compile-time error
+class MyFunction implements Function {} /// 11: compile-time error
+interface MyFunctionInterface extends Function factory F { /// 12: compile-time error
+ MyFunctionInterface(); /// 12: continued
+} /// 12: continued
// Dynamic.
-class MyDynamic implements Dynamic {} /// 13: compile-time error
-interface MyDynamicInterface extends Dynamic {} /// 14: compile-time error
+class MyDynamic implements Dynamic {} /// 13: compile-time error
+interface MyDynamicInterface extends Dynamic factory F { /// 14: compile-time error
+ MyDynamicInterface(); /// 14: continued
+} /// 14: continued
+
+class F {
+ factory MyBoolInterface() { return null; } /// 02: continued
+ factory MyNumInterface() { return null; } /// 04: continued
+ factory MyIntInterface() { return null; } /// 06: continued
+ factory MyDoubleInterface() { return null; } /// 08: continued
+ factory MyStringInterface() { return null; } /// 10: continued
+ factory MyFunctionInterface() { return null; } /// 12: continued
+ factory MyDynamicInterface() { return null; } /// 14: continued
+}
+
+
main() {
-}
+ new MyBool(); /// 01: continued
+ new MyBoolInterface(); /// 02: continued
+ new MyNum(); /// 03: continued
+ new MyNumInterface(); /// 04: continued
+ new MyInt(); /// 05: continued
+ new MyIntInterface(); /// 06: continued
+ new MyDouble(); /// 07: continued
+ new MyDoubleInterface(); /// 08: continued
+ new MyString(); /// 09: continued
+ new MyStringInterface(); /// 10: continued
+ new MyFunction(); /// 11: continued
+ new MyFunctionInterface(); /// 12: continued
+ new MyDynamic(); /// 13: continued
+ new MyDynamicInterface(); /// 14: continued
+}
« no previous file with comments | « no previous file | dart/tests/language/src/Prefix13NegativeTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698