| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 class NoSuchMethodInfo { | 5 class NoSuchMethodInfo { |
| 6 Object receiver; | 6 Object receiver; |
| 7 String name; | 7 String name; |
| 8 List args; | 8 List args; |
| 9 NoSuchMethodInfo(Object r, String m, List a) | 9 NoSuchMethodInfo(Object r, String m, List a) |
| 10 : receiver = r, name = m, args = a; | 10 : receiver = r, name = m, args = a; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 Expect.isTrue(info.args.length == 0); | 42 Expect.isTrue(info.args.length == 0); |
| 43 Expect.isTrue(info.receiver === a); | 43 Expect.isTrue(info.receiver === a); |
| 44 | 44 |
| 45 a.bar = 2; | 45 a.bar = 2; |
| 46 info = topLevelInfo; | 46 info = topLevelInfo; |
| 47 Expect.equals('set bar', info.name); | 47 Expect.equals('set bar', info.name); |
| 48 Expect.isTrue(info.args.length == 1); | 48 Expect.isTrue(info.args.length == 1); |
| 49 Expect.isTrue(info.args[0] === 2); | 49 Expect.isTrue(info.args[0] === 2); |
| 50 Expect.isTrue(info.receiver === a); | 50 Expect.isTrue(info.receiver === a); |
| 51 } | 51 } |
| OLD | NEW |