Bug 977452 - [keyboard refactor] Unit test for input_field.js

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