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

Side by Side Diff: pkg/polymer/test/transform/all_phases_test.dart

Issue 23898009: Switch polymer's build.dart to use the new linter. This CL does the following (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: addressing john comments (part 2) - renamed files Created 7 years, 3 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
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 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
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 ''';
OLDNEW
« no previous file with comments | « pkg/polymer/test/build/testing.dart ('k') | pkg/polymer/test/transform/code_extractor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698