Bug 1080285 - [Keyboard] Mock test dimensions so it will pass in any environment

https://bugzilla.mozilla.org/show_bug.cgi?id=1080285