Implemented pauseAnimationsForTesting and test-pause-for-testing.
Merge pull request #336 from rjwright/pauseForTesting

Implemented pauseAnimationsForTesting + test.