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

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

Issue 723393003: update to polymer js 0.5.1 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: final tweaks Created 6 years 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
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 6eba339bb64f17a56d9ddd0b5174989f3b47b509..b68bea0360b65bc8d358026cfa388be60e9b0e17 100644
--- a/pkg/polymer/test/build/polyfill_injector_test.dart
+++ b/pkg/polymer/test/build/polyfill_injector_test.dart
@@ -50,7 +50,7 @@ void runTests({bool js: true}) {
}, {
'a|web/test.html':
'<!DOCTYPE html><html><head>'
- '$WEB_COMPONENTS_TAG'
+ '$COMPATIBILITY_JS_TAGS'
'</head><body>'
'<script ${type}src="a.dart$ext"$async></script>'
'$dartJsTag'
@@ -60,38 +60,42 @@ void runTests({bool js: true}) {
testPhases('interop/shadow dom already present', phases, {
'a|web/test.html':
'<!DOCTYPE html><html><head>'
- '$WEB_COMPONENTS_TAG'
+ '$COMPATIBILITY_JS_TAGS'
'</head><body>'
'<script type="application/dart" src="a.dart"></script>'
'$dartJsTag'
}, {
'a|web/test.html':
'<!DOCTYPE html><html><head>'
- '$WEB_COMPONENTS_TAG'
+ '$COMPATIBILITY_JS_TAGS'
'</head><body>'
'<script ${type}src="a.dart$ext"$async></script>'
'$dartJsTag'
'</body></html>',
});
- testPhases('dart_support.js after platform.js, platform present', phases, {
+ testPhases(
+ 'dart_support.js after webcomponents.js, web_components present', phases,
+ {
'a|web/test.html':
'<!DOCTYPE html><html><head>'
- '$PLATFORM_JS_TAG'
+ '$WEB_COMPONENTS_JS_TAG'
'</head><body>'
'<script type="application/dart" src="a.dart"></script>'
'$dartJsTag'
}, {
'a|web/test.html':
'<!DOCTYPE html><html><head>'
- '$WEB_COMPONENTS_TAG'
+ '$COMPATIBILITY_JS_TAGS'
'</head><body>'
'<script ${type}src="a.dart$ext"$async></script>'
'$dartJsTag'
'</body></html>',
});
- testPhases('dart_support.js after platform.js, dart_support present', phases, {
+ testPhases(
+ 'dart_support.js after webcomponents.js, dart_support present', phases,
+ {
'a|web/test.html':
'<!DOCTYPE html><html><head>'
'$DART_SUPPORT_TAG'
@@ -101,17 +105,35 @@ void runTests({bool js: true}) {
}, {
'a|web/test.html':
'<!DOCTYPE html><html><head>'
- '$WEB_COMPONENTS_TAG'
+ '$COMPATIBILITY_JS_TAGS'
+ '</head><body>'
+ '<script ${type}src="a.dart$ext"$async></script>'
+ '$dartJsTag'
+ '</body></html>',
+ });
+
+ testPhases('platform.js -> webcomponents.js', phases,
+ {
+ 'a|web/test.html':
+ '<!DOCTYPE html><html><head>'
+ '$PLATFORM_JS_TAG'
+ '</head><body>'
+ '<script type="application/dart" src="a.dart"></script>'
+ '$dartJsTag'
+ }, {
+ 'a|web/test.html':
+ '<!DOCTYPE html><html><head>'
+ '$COMPATIBILITY_JS_TAGS'
'</head><body>'
'<script ${type}src="a.dart$ext"$async></script>'
'$dartJsTag'
'</body></html>',
});
- var noPlatformPhases = [[new PolyfillInjector(new TransformOptions(
- directlyIncludeJS: js, injectPlatformJs: false))]];
+ var noWebComponentsPhases = [[new PolyfillInjector(new TransformOptions(
+ directlyIncludeJS: js, injectWebComponentsJs: false))]];
- testPhases('with no platform.js', noPlatformPhases, {
+ testPhases('with no webcomponents.js', noWebComponentsPhases, {
'a|web/test.html':
'<!DOCTYPE html><html><head></head><body>'
'<script type="application/dart" src="a.dart"></script>',

Powered by Google App Engine
This is Rietveld 408576698