| OLD | NEW |
| 1 part of observable_tests; | |
| 2 | |
| 3 // 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 |
| 4 // 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 |
| 5 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 6 | 4 |
| 7 testEventBatch() { | 5 testEventBatch() { |
| 8 test('EventBatch', () { | 6 test('EventBatch', () { |
| 9 // check that all events are fired at the end. Use all record methods | 7 // check that all events are fired at the end. Use all record methods |
| 10 // in abstract observable | 8 // in abstract observable |
| 11 final target = new AbstractObservable(); | 9 final target = new AbstractObservable(); |
| 12 EventSummary res = null; | 10 EventSummary res = null; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 31 | 29 |
| 32 expect(res.events, hasLength(6)); | 30 expect(res.events, hasLength(6)); |
| 33 validateUpdate(res.events[0], target, 'pM', null, 10, 11); | 31 validateUpdate(res.events[0], target, 'pM', null, 10, 11); |
| 34 validateUpdate(res.events[1], target, 'pL', null, '11', '13'); | 32 validateUpdate(res.events[1], target, 'pL', null, '11', '13'); |
| 35 validateUpdate(res.events[2], target, null, 2, 'a', 'b'); | 33 validateUpdate(res.events[2], target, null, 2, 'a', 'b'); |
| 36 validateInsert(res.events[3], target, null, 5, 'a'); | 34 validateInsert(res.events[3], target, null, 5, 'a'); |
| 37 validateRemove(res.events[4], target, null, 4, 'c'); | 35 validateRemove(res.events[4], target, null, 4, 'c'); |
| 38 validateGlobal(res.events[5], target); | 36 validateGlobal(res.events[5], target); |
| 39 }); | 37 }); |
| 40 } | 38 } |
| OLD | NEW |