document.getElementById("before"); var child = document.createElement("div"); parent.insertBefore(child, before); assert_equals(child.parentNode, parent, "There should be the element under the parent element."); assert_equals(child.nextSibling, before, "There should be the element at the previous of the before element."); }, "Insert before the before element.");
window object should have document attribute."); assert_readonly(window, "document", "The document attribute should read only."); }, "Checks document attribute of window object.");
var text = document.getElementById("text"); assert_equals(base.getBoundingClientRect().left, text.getBoundingClientRect(). left, "Ruby base and ruby text should create one ruby pair."); }, "Ruby base and ruby text creates one ruby pair.");