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

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

Issue 10248007: test rename overhaul: step 8 - language tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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/src/ClassKeywordTest.dart ('k') | tests/language/src/ClassOverrideNegativeTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/ClassLiteralTest.dart
diff --git a/tests/language/src/ClassLiteralTest.dart b/tests/language/src/ClassLiteralTest.dart
deleted file mode 100644
index 2c70ec101869b9ce34a3bf55e34b89e3821cb806..0000000000000000000000000000000000000000
--- a/tests/language/src/ClassLiteralTest.dart
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// Test that classes cannot be used as expressions.
-
-class Class {
- static fisk() => 42;
-}
-
-foo(x) {}
-
-main() {
- if (false) {
- Class; /// 01: compile-time error
- Class(); /// 02: compile-time error
- Class.method(); /// 03: compile-time error
- Class.field; /// 04: compile-time error
- Class[0]; /// 05: compile-time error
- var x = Class; /// 06: compile-time error
- var x = Class(); /// 07: compile-time error
- var x = Class.method(); /// 08: compile-time error
- var x = Class.field; /// 09: compile-time error
- var x = Class[0]; /// 10: compile-time error
- var x = Class[0].field; /// 11: compile-time error
- var x = Class[0].method(); /// 12: compile-time error
- foo(Class); /// 13: compile-time error
- foo(Class()); /// 14: compile-time error
- foo(Class.method()); /// 15: compile-time error
- foo(Class.field); /// 16: compile-time error
- foo(Class[0]); /// 17: compile-time error
- foo(Class[0].field); /// 18: compile-time error
- foo(Class[0].method()); /// 19: compile-time error
- Class === null; /// 20: compile-time error
- null === Class; /// 21: compile-time error
- Class[0] = 91; /// 22: compile-time error
- Class++; /// 23: compile-time error
- ++Class; /// 24: compile-time error
- Class / 3; /// 25: compile-time error
- Class += 3; /// 26: compile-time error
- Class[0] += 3; /// 27: compile-time error
- ++Class[0]; /// 28: compile-time error
- Class[0]++; /// 29: compile-time error
- }
- Expect.equals(42, Class.fisk());
- Expect.equals(null, foo(Class.fisk()));
-}
« no previous file with comments | « tests/language/src/ClassKeywordTest.dart ('k') | tests/language/src/ClassOverrideNegativeTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698