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

Unified Diff: tests/language/named_parameters_with_object_property_names_test.dart

Issue 23478005: Add compilation error on named parameters with private names (Closed) Base URL: http://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 | « tests/language/language.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/named_parameters_with_object_property_names_test.dart
===================================================================
--- tests/language/named_parameters_with_object_property_names_test.dart (revision 26668)
+++ tests/language/named_parameters_with_object_property_names_test.dart (working copy)
@@ -12,12 +12,6 @@
main() {
// Test properties found on instances of Object in Chrome 15 and Firefox 6.
test_constructor();
- test___proto__();
- test___defineGetter__();
- test___defineSetter__();
- test___lookupGetter__();
- test___lookupSetter__();
- test___noSuchMethod__();
test_hasOwnProperty();
test_isPrototypeOf();
test_propertyIsEnumerable();
@@ -50,132 +44,6 @@
Expect.equals(0, globalMethod_constructor(constructor: 0));
}
-// '__proto__' property.
-
-class TestClass___proto__ {
- method({__proto__}) => __proto__;
- static staticMethod({__proto__}) => __proto__;
-}
-globalMethod___proto__({__proto__}) => __proto__;
-
-test___proto__() {
- var obj = new TestClass___proto__();
-
- Expect.equals(null, obj.method());
- Expect.equals(0, obj.method(__proto__: 0));
-
- Expect.equals(null, TestClass___proto__.staticMethod());
- Expect.equals(0, TestClass___proto__.staticMethod(__proto__: 0));
-
- Expect.equals(null, globalMethod___proto__());
- Expect.equals(0, globalMethod___proto__(__proto__: 0));
-}
-
-// '__defineGetter__' property.
-
-class TestClass___defineGetter__ {
- method({__defineGetter__}) => __defineGetter__;
- static staticMethod({__defineGetter__}) => __defineGetter__;
-}
-globalMethod___defineGetter__({__defineGetter__}) => __defineGetter__;
-
-test___defineGetter__() {
- var obj = new TestClass___defineGetter__();
-
- Expect.equals(null, obj.method());
- Expect.equals(0, obj.method(__defineGetter__: 0));
-
- Expect.equals(null, TestClass___defineGetter__.staticMethod());
- Expect.equals(0, TestClass___defineGetter__.staticMethod(__defineGetter__: 0));
-
- Expect.equals(null, globalMethod___defineGetter__());
- Expect.equals(0, globalMethod___defineGetter__(__defineGetter__: 0));
-}
-
-// '__defineSetter__' property.
-
-class TestClass___defineSetter__ {
- method({__defineSetter__}) => __defineSetter__;
- static staticMethod({__defineSetter__}) => __defineSetter__;
-}
-globalMethod___defineSetter__({__defineSetter__}) => __defineSetter__;
-
-test___defineSetter__() {
- var obj = new TestClass___defineSetter__();
-
- Expect.equals(null, obj.method());
- Expect.equals(0, obj.method(__defineSetter__: 0));
-
- Expect.equals(null, TestClass___defineSetter__.staticMethod());
- Expect.equals(0, TestClass___defineSetter__.staticMethod(__defineSetter__: 0));
-
- Expect.equals(null, globalMethod___defineSetter__());
- Expect.equals(0, globalMethod___defineSetter__(__defineSetter__: 0));
-}
-
-// '__lookupGetter__' property.
-
-class TestClass___lookupGetter__ {
- method({__lookupGetter__}) => __lookupGetter__;
- static staticMethod({__lookupGetter__}) => __lookupGetter__;
-}
-globalMethod___lookupGetter__({__lookupGetter__}) => __lookupGetter__;
-
-test___lookupGetter__() {
- var obj = new TestClass___lookupGetter__();
-
- Expect.equals(null, obj.method());
- Expect.equals(0, obj.method(__lookupGetter__: 0));
-
- Expect.equals(null, TestClass___lookupGetter__.staticMethod());
- Expect.equals(0, TestClass___lookupGetter__.staticMethod(__lookupGetter__: 0));
-
- Expect.equals(null, globalMethod___lookupGetter__());
- Expect.equals(0, globalMethod___lookupGetter__(__lookupGetter__: 0));
-}
-
-// '__lookupSetter__' property.
-
-class TestClass___lookupSetter__ {
- method({__lookupSetter__}) => __lookupSetter__;
- static staticMethod({__lookupSetter__}) => __lookupSetter__;
-}
-globalMethod___lookupSetter__({__lookupSetter__}) => __lookupSetter__;
-
-test___lookupSetter__() {
- var obj = new TestClass___lookupSetter__();
-
- Expect.equals(null, obj.method());
- Expect.equals(0, obj.method(__lookupSetter__: 0));
-
- Expect.equals(null, TestClass___lookupSetter__.staticMethod());
- Expect.equals(0, TestClass___lookupSetter__.staticMethod(__lookupSetter__: 0));
-
- Expect.equals(null, globalMethod___lookupSetter__());
- Expect.equals(0, globalMethod___lookupSetter__(__lookupSetter__: 0));
-}
-
-// '__noSuchMethod__' property.
-
-class TestClass___noSuchMethod__ {
- method({__noSuchMethod__}) => __noSuchMethod__;
- static staticMethod({__noSuchMethod__}) => __noSuchMethod__;
-}
-globalMethod___noSuchMethod__({__noSuchMethod__}) => __noSuchMethod__;
-
-test___noSuchMethod__() {
- var obj = new TestClass___noSuchMethod__();
-
- Expect.equals(null, obj.method());
- Expect.equals(0, obj.method(__noSuchMethod__: 0));
-
- Expect.equals(null, TestClass___noSuchMethod__.staticMethod());
- Expect.equals(0, TestClass___noSuchMethod__.staticMethod(__noSuchMethod__: 0));
-
- Expect.equals(null, globalMethod___noSuchMethod__());
- Expect.equals(0, globalMethod___noSuchMethod__(__noSuchMethod__: 0));
-}
-
// 'hasOwnProperty' property.
class TestClass_hasOwnProperty {
« no previous file with comments | « tests/language/language.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698