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

Unified Diff: pkg/unittest/lib/html_enhanced_config.dart

Issue 16374007: First rev of Safe DOM (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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/mdv/test/template_element_test.dart ('k') | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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', '*');
}
« no previous file with comments | « pkg/mdv/test/template_element_test.dart ('k') | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698