tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

relevant-mutations.js (511B)


      1 setup({explicit_done:true});
      2 
      3 function t(desc, func, expect) {
      4  async_test(function() {
      5    var img = document.querySelector('[data-desc="' + desc + '"]');
      6    img.onload = img.onerror = this.unreached_func('update the image data was run');
      7    if (expect == 'timeout') {
      8      setTimeout(this.step_func_done(), 1000);
      9    } else {
     10      img['on' + expect] = this.step_func_done();
     11      setTimeout(this.unreached_func('update the image data didn\'t run'), 1000);
     12    }
     13    func.call(this, img);
     14  }, desc);
     15 }