| 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.transform.all_phases_test; |
| 6 | 6 |
| 7 import 'package:polymer/src/transform.dart'; | 7 import 'package:polymer/src/transform.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 | 15 |
| 15 testPhases('no changes', phases, { | 16 testPhases('no changes', phases, { |
| 16 'a|web/test.html': '<!DOCTYPE html><html></html>', | 17 'a|web/test.html': '<!DOCTYPE html><html></html>', |
| 17 }, { | 18 }, { |
| 18 'a|web/test.html': '<!DOCTYPE html><html></html>', | 19 'a|web/test.html': '<!DOCTYPE html><html></html>', |
| 19 }); | 20 }); |
| 20 | 21 |
| 21 testPhases('observable changes', phases, { | 22 testPhases('observable changes', phases, { |
| 22 'a|web/test.dart': _sampleObservable('A', 'foo'), | 23 'a|web/test.dart': _sampleObservable('A', 'foo'), |
| 23 'a|web/test2.dart': _sampleObservableOutput('B', 'bar'), | 24 'a|web/test2.dart': _sampleObservableOutput('B', 'bar'), |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 class $className extends ChangeNotifierBase { | 209 class $className extends ChangeNotifierBase { |
| 209 int __\$$fieldName; | 210 int __\$$fieldName; |
| 210 int get $fieldName => __\$$fieldName; | 211 int get $fieldName => __\$$fieldName; |
| 211 set $fieldName(int value) { | 212 set $fieldName(int value) { |
| 212 __\$$fieldName = notifyPropertyChange(const Symbol('$fieldName'), __\$$field
Name, value); | 213 __\$$fieldName = notifyPropertyChange(const Symbol('$fieldName'), __\$$field
Name, value); |
| 213 } | 214 } |
| 214 | 215 |
| 215 $className($fieldName) : __\$$fieldName = $fieldName; | 216 $className($fieldName) : __\$$fieldName = $fieldName; |
| 216 } | 217 } |
| 217 '''; | 218 '''; |
| OLD | NEW |