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

Unified Diff: tests/html/custom_tags_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_elements_test.dart ('k') | tests/html/element_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/custom_tags_test.dart
diff --git a/tests/html/custom_tags_test.dart b/tests/html/custom_tags_test.dart
index 7ac344c06dfcb3c3f976b0e579414951071c26bc..6295af5b925373bedcdca98c92371bfac62541bc 100644
--- a/tests/html/custom_tags_test.dart
+++ b/tests/html/custom_tags_test.dart
@@ -6,6 +6,7 @@ library custom_tags_test;
import '../../pkg/unittest/lib/unittest.dart';
import '../../pkg/unittest/lib/html_config.dart';
import 'dart:html';
+import 'utils.dart';
main() {
useHtmlConfiguration();
@@ -24,7 +25,8 @@ main() {
test('custom inner html', () {
var element = new DivElement();
- element.innerHtml = "<x-basic2 id='basic2'></x-basic2>";
+ element.setInnerHtml("<x-basic2 id='basic2'></x-basic2>",
+ treeSanitizer: new NullTreeSanitizer());
document.body.nodes.add(element);
var queryById = query('#basic2');
@@ -37,7 +39,8 @@ main() {
test('type extension inner html', () {
var element = new DivElement();
- element.innerHtml = "<div is='x-basic3' id='basic3'></div>";
+ element.setInnerHtml("<div is='x-basic3' id='basic3'></div>",
+ treeSanitizer: new NullTreeSanitizer());
document.body.nodes.add(element);
var queryById = query('#basic3');
« no previous file with comments | « tests/html/custom_elements_test.dart ('k') | tests/html/element_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698