Add a non-ASCII test to CharacterData-deleteData.html.

This commit is contained in:
Ms2ger 2015-04-23 22:35:52 +02:00
parent de12dc814a
commit 107e57809d
2 changed files with 11 additions and 8 deletions

View file

@ -9,14 +9,7 @@
<script>
test(function() {
var a = document.getElementsByTagName('p')[0].childNodes[0];
a.data = "This is the character data test, append more 資料,更多測試資料";
// delete test non-utf8
a.deleteData(40, 5);
assert_equals(a.data, "This is the character data test, append 資料,更多測試資料");
// delete test utf8
a.deleteData(45, 2);
assert_equals(a.data, "This is the character data test, append 資料,更多資料");
a.data = "This is the character data test, append 資料,更多資料";
// replace test non-utf8
a.replaceData(33, 6, "other");