| 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 'dart:async'; | 5 import 'dart:async'; |
| 6 import 'package:observe/observe.dart'; | 6 import 'package:observe/observe.dart'; |
| 7 import 'package:unittest/unittest.dart'; | 7 import 'package:unittest/unittest.dart'; |
| 8 import 'observe_test_utils.dart'; | 8 import 'observe_test_utils.dart'; |
| 9 | 9 |
| 10 main() => dirtyCheckZone().run(_runTests); | 10 import 'package:observe/mirrors_used.dart'; // make test smaller. |
| 11 import 'package:smoke/mirrors.dart'; |
| 12 |
| 13 main() { |
| 14 useMirrors(); |
| 15 dirtyCheckZone().run(_runTests); |
| 16 } |
| 11 | 17 |
| 12 _runTests() { | 18 _runTests() { |
| 13 var list; | 19 var list; |
| 14 var obs; | 20 var obs; |
| 15 var o1, o2, o3; | 21 var o1, o2, o3; |
| 16 var sub; | 22 var sub; |
| 17 int changes; | 23 int changes; |
| 18 | 24 |
| 19 setUp(() { | 25 setUp(() { |
| 20 list = toObservable([ | 26 list = toObservable([ |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 class TestModel extends ChangeNotifier { | 74 class TestModel extends ChangeNotifier { |
| 69 var _a, _b; | 75 var _a, _b; |
| 70 TestModel(); | 76 TestModel(); |
| 71 | 77 |
| 72 get a => _a; | 78 get a => _a; |
| 73 void set a(newValue) { _a = notifyPropertyChange(#a, _a, newValue); } | 79 void set a(newValue) { _a = notifyPropertyChange(#a, _a, newValue); } |
| 74 | 80 |
| 75 get b => _b; | 81 get b => _b; |
| 76 void set b(newValue) { _b = notifyPropertyChange(#b, _b, newValue); } | 82 void set b(newValue) { _b = notifyPropertyChange(#b, _b, newValue); } |
| 77 } | 83 } |
| OLD | NEW |