Test case for Widget#on("focus", ...) and Widget#on("focusin", ...). Fixes #312.