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 library polymer.test.transform.all_phases_test; | 5 library polymer.test.build.all_phases_test; |
6 | 6 |
7 import 'package:polymer/src/transform.dart'; | 7 import 'package:polymer/transformer.dart'; |
8 import 'package:unittest/compact_vm_config.dart'; | 8 import 'package:unittest/compact_vm_config.dart'; |
9 | 9 |
10 import 'common.dart'; | 10 import 'common.dart'; |
11 | 11 |
12 void main() { | 12 void main() { |
13 useCompactVMConfiguration(); | 13 useCompactVMConfiguration(); |
14 var phases = createDeployPhases(new TransformOptions()); | 14 var phases = createDeployPhases(new TransformOptions()); |
15 | 15 |
16 testPhases('no changes', phases, { | 16 testPhases('no changes', phases, { |
17 'a|web/test.html': '<!DOCTYPE html><html></html>', | 17 'a|web/test.html': '<!DOCTYPE html><html></html>', |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 class $className extends ChangeNotifierBase { | 209 class $className extends ChangeNotifierBase { |
210 int __\$$fieldName; | 210 int __\$$fieldName; |
211 int get $fieldName => __\$$fieldName; | 211 int get $fieldName => __\$$fieldName; |
212 set $fieldName(int value) { | 212 set $fieldName(int value) { |
213 __\$$fieldName = notifyPropertyChange(const Symbol('$fieldName'), __\$$field
Name, value); | 213 __\$$fieldName = notifyPropertyChange(const Symbol('$fieldName'), __\$$field
Name, value); |
214 } | 214 } |
215 | 215 |
216 $className($fieldName) : __\$$fieldName = $fieldName; | 216 $className($fieldName) : __\$$fieldName = $fieldName; |
217 } | 217 } |
218 '''; | 218 '''; |
OLD | NEW |