I don't like the idea of duplicating this code. Could we find a way to enhance the launch method in gaiatest? Perhaps an optional argument for ignored exceptions. Then the calling code can pass the exceptions it wants to ignore whilst launching, such as JavaScriptException.