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:barback/barback.dart'; | 6 import 'package:barback/barback.dart'; |
7 import 'package:observe/transform.dart'; | 7 import 'package:observe/transformer.dart'; |
8 import 'package:unittest/compact_vm_config.dart'; | 8 import 'package:unittest/compact_vm_config.dart'; |
9 import 'package:unittest/unittest.dart'; | 9 import 'package:unittest/unittest.dart'; |
10 | 10 |
11 main() { | 11 main() { |
12 useCompactVMConfiguration(); | 12 useCompactVMConfiguration(); |
13 | 13 |
14 group('replaces Observable for ChangeNotifier', () { | 14 group('replaces Observable for ChangeNotifier', () { |
15 _testClause('extends Observable', 'extends ChangeNotifier'); | 15 _testClause('extends Observable', 'extends ChangeNotifier'); |
16 _testClause('extends Base with Observable', | 16 _testClause('extends Base with Observable', |
17 'extends Base with ChangeNotifier'); | 17 'extends Base with ChangeNotifier'); |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 " Foo\n" | 207 " Foo\n" |
208 " get foo => __\$foo; Foo __\$foo/*D*/= 1; " | 208 " get foo => __\$foo; Foo __\$foo/*D*/= 1; " |
209 "${_makeSetter('Foo', 'foo')} " | 209 "${_makeSetter('Foo', 'foo')} " |
210 "@reflectable @$meta @otherMetadata Foo get bar => __\$bar; " | 210 "@reflectable @$meta @otherMetadata Foo get bar => __\$bar; " |
211 "Foo __\$bar =/*A*/2/*B*/; ${_makeSetter('Foo', 'bar')}\n" | 211 "Foo __\$bar =/*A*/2/*B*/; ${_makeSetter('Foo', 'bar')}\n" |
212 " @reflectable @$meta @otherMetadata Foo get quux => __\$quux; " | 212 " @reflectable @$meta @otherMetadata Foo get quux => __\$quux; " |
213 "Foo __\$quux/*C*/; ${_makeSetter('Foo', 'quux')}\n\n" | 213 "Foo __\$quux/*C*/; ${_makeSetter('Foo', 'quux')}\n\n" |
214 " @reflectable @$meta dynamic get baz => __\$baz; dynamic __\$baz; " | 214 " @reflectable @$meta dynamic get baz => __\$baz; dynamic __\$baz; " |
215 "${_makeSetter('dynamic', 'baz')}\n" | 215 "${_makeSetter('dynamic', 'baz')}\n" |
216 "}\n"; | 216 "}\n"; |
OLD | NEW |