Changes

Jump to: navigation, search

Implementing the Mouse Lock API in Firefox

66 bytes added, 20:02, 8 December 2011
Using the Test Harness
'''Note: This harness assumes that your test runs properly as a stand-alone application and is not being used as one of the test amongst others.'''
The problem with the test timing out is due to the fact that the Mochitest '''iframe does not allow fullscreen ''' from the html code inside the frame. To solve this problem, it needs a small work around like using the harness.
To make use of the harness, you will need to add the "'''mouselock_util.js" ''' file to your test html file. I would recommend renaming your file to '''file_something.html ''' (vs. test_something.html), as this denotes that this not a direct test under the mochitest.
Thus, add the following line, AFTER the EventUtil.js and SimpleTest.js script tag
<pre>
<script type="application/javascript" src="mouselock_util.js"></script>
</pre>
Another, thing that needs to be done is to add your file to the '''gTestFiles ''' array inside the '''test_FullScreenHarness.html ''' file
After that, do a run of the whole mochitest directory on your machine before doing a pull request.

Navigation menu