(0, 3), "tes")
    assert_equals(node.substringData(0, 4), "test")
  }, type + ".substringData() with in-bounds count")

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

    assert_equals(node.substringData(0, 5), "test")
    assert_equals(node.substringData(2, 20), "st")
  }, type + ".substringData() with large count")

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

    assert_equals(node.substringData(2, 0x100000000 + 1), "s")
  }, type +