let tr1 = document.getElementById("tr1");
synthesizeMouseAtCenter(tr1, {});
synthesizeKey("o");
isnot(tr1.firstChild.firstChild.textContent, "ABCDEFG", "Text is modified");
let tr2 = document.getElementById("tr2");
synthesizeMouseAtCenter(tr2, {});
synthesizeKey("y");
isnot(tr2.firstChild.firstChild.textContent, "ABCDEFG", "Text is modified");
synthesizeKey("z", { accelKey: true });
is(tr2.firstChild.firstChild.textContent, "ABCDEFG", "Text is restored by undo");
synthesizeKey("z", { accelKey: true });
is(tr1.firstChild.firstChild.textContent, "ABCDEFG", "Text is restored by undo");
synthesizeMouseAtCenter(tr1, {});
synthesizeKey("p");
isnot(tr1.firstChild.firstChild.textContent, "ABCDEFG", "Text is modified");
// Inline table editing UI
synthesizeMouseAtCenter(tr2, {});
synthesizeMouse(tr2, 0, tr2.clientHeight / 2, {});
ok(!document.getElementById("tr2"), "id=tr2 should be removed by a click in the row");
synthesizeKey("z", { accelKey: true });
ok(document.getElementById("tr2"), "id=tr2 should be restored by undo");
synthesizeKey("z", { accelKey: true });
is(tr1.firstChild.firstChild.textContent, "ABCDEFG", "Text is restored by undo");
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.