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

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

Issue 676313004: fix bug where dart_support.js could get included above platform.js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: update pubspec/changelog Created 6 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/common.dart ('k') | no next file » | 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 84af1c7dc956d09f262bfc59765748b439f79c03..6eba339bb64f17a56d9ddd0b5174989f3b47b509 100644
--- a/pkg/polymer/test/build/polyfill_injector_test.dart
+++ b/pkg/polymer/test/build/polyfill_injector_test.dart
@@ -74,6 +74,40 @@ void runTests({bool js: true}) {
'</body></html>',
});
+ testPhases('dart_support.js after platform.js, platform present', 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>'
+ '$WEB_COMPONENTS_TAG'
+ '</head><body>'
+ '<script ${type}src="a.dart$ext"$async></script>'
+ '$dartJsTag'
+ '</body></html>',
+ });
+
+ testPhases('dart_support.js after platform.js, dart_support present', phases, {
+ 'a|web/test.html':
+ '<!DOCTYPE html><html><head>'
+ '$DART_SUPPORT_TAG'
+ '</head><body>'
+ '<script type="application/dart" src="a.dart"></script>'
+ '$dartJsTag'
+ }, {
+ 'a|web/test.html':
+ '<!DOCTYPE html><html><head>'
+ '$WEB_COMPONENTS_TAG'
+ '</head><body>'
+ '<script ${type}src="a.dart$ext"$async></script>'
+ '$dartJsTag'
+ '</body></html>',
+ });
+
var noPlatformPhases = [[new PolyfillInjector(new TransformOptions(
directlyIncludeJS: js, injectPlatformJs: false))]];
« no previous file with comments | « pkg/polymer/test/build/common.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698