1
edit
Changes
→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 file. I would recommend renaming your file to file_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.
(use this):
<pre>
TEST_PATH=dom/tests/mochitest/mouselock/ make -C $(replace with OBJDIR) mochitest-plain
</pre>
====Demos, Docs, Other====