Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Side by Side Diff: test/list_path_observer_test.dart

Issue 1019243005: fix up tests (Closed) Base URL: git@github.com:dart-lang/observe.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pubspec.yaml ('k') | test/observe_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pubspec.yaml ('k') | test/observe_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698