| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import "package:expect/expect.dart"; | |
| 6 | |
| 7 // Test for named parameter with the name of a JavaScript property found on | 5 // Test for named parameter with the name of a JavaScript property found on |
| 8 // 'Object'. For such a NAME, foo.NAME may exist in an empty map, i.e. | 6 // 'Object'. For such a NAME, foo.NAME may exist in an empty map, i.e. |
| 9 // 'toString' in {} --> true. | 7 // 'toString' in {} --> true. |
| 10 | 8 |
| 11 | 9 |
| 12 main() { | 10 main() { |
| 13 // Test properties found on instances of Object in Chrome 15 and Firefox 6. | 11 // Test properties found on instances of Object in Chrome 15 and Firefox 6. |
| 14 test_constructor(); | 12 test_constructor(); |
| 15 test___proto__(); | 13 test___proto__(); |
| 16 test___defineGetter__(); | 14 test___defineGetter__(); |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 | 355 |
| 358 Expect.equals(null, obj.method()); | 356 Expect.equals(null, obj.method()); |
| 359 Expect.equals(0, obj.method(watch: 0)); | 357 Expect.equals(0, obj.method(watch: 0)); |
| 360 | 358 |
| 361 Expect.equals(null, TestClass_watch.staticMethod()); | 359 Expect.equals(null, TestClass_watch.staticMethod()); |
| 362 Expect.equals(0, TestClass_watch.staticMethod(watch: 0)); | 360 Expect.equals(0, TestClass_watch.staticMethod(watch: 0)); |
| 363 | 361 |
| 364 Expect.equals(null, globalMethod_watch()); | 362 Expect.equals(null, globalMethod_watch()); |
| 365 Expect.equals(0, globalMethod_watch(watch: 0)); | 363 Expect.equals(0, globalMethod_watch(watch: 0)); |
| 366 } | 364 } |
| OLD | NEW |