MCPcopy Index your code
hub / github.com/mailru/FileAPI / _checkProgressEvent

Function _checkProgressEvent

tests/tests.js:119–138  ·  view source on GitHub ↗
(evt)

Source from the content-addressed store, hash-verified

117
118
119 function _checkProgressEvent(evt){
120 var fail = false;
121
122 if( isNaN(evt.loaded / evt.total) ){
123 fail = true;
124 ok(false, "progress: evt.loaded/evt.total - is NaN");
125 }
126
127 if( isNaN(evt.loaded) ){
128 fail = true;
129 ok(false, "progress: evt.loaded - is NaN");
130 }
131
132 if( isNaN(evt.total) ){
133 fail = true;
134 ok(false, "progress: evt.total - is NaN");
135 }
136
137 return fail;
138 }
139
140 console.log('\nStart testing\n');
141

Callers 1

tests.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…