Improves JUnit's local web test performance by setting the user-agent property to exactly the single value required by the running hosted browser. This means one single permutation is created, instead of the current total, based on the number of user-agents defined in UserAgent.gwt.xml.

Benchmarking this shows that, consistently across the sizes of tests/modules, the startup overhead is reduced by a whopping 50%. For example, ListBoxTest normally takes 33 seconds to start and less than one second to actually execute. With this change, ListBoxTest starts in 15 seconds, cutting its execution time in half.

Future work: update the BrowserManagerServers such that they could provide the user-agent strings to their clients.

Patch by: tobyr, scottb
Review by: tobyr


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@1653 8db76d5a-ed1c-0410-87a9-c151d255dfc7
10 files changed