-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Allow file pattern to specify binary #1070
Allow file pattern to specify binary #1070
Comments
+1 for this. There are currently a bunch of other pull requests for one format or another. I'm currently stuck on the swf one. |
Yes, this needs to happen. As far as I can tell, loading files into a Blob is the only way to test working with user provided files. Currently all of my .xlsx test files are named .tar |
Or use isbinaryfile as suggested before |
If the list will be updated, please add the standard Office document format extensions. Incomplete list: ACCDB, ACCDT, DOCX, DOCM, DOTX, DOTM, XLAM, PPTX, PPTM, POTX, POTM, PPAM, PPSX, PPSM, SLDX, SLDM, XLSX, XLSM, XLTX, XLSM, XLSB, MDB, DOC, PPT, XLS, XLW |
👍 adding my vote on that. Though instead of "blacklisting" binary files Karma should whitelist text file. It really takes some time to figure out that the file loaded in the browser is not the one you have on disk, and why that happened. |
It adds the ability to specify in file patterns whether the matching files should be considered binary files. I'll open a Karma pull request with this soon because it fixes karma-runner/karma#1070.
* Rename the bear clip to reflect the fact that it is actually a webm clip, not an mp4. * Rename the sidx, cues, and headers files so that karma does not treat them as text. See also: karma-runner/karma#1070. Change-Id: Ia73c233b32a34c57d45021d1cc130c0e0672bda0
👍 My vote as well. Also adding to the extensions list: I really don't like naming things |
We should switch to using isbinaryfile for now. |
I just opened #1816 to address this issue. It's my first karma pull request, so hopefully I followed all of the rules. If anyone is interested in trying it out, I'm happy to have feedback. |
What do you think about allowing the files pattern to override whether or not the file should be considered binary? The current implementation isn't configurable if using custom file extensions.
The text was updated successfully, but these errors were encountered: