| 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 part of observable_tests; | 5 part of observable_tests; |
| 6 | 6 |
| 7 testAbstractObservable() { | 7 testAbstractObservable() { |
| 8 group('addChangeListener()', () { | 8 group('addChangeListener()', () { |
| 9 test('adding the same listener twice returns false the second time', () { | 9 test('adding the same listener twice returns false the second time', () { |
| 10 final target = new AbstractObservable(); | 10 final target = new AbstractObservable(); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 validateUpdate(res.events[0], target, 'pM', null, 10, 11); | 66 validateUpdate(res.events[0], target, 'pM', null, 10, 11); |
| 67 res = null; | 67 res = null; |
| 68 | 68 |
| 69 target.recordPropertyUpdate('pL', '11', '13'); | 69 target.recordPropertyUpdate('pL', '11', '13'); |
| 70 | 70 |
| 71 expect(res, isNotNull); | 71 expect(res, isNotNull); |
| 72 expect(res.events, hasLength(1)); | 72 expect(res.events, hasLength(1)); |
| 73 validateUpdate(res.events[0], target, 'pL', null, '11', '13'); | 73 validateUpdate(res.events[0], target, 'pL', null, '11', '13'); |
| 74 }); | 74 }); |
| 75 } | 75 } |
| OLD | NEW |