try { var threw = false; var inp2 = ss.newInputStream(0); } catch (e) { threw = e.result == Cr.NS_ERROR_NOT_INITIALIZED; } if (!threw) do_throw("must write to a storagestream before creating an " + "inputstream for it, even if just .write('', 0)"); 
var inp2 = ss.newInputStream(0); 
function test1(){  var ss = Cc["@mozilla.org/storagestream;1"]             .createInstance(Ci.nsIStorageStream);  ss.init(1024, 1024, null);  var out = ss.getOutputStream(0);  try  {    var threw = false;    var inp2 = ss.newInputStream(0);  }  catch (e)  {    threw = e.result == Cr.NS_ERROR_NOT_INITIALIZED;  }  if (!threw)    do_throw("must write to a storagestream before creating an " +             "inputstream for it, even if just .write('', 0)");}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/f24c0c5c5ed48cd09d9abbae07bc5b05c7cb9dd0/test_storagestream.js/clean/xpcom/tests/unit/test_storagestream.js