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

Unified Diff: tests/html/safe_dom_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/node_validator_test.dart ('k') | tests/html/svg_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/safe_dom_test.dart
diff --git a/tests/html/safe_dom_test.dart b/tests/html/safe_dom_test.dart
index 686c4e00a74c8d5993de264e64f1799e14e69bca..1ff62ede1f946b9110d4b9f08da5b2654c6a8b21 100644
--- a/tests/html/safe_dom_test.dart
+++ b/tests/html/safe_dom_test.dart
@@ -39,7 +39,7 @@ main() {
// Make sure that scripts did get executed, so we know our detection works.
test('Unsafe Execution', () {
var div = new DivElement();
- div.innerHtml = unsafeString;
+ div.$dom_innerHtml = unsafeString;
// Crashing DRT ??
// var fragment = createContextualFragment(unsafeString);
// div.append(fragment);
@@ -74,7 +74,7 @@ DocumentFragment createContextualFragment(String html, [String contextTag]) {
range.selectNode(contextElement);
return range.createContextualFragment(html);
} else {
- contextElement.innerHtml = html;
+ contextElement.unsafeInnerHtml = html;
var fragment = new DocumentFragment();;
while (contextElement.firstChild != null) {
fragment.append(contextElement.firstChild);
« no previous file with comments | « tests/html/node_validator_test.dart ('k') | tests/html/svg_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698