I finished writing my test to see if mouse can move limitless on x axis and y axis during screen lock.

I had trouble for the longest time because I did not know I couldnt synthesize mouse movement passed the screen boundaries even if I was in screen lock mode.

So I moved the mouse to the edge of screen 3 times to see if i can get a mouse movement greater than than screen size, and voila!

That was pretty intense for an itsy bitsy test… lots of time googling, asking on irc and stressing out!

To see the source for the test, go here!

https://github.com/hungry-r/mozilla-central/blob/mouselock/dom/tests/mochitest/mouselock/test_limitlessScroll.html

Advertisements