adobe/brackets — pull request #3388 by njx (2013-04-09 21:27:03+00:00)
Title: Make LD unit test retry connection a few times before failing

Fixes #3386.

This unit test was often failing if the browser was closed before the test was run. I think the issue is that even though the test was waiting for `NativeApp.openLiveBrowser()` to complete, that didn't guarantee that Chrome was fully started up and ready to accept connections, so trying to connect immediately (just once) might fail. In this patch, we do what the real LiveDevelopment code was, which is to retry connecting a few times (with a short wait period between each) before giving up.