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 <span>text1</span>): {{w}}</div> |
<div>text to html (expect html1 in a real span): {{x}}</div> |
<div>html to text (expect <span>text2</span>): {{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', '*'); |
}); |
} |