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

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

Issue 24046003: Fix TODO in polymer _shimCss, remove package:js dependency (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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';
(...skipping 19 matching lines...) Expand all
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 '$INTEROP_TAG' 39 '$INTEROP_TAG'
40 '$PKG_JS_INTEROP_TAG'
41 '<script type="application/dart" ' 40 '<script type="application/dart" '
42 'src="test.html_bootstrap.dart"></script>' 41 'src="test.html_bootstrap.dart"></script>'
43 '<script src="packages/browser/dart.js"></script>' 42 '<script src="packages/browser/dart.js"></script>'
44 '</body></html>', 43 '</body></html>',
45 44
46 'a|web/test.html_bootstrap.dart': 45 'a|web/test.html_bootstrap.dart':
47 '''library app_bootstrap; 46 '''library app_bootstrap;
48 47
49 import 'package:polymer/polymer.dart'; 48 import 'package:polymer/polymer.dart';
50 import 'dart:mirrors' show currentMirrorSystem; 49 import 'dart:mirrors' show currentMirrorSystem;
(...skipping 12 matching lines...) Expand all
63 testPhases('single inline script', phases, { 62 testPhases('single inline script', phases, {
64 'a|web/test.html': 63 'a|web/test.html':
65 '<!DOCTYPE html><html><head>' 64 '<!DOCTYPE html><html><head>'
66 '<script type="application/dart">' 65 '<script type="application/dart">'
67 '${_sampleObservable("B", "bar")}</script>', 66 '${_sampleObservable("B", "bar")}</script>',
68 }, { 67 }, {
69 'a|web/test.html': 68 'a|web/test.html':
70 '<!DOCTYPE html><html><head></head><body>' 69 '<!DOCTYPE html><html><head></head><body>'
71 '$SHADOW_DOM_TAG' 70 '$SHADOW_DOM_TAG'
72 '$INTEROP_TAG' 71 '$INTEROP_TAG'
73 '$PKG_JS_INTEROP_TAG'
74 '<script type="application/dart" ' 72 '<script type="application/dart" '
75 'src="test.html_bootstrap.dart"></script>' 73 'src="test.html_bootstrap.dart"></script>'
76 '<script src="packages/browser/dart.js"></script>' 74 '<script src="packages/browser/dart.js"></script>'
77 '</body></html>', 75 '</body></html>',
78 76
79 'a|web/test.html_bootstrap.dart': 77 'a|web/test.html_bootstrap.dart':
80 '''library app_bootstrap; 78 '''library app_bootstrap;
81 79
82 import 'package:polymer/polymer.dart'; 80 import 'package:polymer/polymer.dart';
83 import 'dart:mirrors' show currentMirrorSystem; 81 import 'dart:mirrors' show currentMirrorSystem;
(...skipping 19 matching lines...) Expand all
103 '<script type="application/dart">' 101 '<script type="application/dart">'
104 '${_sampleObservable("C", "car")}</script>' 102 '${_sampleObservable("C", "car")}</script>'
105 '</div>' 103 '</div>'
106 '<script type="application/dart" src="d.dart"></script>', 104 '<script type="application/dart" src="d.dart"></script>',
107 'a|web/a.dart': _sampleObservable('A', 'foo'), 105 'a|web/a.dart': _sampleObservable('A', 'foo'),
108 }, { 106 }, {
109 'a|web/test.html': 107 'a|web/test.html':
110 '<!DOCTYPE html><html><head></head><body>' 108 '<!DOCTYPE html><html><head></head><body>'
111 '$SHADOW_DOM_TAG' 109 '$SHADOW_DOM_TAG'
112 '$INTEROP_TAG' 110 '$INTEROP_TAG'
113 '$PKG_JS_INTEROP_TAG'
114 '<div></div>' 111 '<div></div>'
115 '<script type="application/dart" ' 112 '<script type="application/dart" '
116 'src="test.html_bootstrap.dart"></script>' 113 'src="test.html_bootstrap.dart"></script>'
117 '<script src="packages/browser/dart.js"></script>' 114 '<script src="packages/browser/dart.js"></script>'
118 '</body></html>', 115 '</body></html>',
119 116
120 'a|web/test.html_bootstrap.dart': 117 'a|web/test.html_bootstrap.dart':
121 '''library app_bootstrap; 118 '''library app_bootstrap;
122 119
123 import 'package:polymer/polymer.dart'; 120 import 'package:polymer/polymer.dart';
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 '<!DOCTYPE html><html><head></head><body>' 152 '<!DOCTYPE html><html><head></head><body>'
156 '<polymer-element>1' 153 '<polymer-element>1'
157 '<script type="application/dart">' 154 '<script type="application/dart">'
158 '${_sampleObservable("A", "foo")}</script>' 155 '${_sampleObservable("A", "foo")}</script>'
159 '</polymer-element></html>', 156 '</polymer-element></html>',
160 }, { 157 }, {
161 'a|web/index.html': 158 'a|web/index.html':
162 '<!DOCTYPE html><html><head></head><body>' 159 '<!DOCTYPE html><html><head></head><body>'
163 '$SHADOW_DOM_TAG' 160 '$SHADOW_DOM_TAG'
164 '$INTEROP_TAG' 161 '$INTEROP_TAG'
165 '$PKG_JS_INTEROP_TAG'
166 '<polymer-element>1</polymer-element>' 162 '<polymer-element>1</polymer-element>'
167 '<script type="application/dart" ' 163 '<script type="application/dart" '
168 'src="index.html_bootstrap.dart"></script>' 164 'src="index.html_bootstrap.dart"></script>'
169 '<script src="packages/browser/dart.js"></script>' 165 '<script src="packages/browser/dart.js"></script>'
170 '</body></html>', 166 '</body></html>',
171 'a|web/index.html_bootstrap.dart': 167 'a|web/index.html_bootstrap.dart':
172 '''library app_bootstrap; 168 '''library app_bootstrap;
173 169
174 import 'package:polymer/polymer.dart'; 170 import 'package:polymer/polymer.dart';
175 import 'dart:mirrors' show currentMirrorSystem; 171 import 'dart:mirrors' show currentMirrorSystem;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 class $className extends ChangeNotifierBase { 205 class $className extends ChangeNotifierBase {
210 int __\$$fieldName; 206 int __\$$fieldName;
211 int get $fieldName => __\$$fieldName; 207 int get $fieldName => __\$$fieldName;
212 set $fieldName(int value) { 208 set $fieldName(int value) {
213 __\$$fieldName = notifyPropertyChange(const Symbol('$fieldName'), __\$$field Name, value); 209 __\$$fieldName = notifyPropertyChange(const Symbol('$fieldName'), __\$$field Name, value);
214 } 210 }
215 211
216 $className($fieldName) : __\$$fieldName = $fieldName; 212 $className($fieldName) : __\$$fieldName = $fieldName;
217 } 213 }
218 '''; 214 ''';
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698