file-api.js 463 B

123456789101112
  1. /**
  2. * file tests for the File API specification
  3. * Tests for objects specific to the File API W3C specification without
  4. * being redundant (don't bother testing for Blob since it is assumed
  5. * to be the File object's prototype.
  6. *
  7. * Will fail in Safari 5 due to its lack of support for the standards
  8. * defined FileReader object
  9. */
  10. Modernizr.addTest('filereader', function () {
  11. return !!(window.File && window.FileList && window.FileReader);
  12. });