[XHR layouttest] Check that we can recover from network error in an event handler

BUG=402855

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180518 bbb929c8-8fbe-4397-9dbb-9b2b20218538