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

Side by Side Diff: pkg/mdv/test/mdv_test_utils.dart

Issue 26967004: add @MirrorsUsed to observe/polymer/polymer_exprs pkgs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix typo in comment Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/observe/lib/html.dart » ('j') | pkg/observe/lib/observe.dart » ('J')
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 library observe_utils; 5 library observe_utils;
6 6
7 import 'dart:html'; 7 import 'dart:html';
8 import 'package:observe/observe.dart'; 8 import 'package:observe/observe.dart';
9 import 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
10 10
(...skipping 28 matching lines...) Expand all
39 target.dispatchEvent(new Event(type, cancelable: false)); 39 target.dispatchEvent(new Event(type, cancelable: false));
40 } 40 }
41 41
42 class FooBarModel extends ObservableBase { 42 class FooBarModel extends ObservableBase {
43 @observable var foo; 43 @observable var foo;
44 @observable var bar; 44 @observable var bar;
45 45
46 FooBarModel([this.foo, this.bar]); 46 FooBarModel([this.foo, this.bar]);
47 } 47 }
48 48
49 @reflectable
49 class FooBarNotifyModel extends ChangeNotifierBase implements FooBarModel { 50 class FooBarNotifyModel extends ChangeNotifierBase implements FooBarModel {
50 var _foo; 51 var _foo;
51 var _bar; 52 var _bar;
52 53
53 FooBarNotifyModel([this._foo, this._bar]); 54 FooBarNotifyModel([this._foo, this._bar]);
54 55
55 get foo => _foo; 56 get foo => _foo;
56 set foo(value) { 57 set foo(value) {
57 _foo = notifyPropertyChange(#foo, _foo, value); 58 _foo = notifyPropertyChange(#foo, _foo, value);
58 } 59 }
59 60
60 get bar => _bar; 61 get bar => _bar;
61 set bar(value) { 62 set bar(value) {
62 _bar = notifyPropertyChange(#bar, _bar, value); 63 _bar = notifyPropertyChange(#bar, _bar, value);
63 } 64 }
64 } 65 }
65 66
66 observeTest(name, testCase) => test(name, wrapMicrotask(testCase)); 67 observeTest(name, testCase) => test(name, wrapMicrotask(testCase));
67 68
68 solo_observeTest(name, testCase) => solo_test(name, wrapMicrotask(testCase)); 69 solo_observeTest(name, testCase) => solo_test(name, wrapMicrotask(testCase));
OLDNEW
« no previous file with comments | « no previous file | pkg/observe/lib/html.dart » ('j') | pkg/observe/lib/observe.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698