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 4b5dbf6be04c9031754091b4c4be0ef7912ccfc7..6f5336704d4bd1ac5a7e0237ebf140a0355a6953 100644 |
--- a/pkg/polymer/test/build/polyfill_injector_test.dart |
+++ b/pkg/polymer/test/build/polyfill_injector_test.dart |
@@ -27,6 +27,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; |
+ var async = js ? ' async=""' : ''; |
testPhases('no changes', phases, { |
'a|web/test.html': '<!DOCTYPE html><html></html>', |
@@ -53,7 +54,7 @@ void runTests({bool js: true, bool csp: false}) { |
'<!DOCTYPE html><html><head>' |
'$WEB_COMPONENTS_TAG' |
'</head><body>' |
- '<script ${type}src="a.dart$ext"></script>' |
+ '<script ${type}src="a.dart$ext"$async></script>' |
'$dartJsTag' |
'</body></html>', |
}); |
@@ -70,7 +71,7 @@ void runTests({bool js: true, bool csp: false}) { |
'<!DOCTYPE html><html><head>' |
'$WEB_COMPONENTS_TAG' |
'</head><body>' |
- '<script ${type}src="a.dart$ext"></script>' |
+ '<script ${type}src="a.dart$ext"$async></script>' |
'$dartJsTag' |
'</body></html>', |
}); |