Changes based on feedback to pull request https://github.com/mozilla-b2g/gaia/pull/12454 including:

Removed isVisible from tests. Also removed the use of the 'hide' class, we just use 'hidden' now, in these two panels.
Moved bulk of Stopwatch panel state change code back to event handlers.