mirror of
https://github.com/servo/servo
synced 2026-04-30 19:37:43 +02:00
Test a non-ASCII argument to CharacterData#appendData.
This commit is contained in:
@@ -24,6 +24,14 @@ function testNode(create, type) {
|
||||
assert_equals(node.data, "test")
|
||||
}, type + ".appendData('')")
|
||||
|
||||
test(function() {
|
||||
var node = create()
|
||||
assert_equals(node.data, "test")
|
||||
node.appendData(", append more 資料,測試資料");
|
||||
assert_equals(node.data, "test, append more 資料,測試資料");
|
||||
assert_equals(node.length, 25);
|
||||
}, type + ".appendData(non-ASCII)")
|
||||
|
||||
test(function() {
|
||||
var node = create()
|
||||
assert_equals(node.data, "test")
|
||||
|
||||
Reference in New Issue
Block a user