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

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

Issue 27903006: Improves how to initialize polymer apps and fixes polymer build and linter to (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/polymer/test/build/linter_test.dart ('k') | pkg/polymer/test/build/script_compactor_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/build/polyfill_injector_test.dart
diff --git a/pkg/polymer/test/build/polyfill_injector_test.dart b/pkg/polymer/test/build/polyfill_injector_test.dart
index 9cbd333cec5859621d19fb6f052f4b8d05dfbd24..8a28739ec0a03d9c9fabcde1622d4e99ffd5c177 100644
--- a/pkg/polymer/test/build/polyfill_injector_test.dart
+++ b/pkg/polymer/test/build/polyfill_injector_test.dart
@@ -26,6 +26,7 @@ void runTests({bool js: true, bool csp: false}) {
var ext = js ? (csp ? '.precompiled.js' : '.js') : '';
var type = js ? '' : 'type="application/dart" ';
+ var dartJsTag = js ? '' : DART_JS_TAG;
testPhases('no changes', phases, {
'a|web/test.html': '<!DOCTYPE html><html></html>',
@@ -49,26 +50,32 @@ void runTests({bool js: true, bool csp: false}) {
'<script type="application/dart" src="a.dart"></script>',
}, {
'a|web/test.html':
- '<!DOCTYPE html><html><head></head><body>'
+ '<!DOCTYPE html><html><head>'
'$SHADOW_DOM_TAG$CUSTOM_ELEMENT_TAG$INTEROP_TAG'
+ '</head><body>'
'<script ${type}src="a.dart$ext"></script>'
+ '$dartJsTag'
'</body></html>',
});
testPhases('interop/shadow dom already present', phases, {
'a|web/test.html':
- '<!DOCTYPE html><html><head></head><body>'
- '<script type="application/dart" src="a.dart"></script>'
+ '<!DOCTYPE html><html><head>'
'$SHADOW_DOM_TAG'
'$CUSTOM_ELEMENT_TAG'
'$INTEROP_TAG'
+ '</head><body>'
+ '<script type="application/dart" src="a.dart"></script>'
+ '$dartJsTag'
}, {
'a|web/test.html':
- '<!DOCTYPE html><html><head></head><body>'
- '<script ${type}src="a.dart$ext"></script>'
+ '<!DOCTYPE html><html><head>'
'$SHADOW_DOM_TAG'
'$CUSTOM_ELEMENT_TAG'
'$INTEROP_TAG'
+ '</head><body>'
+ '<script ${type}src="a.dart$ext"></script>'
+ '$dartJsTag'
'</body></html>',
});
}
« no previous file with comments | « pkg/polymer/test/build/linter_test.dart ('k') | pkg/polymer/test/build/script_compactor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698