Handle failures from async JS functions in devtools browser tests.
Handle failures from async JS functions in devtools browser tests.

Bug: None
Change-Id: Ic5b4e025a80cf0392892e79a0b812e8521036817
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3242145
Commit-Queue: Danil Somsikov <f16a5ee11618cab93684e694f9aa762d34f02920@chromium.org>
Commit-Queue: Tim van der Lippe <dba8716ee7f8d16236046f74d2167cb94410f6ed@chromium.org>
Auto-Submit: Danil Somsikov <f16a5ee11618cab93684e694f9aa762d34f02920@chromium.org>
Reviewed-by: Tim van der Lippe <dba8716ee7f8d16236046f74d2167cb94410f6ed@chromium.org>

ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend