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

Unified Diff: pkg/polymer/test/build/all_phases_test.dart

Issue 196723017: Fix polymer tests and a couple bugs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/polymer/lib/src/build/import_inliner.dart ('k') | pkg/polymer/test/build/import_inliner_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/build/all_phases_test.dart
diff --git a/pkg/polymer/test/build/all_phases_test.dart b/pkg/polymer/test/build/all_phases_test.dart
index 57d0e6d5a1d20c458a59fed9872e842ec367f652..b30b4284d5d3cd79010c4c096e772b0f91f01ed9 100644
--- a/pkg/polymer/test/build/all_phases_test.dart
+++ b/pkg/polymer/test/build/all_phases_test.dart
@@ -17,9 +17,13 @@ void main() {
testPhases('no changes', phases, {
'a|web/test.html': '<!DOCTYPE html><html></html>',
- }, {
- 'a|web/test.html': '<!DOCTYPE html><html></html>',
- });
+ }, {}, [
+ 'error: To run a polymer application, you need to call "initPolymer". You'
+ ' can either include a generic script tag that does this for you:\'<'
+ 'script type="application/dart">export "package:polymer/init.dart";'
+ '</script>\' or add your own script tag and call that function. Make sure'
+ ' the script tag is placed after all HTML imports.'
+ ]);
testPhases('observable changes', phases, {
'a|web/test.dart': _sampleObservable('A', 'foo'),
@@ -146,7 +150,7 @@ void main() {
'a|web/b.dart': _sampleObservable('B', 'bar'),
'a|web/test2.html':
'<!DOCTYPE html><html><head></head><body>'
- '<polymer-element>1'
+ '<polymer-element name="x-a">1'
'<script type="application/dart">'
'${_sampleObservable("A", "foo")}</script>'
'</polymer-element></html>',
@@ -155,7 +159,7 @@ void main() {
'<!DOCTYPE html><html><head>'
'$WEB_COMPONENTS_TAG'
'$INTEROP_TAG'
- '</head><body><polymer-element>1</polymer-element>'
+ '</head><body><polymer-element name="x-a">1</polymer-element>'
'<script src="index.html_bootstrap.dart.js"></script>'
'</body></html>',
'a|web/index.html_bootstrap.dart':
« no previous file with comments | « pkg/polymer/lib/src/build/import_inliner.dart ('k') | pkg/polymer/test/build/import_inliner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698