TentaclePentacle/mozilla-central — comment on commit f59303f8f1abd7a41f3093e41228837cf4476b0f
File:  line 0
By Anachid:

you are using the DOMContentLoaded event. I tried this earlier and it seem to be not running. I think it would be a more stable solution to use onload function on the body. This makes sure it calls the runtest() after the body is ready.
Another thing, the harness will handle the special powers and restore it the original value after running the test, so you dont need that.
In the pointer.lock call, it calls SimpleTest.finish on both success and failure. Is that what you want? I don't know.