Skip to content

Commit

Permalink
Merge pull request #1795 from w3c/sync_1fe89f1b920217602f49376ff6b507…
Browse files Browse the repository at this point in the history
…57e57e6a62

Merge pull request #1795 from sync_1fe89f1b920217602f49376ff6b50757e57e6a62
  • Loading branch information
Ms2ger committed Apr 29, 2015
2 parents 755cf02 + 1fe89f1 commit fef3eb9
Showing 1 changed file with 10 additions and 0 deletions.
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

0 comments on commit fef3eb9

Please sign in to comment.