forked from 23/resumable.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
resumable-tests.ts
31 lines (29 loc) · 1.04 KB
/
resumable-tests.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import Resumable = require('./index');
let resumable: Resumable = new Resumable({chunkSize: 123});
let resumableNoOpts: Resumable = new Resumable();
resumable.addFile(new File([], 'test.tmp'), {});
resumable.assignBrowse(document, true);
resumable.assignBrowse([document], true);
resumable.assignDrop(document);
resumable.assignDrop([document]);
resumable.cancel();
let defaults: Object = resumable.defaults;
let events: any[] = resumable.events;
let files: any[] = resumable.files;
resumable.fire();
let {} = resumable.getFromUniqueIdentifier('test');
let {} = resumable.getOpt('test');
let size:number = resumable.getSize();
resumable.handleChangeEvent({});
resumable.handleDropEvent({});
let isUploading: boolean = resumable.isUploading();
resumable.on('test', function() {});
let opts: Object = resumable.opts;
resumable.pause();
let progress:number = resumable.progress();
resumable.removeFile('TODO');
let support: boolean = resumable.support;
resumable.unAssignDrop({});
resumable.upload();
resumable.uploadNextChunk();
let version:number = resumable.version;