This tests the number of resize events dispatched to JavaScript.