Index: tests/html/custom/document_register_type_extensions_test.dart |
diff --git a/tests/html/custom/document_register_type_extensions_test.dart b/tests/html/custom/document_register_type_extensions_test.dart |
index cacb251a0f77c41911600d9fc205711851692c11..5cea99a640383006c46a6434af7ffe25351690d0 100644 |
--- a/tests/html/custom/document_register_type_extensions_test.dart |
+++ b/tests/html/custom/document_register_type_extensions_test.dart |
@@ -6,6 +6,7 @@ library document_register_type_extensions_test; |
import 'package:unittest/unittest.dart'; |
import 'package:unittest/html_config.dart'; |
import 'dart:html'; |
+import 'utils.dart'; |
class Foo extends HtmlElement { |
static final tag = 'x-foo'; |
@@ -170,8 +171,9 @@ main() { |
// Parser |
createElementFromHtml(html) { |
- var container = new DivElement()..innerHtml = html; |
- return container.firstChild; |
+ var container = new DivElement()..setInnerHtml(html, |
+ treeSanitizer: new NullTreeSanitizer()); |
+ return container.firstChild; |
} |
var fooParsed = createElementFromHtml('<x-foo>'); |