rem: this.requireField('testid', a); this.requireField('resultstatus', a); this.requireField('exitstatus', a); this.requireField('duration', a);   if (a.timestamp) { this.timestamp = a.timestamp; } else { var d = new Date(); this.timestamp=''+d.getFullYear()+leadZero((d.getMonth()+1))+ leadZero(d.getDate())+leadZero(d.getHours())+leadZero(d.getMinutes())+ leadZero(d.getSeconds()); }  this.comment = a.comment; this.bugnumber = a.bugnumber; this.logs = a.log; this.automated = a.isAutomatedResult ? a.isAutomatedResult : 1; } 
add: this.requireField('testid', a); this.requireField('resultstatus', a); this.requireField('exitstatus', a); this.requireField('duration', a);   if (a.timestamp) { this.timestamp = a.timestamp; } else { var d = new Date(); this.timestamp=''+d.getFullYear()+leadZero((d.getMonth()+1))+ leadZero(d.getDate())+leadZero(d.getHours())+leadZero(d.getMinutes())+ leadZero(d.getSeconds()); }  this.comment = a.comment; this.bugnumber = a.bugnumber; this.logs = a.log; this.automated = a.isAutomatedResult ? a.isAutomatedResult : 1; } 
context: function Result(a) {	this.requireField('testid', a);	this.requireField('resultstatus', a);	this.requireField('exitstatus', a);	this.requireField('duration', a);		// if no timestamp specified, use the current time	if (a.timestamp) { this.timestamp = a.timestamp; }	else {		var d = new Date();		this.timestamp=''+d.getFullYear()+leadZero((d.getMonth()+1))+			leadZero(d.getDate())+leadZero(d.getHours())+leadZero(d.getMinutes())+			leadZero(d.getSeconds());	}		this.comment = a.comment;	this.bugnumber = a.bugnumber;	this.logs = a.log;	this.automated = a.isAutomatedResult ? a.isAutomatedResult : 1;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/a3a9a2c311afc9d76e4e6bfc036e5897fa988bc1/litmusReporter.js/buggy/testing/extensions/community/chrome/content/litmusReporter.js