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 // 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 |
6 // '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. |
7 // 'toString' in {} --> true. | 7 // 'toString' in {} --> true. |
8 | 8 |
9 | 9 |
10 main() { | 10 main() { |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 | 355 |
356 Expect.equals(null, obj.method()); | 356 Expect.equals(null, obj.method()); |
357 Expect.equals(0, obj.method(watch: 0)); | 357 Expect.equals(0, obj.method(watch: 0)); |
358 | 358 |
359 Expect.equals(null, TestClass_watch.staticMethod()); | 359 Expect.equals(null, TestClass_watch.staticMethod()); |
360 Expect.equals(0, TestClass_watch.staticMethod(watch: 0)); | 360 Expect.equals(0, TestClass_watch.staticMethod(watch: 0)); |
361 | 361 |
362 Expect.equals(null, globalMethod_watch()); | 362 Expect.equals(null, globalMethod_watch()); |
363 Expect.equals(0, globalMethod_watch(watch: 0)); | 363 Expect.equals(0, globalMethod_watch(watch: 0)); |
364 } | 364 } |
OLD | NEW |