You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Started getting failures after adding require-css to my project. Dug in with the debugger and figured out the problem.
require-css adds a link tag and then fires a callback when the css is actually loaded. The detection uses a load event callback if it thinks the browser supports it and polls otherwise. The logic is pretty simple, it prefers using the load event but polls with webkit and older versions. This seems to be fine for normal operation with firefox but fails in karma. For some reason the load event never fires. Hacking require-css to force it to poll got my tests green again.
So is there anything that can be done in the launcher or karma to fix this?
The text was updated successfully, but these errors were encountered:
FWIW I ended up writing a fake plugin that actually does nothing and changed requirejs config when running the test to using this fake plugin instead of require-css
(this is only ok if you don't care for css being really loaded)
Started getting failures after adding require-css to my project. Dug in with the debugger and figured out the problem.
require-css adds a link tag and then fires a callback when the css is actually loaded. The detection uses a load event callback if it thinks the browser supports it and polls otherwise. The logic is pretty simple, it prefers using the load event but polls with webkit and older versions. This seems to be fine for normal operation with firefox but fails in karma. For some reason the load event never fires. Hacking require-css to force it to poll got my tests green again.
So is there anything that can be done in the launcher or karma to fix this?
The text was updated successfully, but these errors were encountered: