This test will try to load an invalid src, then in the error handler, set the src to a valid URL. In the process, any events that should have deterministic ordering will be logged to compare to the expectation.