-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Pulling in feature-detection tests from modernizr-plugins #419
Conversation
i think the filenames need some tweaking otherwise this is looking strong :) thx for the audio test changes :) |
My pleasure! :) I'll try tweaking the filenames up a little sooon. |
I saw these the other day and was going to ask you to do a pull request, awesome work. The test names should probably all be lowercase to be inline with the others plugins (we should document that in docs on what is preferred?). I'm getting errors with the apng test not liking the following line because of the preceding cast to bool operator being outside the parentheses. if !! (typeof canvas.getContext == 'undefined') { Also since this is an async test I'd put the the |
@ryanseddon How does the updated PR look? There are a few different ways the async test could be done, but I figured that wrapping the load/onerror event handler attachment inside the context test would avoid a little overhead. If you have a preferred alternative structure to it, let me know and I'll happily update further. Cheers! |
As requested by @paulirish, I've updated the PR to include the additional tests I added to the other repo today. (thanks to @mathiasbynens and @timmywil for the head's up on naming) |
Awesome thank you. :) |
Looks good. What I was saying about the async test was to do the |
As @ryanseddon said:
All tests on http://modernizr.github.com/Modernizr/test/ have lowercase names. |
|
@davidmurdoch Exactly; it would be much less confusing to lowercase the test names manually for people reading the feature test source code. |
Agreed. aside: |
Sounds good. I'll update the PR today to fall in line with the letter casing in other tests :) Sent from my iPad On 2 Dec 2011, at 09:50, David Murdochreply@reply.github.com wrote:
|
Cases updated <3 can someone review? |
im gonna tweak these filenames a touch more and kill some superfluous but THANK YOU Addy! great stuff. I think this kills a few outstanding things in the issue tracker too. |
Pulling in feature-detection tests from modernizr-plugins
My pleasure @paulirish! Glad they could come in useful for something :) |
Pulling in feature-detection tests from modernizr-plugins
This repository contains additional feature-tests for Modernizr covering the following:
It also has a test for ContextMenu support (which I've excluded as @codepo8 pushed something similar recently) and a combined test for both Mozilla and WebKit's Audio APIs (which I'm excluding unless it's specifically asked for).
At this time it would be awesome if someone could do a code-review to make sure these tests are solid.