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

Unified Diff: tests/html/custom/document_register_basic_test.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
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);
« no previous file with comments | « tests/html/cssstyledeclaration_test.dart ('k') | tests/html/custom/document_register_type_extensions_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698