Update the hidpi test to work on a wider variety of platforms

(e.g. when running the tests via `java -jar ./auto_tests/lib/JsTestDriver-1.3.3c.jar --tests all`)
Basically looks good to me. Pulling it in.