code: function(base_url, callback, cors) {
      var recv = new XhrReceiver(base_url + '/chunking_test', {cors: cors});
      var result = 0;
      recv.onmessage = function(e) {
          // Now a cool hack: we can stop receiving after we got at least
          // one chunk, contains some data, but not everyting.
          var l = e.responsetext.split('h\n').length;
          if(e.readystate === 3 && l > 0 && l < 6 ) {
              result = l;
              recv.abort();
          }
      };
      recv.onclose = function(e) {
          recv = recv.onmessage = recv.onclose = null;
          utils.log('Chunking test: ' + (result ? 'passed' : 'failed')
                    + ' (' + result + ' chunk received)');
          callback(!!result);
      };
  }
docs: [*] End of lib/trans-iframe-within.js [*] Including lib/chunking-test.js