Please invoke the test in the load event handler, like other tests did:  https://github.com/mozilla-b2g/gaia/blob/master/test_apps/uitest/js/HW/vibrator.js#L54