Test that pause() after changing display to "none" doesn't cause a crash.