DevTools: immediately finish test and print error if uncaught error is thrown
When there's an uncaught exception from running our test, the test times out which is annoying to wait for and it doesn't provide any intermediate output. This executes our test script in an awaited try-catch block so we can print the error and end the test early. This updates our unit tests to follow the async IIFE pattern that the rest of the new tests uses so it plays nicely with our new error-handling code. R=dgozman@chromium.org,einbinder@chromium.org Bug: 667560 Change-Id: I2f693c704ef2991a2970fa925e52422d633bc06c Reviewed-on: https://chromium-review.googlesource.com/773565 Commit-Queue: Will Chen <chenwilliam@chromium.org> Reviewed-by:Dmitry Gozman <dgozman@chromium.org> Reviewed-by:
Joel Einbinder <einbinder@chromium.org> Cr-Commit-Position: refs/heads/master@{#517510}
Showing
This diff is collapsed.
Please register or sign in to comment