Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 29, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions dom/nodes/CharacterData-deleteData.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@
node.deleteData(1, 1)
assert_equals(node.data, "tst")
}, type + ".deleteData() in the middle")

test(function() {
var node = create()
node.data = "This is the character data test, append more 資料,更多測試資料";

node.deleteData(40, 5);
assert_equals(node.data, "This is the character data test, append 資料,更多測試資料");
node.deleteData(45, 2);
assert_equals(node.data, "This is the character data test, append 資料,更多資料");
}, type + ".deleteData() with non-ascii data")
}

testNode(function() { return document.createTextNode("test") }, "Text")
Expand Down