mirror of
https://github.com/servo/servo.git
synced 2025-08-30 01:28:21 +01:00
Update web-platform-tests to revision 58133dd71b16037669a0aa011b2afd448b52d434.
This commit is contained in:
parent
84c4a26e4d
commit
88ea7c4291
192 changed files with 50802 additions and 1334 deletions
|
@ -43,6 +43,17 @@ function testNode(create, type) {
|
|||
assert_equals(node.substringData(4, 1), "")
|
||||
}, type + ".substringData() with in-bounds offset")
|
||||
|
||||
test(function() {
|
||||
var node = create()
|
||||
assert_equals(node.data, "test")
|
||||
|
||||
assert_equals(node.substringData(0, 0), "")
|
||||
assert_equals(node.substringData(1, 0), "")
|
||||
assert_equals(node.substringData(2, 0), "")
|
||||
assert_equals(node.substringData(3, 0), "")
|
||||
assert_equals(node.substringData(4, 0), "")
|
||||
}, type + ".substringData() with zero count")
|
||||
|
||||
test(function() {
|
||||
var node = create()
|
||||
assert_equals(node.data, "test")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue