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

Unified Diff: test/data/input/escape3_test.html

Issue 23532024: Changes in webui to comply with the safe html changes. Now that Nodes can be (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
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 | « test/data/expected/escape3_test.html.txt ('k') | test/observe_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/data/input/escape3_test.html
diff --git a/test/data/input/escape2_test.html b/test/data/input/escape3_test.html
similarity index 78%
copy from test/data/input/escape2_test.html
copy to test/data/input/escape3_test.html
index 1776a41688dd5d8611da5cdb0de7ca2669a41399..281ba09a55ba486282205c55bf49d9b8699495c3 100644
--- a/test/data/input/escape2_test.html
+++ b/test/data/input/escape3_test.html
@@ -11,8 +11,7 @@ BSD-style license that can be found in the LICENSE file.
<script src="packages/web_ui/testing/testing.js"></script>
</head>
<body>
- <!-- Tests it is valid to switch text bindings by SafeHtml bindings and
- viceversa. -->
+ <!-- Tests it is valid to use existing nodes as SafeHtml. -->
<div>text to text (expect &lt;span&gt;text1&lt;/span&gt;): {{w}}</div>
<div>text to html (expect html1 in a real span): {{x}}</div>
<div>html to text (expect &lt;span&gt;text2&lt;/span&gt;): {{y}}</div>
@@ -26,14 +25,14 @@ BSD-style license that can be found in the LICENSE file.
@observable var w = '<span>text0</span>';
@observable var x = '<span>text0</span>';
- @observable var y = new SafeHtml.unsafe('<span>html0</span>');
- @observable var z = new SafeHtml.unsafe('<span>html0</span>');
+ @observable var y = new Element.html('<span>html0</span>');
+ @observable var z = new Element.html('<span>html0</span>');
main() {
Timer.run(() {
w = '<span>text1</span>';
- x = new SafeHtml.unsafe('<div>html1</div>');
+ x = new Element.html('<div>html1</div>');
y = '<span>text2</span>';
- z = new SafeHtml.unsafe('<div>html2</div>');
+ z = new Element.html('<div>html2</div>');
window.postMessage('done', '*');
});
}
« no previous file with comments | « test/data/expected/escape3_test.html.txt ('k') | test/observe_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698