mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-17 15:11:04 +00:00
25 lines
728 B
JavaScript
25 lines
728 B
JavaScript
/*!
|
|
{
|
|
"name": "File API",
|
|
"property": "filereader",
|
|
"caniuse": "fileapi",
|
|
"notes": [{
|
|
"name": "W3C Working Draft Spec",
|
|
"href": "https://www.w3.org/TR/FileAPI/"
|
|
}],
|
|
"tags": ["file"],
|
|
"builderAliases": ["file_api"],
|
|
"knownBugs": ["Will fail in Safari 5 due to its lack of support for the standards defined FileReader object"]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
`filereader` tests for the File API specification
|
|
|
|
Tests for objects specific to the File API W3C specification without
|
|
being redundant (don't bother testing for Blob since it is assumed
|
|
to be the File object's prototype.)
|
|
*/
|
|
define(['Modernizr'], function(Modernizr) {
|
|
Modernizr.addTest('filereader', !!(window.File && window.FileList && window.FileReader));
|
|
});
|