| 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:mdv_observe/mdv_observe.dart'; |
| 6 import 'package:unittest/unittest.dart'; | 6 import 'package:unittest/unittest.dart'; |
| 7 | 7 |
| 8 // This file contains code ported from: | 8 // This file contains code ported from: |
| 9 // https://github.com/rafaelw/ChangeSummary/blob/master/tests/test.js | 9 // https://github.com/rafaelw/ChangeSummary/blob/master/tests/test.js |
| 10 | 10 |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 getValueWorkaround(key) { | 240 getValueWorkaround(key) { |
| 241 if (key == fieldName) return value; | 241 if (key == fieldName) return value; |
| 242 return null; | 242 return null; |
| 243 } | 243 } |
| 244 void setValueWorkaround(key, newValue) { | 244 void setValueWorkaround(key, newValue) { |
| 245 if (key == fieldName) value = newValue; | 245 if (key == fieldName) value = newValue; |
| 246 } | 246 } |
| 247 | 247 |
| 248 toString() => '#<$runtimeType $fieldName: $_value>'; | 248 toString() => '#<$runtimeType $fieldName: $_value>'; |
| 249 } | 249 } |
| 250 | |
| 251 _record(key, oldValue, newValue, [kind = ChangeRecord.FIELD]) => | |
| 252 new ChangeRecord(key, oldValue, newValue, kind: kind); | |
| OLD | NEW |