Fullscreen events could not be trigger programatically, so they have to be tested manually. To test behaviour of toggle fullscreen button, click it in the bottom right edge of the screen, then check if the label reflects current browser fullscreen state. It should say "Leave fullscreen mode" when in fullscreen mode and "Enter fullscreen mode" when not in fullscreen mode.
If toggle fullscreen button is not visible, this means it's not supported in this browser (list of browsers supporting fullscreen API).