| Index: pkg/unittest/lib/html_enhanced_config.dart
|
| diff --git a/pkg/unittest/lib/html_enhanced_config.dart b/pkg/unittest/lib/html_enhanced_config.dart
|
| index 723fc0c6f0239ee8f19572ef1ca9731ade65ea46..75f02abbce2fdf33c31dbcb2766dd6750fa122ea 100644
|
| --- a/pkg/unittest/lib/html_enhanced_config.dart
|
| +++ b/pkg/unittest/lib/html_enhanced_config.dart
|
| @@ -68,12 +68,12 @@ class HtmlEnhancedConfiguration extends SimpleConfiguration {
|
|
|
| var cssElement = document.head.query('#${_CSSID}');
|
| if (cssElement == null){
|
| - document.head.children.add(new Element.html(
|
| - '<style id="${_CSSID}"></style>'));
|
| - cssElement = document.head.query('#${_CSSID}');
|
| + cssElement = new StyleElement();
|
| + cssElement.id = _CSSID;
|
| + document.head.append(cssElement);
|
| }
|
|
|
| - cssElement.innerHtml = _htmlTestCSS;
|
| + cssElement.text = _htmlTestCSS;
|
| window.postMessage('unittest-suite-wait-for-done', '*');
|
| }
|
|
|
|
|