This patch changes a test script, undo-after-event-edited.html, stable, by executing JavaScript after document finished loading.

When calling Range.extractContents() for selection selected whole document w/o body, SimplifiedBackwardsTextIterator creates Range object with DocumentType which is illegal argument for Range construction.

BUG=242444
R=ojan@chromium.org

Review URL: https://codereview.chromium.org/16045003

git-svn-id: svn://svn.chromium.org/blink/trunk@151633 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2 files changed