B2G/gecko/image/test/unit/async_load_tests.js
// therefore would be at most risk of being served synchronously.
therefore would be at most risk of being served synchronously.
therefore would be at most risk of being served synchronously .
function checkSecondChannelLoad()
{
  do_test_pending();
  var ioService = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService);  
  var channel = ioService.newChannelFromURI(uri);
  var channellistener = new ChannelListener();
  channel.asyncOpen(channellistener, null);
  var listener = new ImageListener(getChannelLoadImageStartCallback(channellistener),
                                   getChannelLoadImageStopCallback(channellistener,
                                                                   all_done_callback));
  var outlistener = {};
  requests.push(gCurrentLoader.loadImageWithChannel(channel, listener, null, outlistener));
  channellistener.outputListener = outlistener.value;
  listener.synchronous = false;
}
function checkSecondChannelLoad ( ) { do_test_pending ( ) ; var ioService = Cc [ "@mozilla.org/network/io-service;1" ] . getService ( Ci . nsIIOService ) ; var channel = ioService . newChannelFromURI ( uri ) ; var channellistener = new ChannelListener ( ) ; channel . asyncOpen ( channellistener , null ) ; var listener = new ImageListener ( getChannelLoadImageStartCallback ( channellistener ) , getChannelLoadImageStopCallback ( channellistener , all_done_callback ) ) ; var outlistener = { } ; requests . push ( gCurrentLoader . loadImageWithChannel ( channel , listener , null , outlistener ) ) ; channellistener . outputListener = outlistener . value ; listener . synchronous = false ; }
therefore would be at most risk of being served synchronously.
therefore would be at most risk of being served synchronously .