Lines Matching refs:f
47 assert: function f(expr, msg){
48 if(!f._){
49 f._ = ('undefined'===typeof abort
55 f._(msg || "Assertion failed.");
68 mustThrow: function(f, msg){
71 try{ f(); } catch(e){err=e;}
89 mustThrowMatching: function(f, filter, msg){
92 try{ f(); } catch(e){err=e;}
184 setStatus: function f(text){
185 if(!f.last){
186 f.last = { text: '', step: 0 };
187 f.ui = {
193 if(text === f.last.text) return;
194 f.last.text = text;
195 if(f.ui.progress){
196 f.ui.progress.value = f.last.step;
197 f.ui.progress.max = f.last.step + 1;
199 ++f.last.step;
201 f.ui.status.classList.remove('hidden');
202 f.ui.status.innerText = text;
204 if(f.ui.progress){
205 f.ui.progress.remove();
206 f.ui.spinner.remove();
207 delete f.ui.progress;
208 delete f.ui.spinner;
210 f.ui.status.classList.add('hidden');