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

Unified Diff: tests/html/custom/document_register_type_extensions_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
« no previous file with comments | « tests/html/custom/document_register_basic_test.dart ('k') | tests/html/custom_elements_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>');
« no previous file with comments | « tests/html/custom/document_register_basic_test.dart ('k') | tests/html/custom_elements_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698