Index: tests/html/custom/document_register_basic_test.dart |
diff --git a/tests/html/custom/document_register_basic_test.dart b/tests/html/custom/document_register_basic_test.dart |
index 718358afbe05b40f14df877a4b1758fb4131c005..2214801188dbd09c74c70fbec3d9cb28733e9272 100644 |
--- a/tests/html/custom/document_register_basic_test.dart |
+++ b/tests/html/custom/document_register_basic_test.dart |
@@ -6,6 +6,7 @@ library document_register_basic_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'; |
@@ -83,7 +84,8 @@ main() { |
// Parser initiated instantiation |
var container = new DivElement()..id = "container"; |
document.body.append(container); |
- container.innerHtml = "<x-foo></x-foo>"; |
+ container.setInnerHtml("<x-foo></x-foo>", |
+ treeSanitizer: new NullTreeSanitizer()); |
var parsedFoo = container.firstChild; |
expect(parsedFoo is Foo, isTrue); |
@@ -117,7 +119,8 @@ main() { |
expect(createdMixedBar is Bar, isTrue); |
expect(createdMixedBar.tagName, "X-BAR"); |
- container.innerHtml = "<X-BAR></X-BAR><X-Bar></X-Bar>"; |
+ container.setInnerHtml("<X-BAR></X-BAR><X-Bar></X-Bar>", |
+ treeSanitizer: new NullTreeSanitizer()); |
expect(container.firstChild is Bar, isTrue); |
expect(container.firstChild.tagName, "X-BAR"); |
expect(container.lastChild is Bar, isTrue); |