| 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>',
|
|
|