| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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:mdv_observe/mdv_observe.dart'; | 5 import 'package:observe/observe.dart'; |
| 6 import 'package:unittest/unittest.dart'; | 6 import 'package:unittest/unittest.dart'; |
| 7 import 'utils.dart'; | 7 import 'utils.dart'; |
| 8 | 8 |
| 9 main() { | 9 main() { |
| 10 // TODO(jmesserly): need all standard Map API tests. | 10 // TODO(jmesserly): need all standard Map API tests. |
| 11 | 11 |
| 12 group('observe length', () { | 12 group('observe length', () { |
| 13 ObservableMap map; | 13 ObservableMap map; |
| 14 List<ChangeRecord> changes; | 14 List<ChangeRecord> changes; |
| 15 | 15 |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 }); | 232 }); |
| 233 } | 233 } |
| 234 | 234 |
| 235 | 235 |
| 236 const _LENGTH = const Symbol('length'); | 236 const _LENGTH = const Symbol('length'); |
| 237 | 237 |
| 238 final _lengthChange = new PropertyChangeRecord(_LENGTH); | 238 final _lengthChange = new PropertyChangeRecord(_LENGTH); |
| 239 | 239 |
| 240 _change(key, {isInsert: false, isRemove: false}) => | 240 _change(key, {isInsert: false, isRemove: false}) => |
| 241 new MapChangeRecord(key, isInsert: isInsert, isRemove: isRemove); | 241 new MapChangeRecord(key, isInsert: isInsert, isRemove: isRemove); |
| OLD | NEW |