Test a non-ASCII argument to CharacterData#appendData.

This commit is contained in:
Ms2ger 2015-04-23 15:13:41 +02:00
parent 173c9721c5
commit 51b06bcbaf
2 changed files with 9 additions and 7 deletions

View file

@ -9,13 +9,7 @@
<script>
test(function() {
var a = document.getElementsByTagName('p')[0].childNodes[0];
assert_equals(a.data, "This is the character data");
// append test utf8
a.appendData(", append more 資料,測試資料");
assert_equals(a.data, "This is the character data, append more 資料,測試資料");
// length test utf8
assert_equals(a.length, 47);
a.data = "This is the character data, append more 資料,測試資料";
// insert test non-utf8
a.insertData(26, " test");