api.js 728 B

123456789101112131415161718192021222324
  1. /*!
  2. {
  3. "name": "File API",
  4. "property": "filereader",
  5. "caniuse": "fileapi",
  6. "notes": [{
  7. "name": "W3C Working Draft Spec",
  8. "href": "https://www.w3.org/TR/FileAPI/"
  9. }],
  10. "tags": ["file"],
  11. "builderAliases": ["file_api"],
  12. "knownBugs": ["Will fail in Safari 5 due to its lack of support for the standards defined FileReader object"]
  13. }
  14. !*/
  15. /* DOC
  16. `filereader` tests for the File API specification
  17. Tests for objects specific to the File API W3C specification without
  18. being redundant (don't bother testing for Blob since it is assumed
  19. to be the File object's prototype.)
  20. */
  21. define(['Modernizr'], function(Modernizr) {
  22. Modernizr.addTest('filereader', !!(window.File && window.FileList && window.FileReader));
  23. });