 var l = new LitmusResults({username: qaPref.litmus.getUsername(), password: qaPref.litmus.getPassword(), server: litmus.baseURL}); l.sysconfig(new Sysconfig());  l.addResult(new Result({ testid: menu.selectedItem.value, resultstatus: rs, exitstatus: 'Exited Normally', duration: 0, comment: $('qa-testcase-comment').value, isAutomatedResult: 0 }));  var callback = function(resp) {  for (var i in litmus.userStats) { litmus.userStats[i]++; } litmus.displayStats(); };  var errback = function(resp) { alert(resp.responseText); };  litmus.postResultXML(l.toXML(), callback, errback); 
 var l = new LitmusResults({username: qaPref.litmus.getUsername(), password: qaPref.litmus.getPassword(), server: litmus.baseURL}); l.sysconfig(new Sysconfig());  l.addResult(new Result({ testid: menu.selectedItem.value, resultstatus: rs, exitstatus: 'Exited Normally', duration: 0, comment: $('qa-testcase-comment').value, isAutomatedResult: 0 }));  var callback = function(resp) {  for (var i in litmus.userStats) { litmus.userStats[i]++; } litmus.displayStats(); };  var errback = function(resp) { dump(resp.responseText); };  litmus.postResultXML(l.toXML(), callback, errback); 
	submitResult : function() {		var rs;		var item = $('qa-testcase-result').selectedItem;		if (item.id == "qa-testcase-pass") {			rs = 'Pass';		} else if (item.id == "qa-testcase-fail") {			rs = 'Fail';		} else if (item.id == "qa-testcase-unclearBroken") {			rs = 'Test unclear/broken';		} else {			// no result selected, so don't submit anything for thes test:			return false;		}        var menu = document.getElementById('testlist');        		var l = new LitmusResults({username: qaPref.litmus.getUsername(), 								  password: qaPref.litmus.getPassword(),								  server: litmus.baseURL});		l.sysconfig(new Sysconfig());				l.addResult(new Result({			testid: menu.selectedItem.value,			resultstatus: rs,			exitstatus: 'Exited Normally',			duration: 0,			comment: $('qa-testcase-comment').value,			isAutomatedResult: 0		}));				var callback = function(resp) {			// increment the stat counters:			for (var i in litmus.userStats) {				litmus.userStats[i]++;			}			litmus.displayStats();		};				var errback = function(resp) {			alert(resp.responseText);		};				litmus.postResultXML(l.toXML(), callback, errback);                var item = menu.selectedItem;        item.firstChild.setAttribute("checked", "true");        return false;   // ?? Got rid of strict warning...    },
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/a3a9a2c311afc9d76e4e6bfc036e5897fa988bc1/litmus.js/buggy/testing/extensions/community/chrome/content/litmus.js