rem: 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)"); 
add: var inp2 = ss.newInputStream(0); 
context: 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)");}
meta: 10520	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10520/ab6af2b0637f13d1cd0449aaac5373a5013e6d6c/test_storagestream.js/buggy/xpcom/tests/unit/test_storagestream.js