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

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

Issue 27274002: Fixing bots after Polymer element integration (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « pkg/polymer/lib/src/build/common.dart ('k') | pkg/polymer/test/build/common.dart » ('j') | no next file with comments »
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 polymer.test.build.all_phases_test; 5 library polymer.test.build.all_phases_test;
6 6
7 import 'package:polymer/transformer.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';
(...skipping 18 matching lines...) Expand all
29 29
30 testPhases('single script', phases, { 30 testPhases('single script', phases, {
31 'a|web/test.html': 31 'a|web/test.html':
32 '<!DOCTYPE html><html><head>' 32 '<!DOCTYPE html><html><head>'
33 '<script type="application/dart" src="a.dart"></script>', 33 '<script type="application/dart" src="a.dart"></script>',
34 'a|web/test.dart': _sampleObservable('A', 'foo'), 34 'a|web/test.dart': _sampleObservable('A', 'foo'),
35 }, { 35 }, {
36 'a|web/test.html': 36 'a|web/test.html':
37 '<!DOCTYPE html><html><head></head><body>' 37 '<!DOCTYPE html><html><head></head><body>'
38 '$SHADOW_DOM_TAG' 38 '$SHADOW_DOM_TAG'
39 '$CUSTOM_ELEMENT_TAG'
39 '$INTEROP_TAG' 40 '$INTEROP_TAG'
40 '<script type="application/dart" ' 41 '<script type="application/dart" '
41 'src="test.html_bootstrap.dart"></script>' 42 'src="test.html_bootstrap.dart"></script>'
42 '<script src="packages/browser/dart.js"></script>' 43 '<script src="packages/browser/dart.js"></script>'
43 '</body></html>', 44 '</body></html>',
44 45
45 'a|web/test.html_bootstrap.dart': 46 'a|web/test.html_bootstrap.dart':
46 '''library app_bootstrap; 47 '''library app_bootstrap;
47 48
48 import 'package:polymer/polymer.dart'; 49 import 'package:polymer/polymer.dart';
(...skipping 12 matching lines...) Expand all
61 62
62 testPhases('single inline script', phases, { 63 testPhases('single inline script', phases, {
63 'a|web/test.html': 64 'a|web/test.html':
64 '<!DOCTYPE html><html><head>' 65 '<!DOCTYPE html><html><head>'
65 '<script type="application/dart">' 66 '<script type="application/dart">'
66 '${_sampleObservable("B", "bar")}</script>', 67 '${_sampleObservable("B", "bar")}</script>',
67 }, { 68 }, {
68 'a|web/test.html': 69 'a|web/test.html':
69 '<!DOCTYPE html><html><head></head><body>' 70 '<!DOCTYPE html><html><head></head><body>'
70 '$SHADOW_DOM_TAG' 71 '$SHADOW_DOM_TAG'
72 '$CUSTOM_ELEMENT_TAG'
71 '$INTEROP_TAG' 73 '$INTEROP_TAG'
72 '<script type="application/dart" ' 74 '<script type="application/dart" '
73 'src="test.html_bootstrap.dart"></script>' 75 'src="test.html_bootstrap.dart"></script>'
74 '<script src="packages/browser/dart.js"></script>' 76 '<script src="packages/browser/dart.js"></script>'
75 '</body></html>', 77 '</body></html>',
76 78
77 'a|web/test.html_bootstrap.dart': 79 'a|web/test.html_bootstrap.dart':
78 '''library app_bootstrap; 80 '''library app_bootstrap;
79 81
80 import 'package:polymer/polymer.dart'; 82 import 'package:polymer/polymer.dart';
(...skipping 19 matching lines...) Expand all
100 '</head><body><div>' 102 '</head><body><div>'
101 '<script type="application/dart">' 103 '<script type="application/dart">'
102 '${_sampleObservable("C", "car")}</script>' 104 '${_sampleObservable("C", "car")}</script>'
103 '</div>' 105 '</div>'
104 '<script type="application/dart" src="d.dart"></script>', 106 '<script type="application/dart" src="d.dart"></script>',
105 'a|web/a.dart': _sampleObservable('A', 'foo'), 107 'a|web/a.dart': _sampleObservable('A', 'foo'),
106 }, { 108 }, {
107 'a|web/test.html': 109 'a|web/test.html':
108 '<!DOCTYPE html><html><head></head><body>' 110 '<!DOCTYPE html><html><head></head><body>'
109 '$SHADOW_DOM_TAG' 111 '$SHADOW_DOM_TAG'
112 '$CUSTOM_ELEMENT_TAG'
110 '$INTEROP_TAG' 113 '$INTEROP_TAG'
111 '<div></div>' 114 '<div></div>'
112 '<script type="application/dart" ' 115 '<script type="application/dart" '
113 'src="test.html_bootstrap.dart"></script>' 116 'src="test.html_bootstrap.dart"></script>'
114 '<script src="packages/browser/dart.js"></script>' 117 '<script src="packages/browser/dart.js"></script>'
115 '</body></html>', 118 '</body></html>',
116 119
117 'a|web/test.html_bootstrap.dart': 120 'a|web/test.html_bootstrap.dart':
118 '''library app_bootstrap; 121 '''library app_bootstrap;
119 122
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 'a|web/test2.html': 154 'a|web/test2.html':
152 '<!DOCTYPE html><html><head></head><body>' 155 '<!DOCTYPE html><html><head></head><body>'
153 '<polymer-element>1' 156 '<polymer-element>1'
154 '<script type="application/dart">' 157 '<script type="application/dart">'
155 '${_sampleObservable("A", "foo")}</script>' 158 '${_sampleObservable("A", "foo")}</script>'
156 '</polymer-element></html>', 159 '</polymer-element></html>',
157 }, { 160 }, {
158 'a|web/index.html': 161 'a|web/index.html':
159 '<!DOCTYPE html><html><head></head><body>' 162 '<!DOCTYPE html><html><head></head><body>'
160 '$SHADOW_DOM_TAG' 163 '$SHADOW_DOM_TAG'
164 '$CUSTOM_ELEMENT_TAG'
161 '$INTEROP_TAG' 165 '$INTEROP_TAG'
162 '<polymer-element>1</polymer-element>' 166 '<polymer-element>1</polymer-element>'
163 '<script type="application/dart" ' 167 '<script type="application/dart" '
164 'src="index.html_bootstrap.dart"></script>' 168 'src="index.html_bootstrap.dart"></script>'
165 '<script src="packages/browser/dart.js"></script>' 169 '<script src="packages/browser/dart.js"></script>'
166 '</body></html>', 170 '</body></html>',
167 'a|web/index.html_bootstrap.dart': 171 'a|web/index.html_bootstrap.dart':
168 '''library app_bootstrap; 172 '''library app_bootstrap;
169 173
170 import 'package:polymer/polymer.dart'; 174 import 'package:polymer/polymer.dart';
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 "library ${className}_$field;\n" 206 "library ${className}_$field;\n"
203 "import 'package:observe/observe.dart';\n\n" 207 "import 'package:observe/observe.dart';\n\n"
204 "class $className extends ChangeNotifierBase {\n" 208 "class $className extends ChangeNotifierBase {\n"
205 " @observable int get $field => __\$$field; " 209 " @observable int get $field => __\$$field; "
206 "int __\$$field; " 210 "int __\$$field; "
207 "set $field(int value) { " 211 "set $field(int value) { "
208 "__\$$field = notifyPropertyChange(#$field, __\$$field, value); " 212 "__\$$field = notifyPropertyChange(#$field, __\$$field, value); "
209 "}\n" 213 "}\n"
210 " $className($field) : __\$$field = $field;\n" 214 " $className($field) : __\$$field = $field;\n"
211 "}\n"; 215 "}\n";
OLDNEW
« no previous file with comments | « pkg/polymer/lib/src/build/common.dart ('k') | pkg/polymer/test/build/common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698