uals(node.substringData(-0x100000000 + 2, 1), "s")
  }, type + ".substringData() with negative offset")

  test(function() {
    var node = create()
    assert_equals(node.data, "test")

    assert_equals(node.substringData("test", 3), "tes")
  }, type + ".substringData() with string offset")

  test(function() {
    var node = create()
    assert_equals(node.data, "test")

    assert_equals(node.substringData(0, 1), "t")
    assert_equals(node.substringData(0, 2), "te")
    assert_equals(node.substringData