bstringData(12, 4), "char")
    assert_equals(node.substringData(39, 2), "è³‡æ–™")
  }, type + ".substringData() with non-ASCII data")

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

    node.data = "ðŸŒ  test ðŸŒ  TEST"

    assert_equals(node.substringData(5, 8), "st ðŸŒ  TE")  // Counting UTF-16 code units
  }, type + ".substringData() with non-BMP data")
}

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