-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Fix issue #4859: allow loading RTL text plugin before first style load. #4870
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm would it be possible to unit test to ensure that the callback is called with argument of type Object
with those properties?
@mollymerp I had to hack things up a bit to do the stubbing (I'm not very experienced with Sinon), but I extracted the hard-to-test |
- Test that loading a style after loading the plugin works - Test that pluginBlobURL makes it all the way to the workers
Thanks for adding that test! |
@mollymerp A |
…gin instead of directly firing change signal.
I had to add a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks and sorry for the testing troubles!
Fixes issue #4859: this was a regression I introduced in 171db61. Unfortunately I still haven't figured out a good way to exercise this code in our test suite, since it depends on running in the browser. :/
/cc @anandthakker @mollymerp