rem: function on_read_complete(data, idx) { 
add: function on_read_complete(request, data, idx) { 
context: function run_test() {  dump("*** run_test\n");  function on_read_complete(data, idx) {    dump("*** run_test.on_read_complete\n");    if (chan.contentType != "text/plain")      do_throw("Type mismatch! Is <" + chan.contentType + ">, should be text/plain")    /* read completed successfully.  now compare the data. */    if (data != urls[idx][1])      do_throw("Stream contents do not match with direct read!");    do_test_finished();  }  var ios = Cc["@mozilla.org/network/io-service;1"].            getService(Ci.nsIIOService);  for (var i = 0; i < urls.length; ++i) {    dump("*** opening channel " + i + "\n");    do_test_pending();    var chan = ios.newChannel(urls[i][0], "", null);    chan.contentType = "foo/bar"; // should be ignored    chan.asyncOpen(new Listener(on_read_complete, i), null);  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/570c4ed4fba662b68505862e121543b6bf71f95f/test_data_protocol.js/buggy/netwerk/test/unit/test_data_protocol.js