Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
25 lines
437 B
JavaScript
Executable file
25 lines
437 B
JavaScript
Executable file
'use strict';
|
|
/* exported MockDownloadHelper */
|
|
|
|
var MockDownloadHelper = {
|
|
open: function() {
|
|
return {
|
|
set onsuccess(s) { setTimeout(function() {
|
|
s();
|
|
}, 100); },
|
|
set onerror(e) {}
|
|
};
|
|
},
|
|
remove: function() {
|
|
return {
|
|
set onsuccess(s) { s(); },
|
|
set onerror(e) {}
|
|
};
|
|
},
|
|
handlerError: function(error, download, cb) {
|
|
|
|
},
|
|
showRemoveFileUI: function(download, cb) {
|
|
|
|
}
|
|
};
|