== the undo shortcut reverts a typed run and fires history events ==
PASS: undo shortcut reverted the run
PASS: undo shortcut events
PASS: redo shortcut restored the run
PASS: redo shortcut events
== exhausted shortcuts fire no events ==
PASS: undo shortcut with empty history events
PASS: second undo with exhausted history events
PASS: second redo with exhausted history events
PASS: DOM unchanged by exhausted shortcuts
== canceled beforeinput historyUndo neither mutates nor consumes an entry ==
PASS: canceled undo did not mutate the DOM
PASS: canceled undo events
PASS: the history entry was not consumed
PASS: the next undo still works
PASS: uncanceled undo events
== canceled beforeinput insertText records nothing ==
PASS: canceled insertText did not mutate
PASS: canceled insertText recorded nothing
PASS: undo removed only the uncanceled insertion
PASS: one entry existed
== the undo shortcut works without a selection in the host ==
PASS: undo without focus reverted the edit
PASS: unfocused undo events
