This repository was archived by the owner on Feb 22, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -197,9 +197,12 @@ class _ComponentFactory implements Function {
197
197
TemplateLoader templateLoader = new TemplateLoader (
198
198
async .Future .wait (cssFutures).then ((Iterable <String > cssList) {
199
199
if (cssList != null ) {
200
- var filteredCssList = cssList.where ((css) => css != null );
201
- shadowDom.setInnerHtml ('<style>${filteredCssList .join ('' )}</style>' ,
202
- treeSanitizer: treeSanitizer);
200
+ shadowDom.setInnerHtml (
201
+ cssList
202
+ .where ((css) => css != null )
203
+ .map ((css) => '<style>$css </style>' )
204
+ .join ('' ),
205
+ treeSanitizer: treeSanitizer);
203
206
}
204
207
if (viewFuture != null ) {
205
208
return viewFuture.then ((ViewFactory viewFactory) {
Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ void main() {
227
227
228
228
expect (element).toHaveText ('.hello{}.world{}Simple!' );
229
229
expect (element.children[0 ].shadowRoot).toHaveHtml (
230
- '<style>.hello{}.world{}</style><div log="SIMPLE">Simple!</div>'
230
+ '<style>.hello{}</style><style> .world{}</style><div log="SIMPLE">Simple!</div>'
231
231
);
232
232
rootScope.apply ();
233
233
// Note: There is no ordering. It is who ever comes off the wire first!
You can’t perform that action at this time.
0 commit comments