-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Only run raster operations after image sources have loaded #4894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
In this branch, tests fail before 24b7b27 and pass after it. So there was really only one change needed. But the other changes made the problem clearer. |
This looks much clearer now. Thanks @tschaub, and please merge when Travis is happy. |
Well, Chrome is still not happy. I lied about 24b7b27 making all tests pass. The first |
@tschaub, 9983586 fixes the issue. I haven't tested yet whether this has unwanted side effects, but the problem is that previously the renderer's |
Thanks for the underlying fix @ahocevar. To summarize for others:
So, it is nice that we have a test that actually covers the problem. But it is a bummer that these tests are not run as part of our CI setup. Travis/Sauce integration can help - though it is a bit involved to get it working for 3rd party pull requests. |
Only run raster operations after image sources have loaded.
The raster tests were not properly cleaning up after themselves. Listeners for
afteroperations
were getting called a second time after we had calleddone()
in the tests. This made it look like the wrong tests were failing.This cleans up the raster tests by calling
obj.dispose()
on reused test objects and only listening for events once where we calldone()
in the listener.There may still be an issue introduced in 98b823c with operations being run more often than expected. But we should create a specific test that demonstrates the issue if one can be found. The existing test failures were the result of sloppy test running.
update - this should now fix #4893.