Open main menu

CDOT Wiki β

Changes

Mouse Lock API Test Tracker

770 bytes added, 15:46, 25 February 2012
Mochitests for new PointerLock API
==Mochitests for new PointerLock API==
 
To have consistency between all the tests they were updated to the following:
* Through out the test flags are set to represent success or failure
* runTests function will run the assertions using the flags
* All assertions are located in runTests()
* body onload calls start()
* start() waits for focus then start running the test
* If test uses fullscreen API, then runTests() and SimpleTest.finish() are called when fullscreen mode is cancelled
 
Structure of the tests(Top-Bottom):
# Test description
# SpecialPowers(if nedded)
# SimpleTest.waitForExplicitFinish()
# var declarations
# function runTests()
# Some code specific to the test
# pointerlockchange event listener
# pointerlockerror event listener
# mozfullscreenchange event listener
# function start()
 
 
{| border=1 style="border: 1px solid darkgray;"
1
edit