-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Split the font_spec.js unit-tests into cff_parser_spec.js and type1_parser_spec.js #7285
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
…arser_spec.js Re: issue 7261. Given the we have `gulp fonttest`, which tests the `fonts.js` functionality at a higher level, and that we have *a lot* of font specific reference tests, I'm not convinced that we *also* need unit-tests for it.
/botio unittest |
From: Bot.io (Windows)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://107.22.172.223:8877/2f97b4a3230248c/output.txt |
From: Bot.io (Linux)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://107.21.233.14:8877/7a1726ae5436106/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/7a1726ae5436106/output.txt Total script time: 1.65 mins
|
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/2f97b4a3230248c/output.txt Total script time: 1.98 mins
|
Sounds reasonable to me. @yurydelendik, what do you think? |
I highly prefer unit test over the higher level tests. Debugging the higher level ref tests when broken is often very painful, where as a unit test the issue is usually immediately obvious. In hindsight, I think we should have made much more of our ref tests into font unit tests. You've probably also run into the situation where a reftest breaks and you have no idea why without some pretty deep digging. |
You're right. Let's keep on tracking the addition of more unit tests in #7261, but I think this patch is nevertheless good to have because the two parsers are also in separate files in |
That is certainly a very valid point; one that I didn't really consider!
I have, on more than one occasion, and I agree that it's no fun at all.
Yes, as Tim points out, this patch is more of a bookkeeping one, moving existing unit-tests to the correct files. Please note that it does not remove any existing tests. @brendandahl So in summary: If we block this PR on adding unit-tests for |
I'm not sure it's worth retroactively adding unit tests for these, for new bugs though unit tests would be preferable.
No need to block. |
Re: issue #7261.
Given the we have
gulp fonttest
, which tests thefonts.js
functionality at a higher level, and that we have a lot of font specific reference tests, I'm not convinced that we also need unit-tests for it.Note: I'm setting the [WIP] label, pending agreement on the above.