rem: netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); var data = msg.num + " " + msg.level + " " + msg.info.join(' ') + "\n"; self._foStream.write(data, data.length); if (data.indexOf("SimpleTest FINISH") >= 0) { self.close(); } 
add: netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); var data = msg.num + " " + msg.level + " " + msg.info.join(' ') + "\n"; MozillaFileLogger._foStream.write(data, data.length); if (data.indexOf("SimpleTest FINISH") >= 0) { MozillaFileLogger.close(); 
context:     return function (msg) {      netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");      var data = msg.num + " " + msg.level + " " + msg.info.join(' ') + "\n";      self._foStream.write(data, data.length);      if (data.indexOf("SimpleTest FINISH") >= 0) {        self.close();      }    }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/23ba5ce55db46dea15535669cf2970d1aa46d05e/MozillaFileLogger.js/buggy/testing/mochitest/tests/SimpleTest/MozillaFileLogger.js