rem: assert(res.length == 1); 
add: assert(res.error == 0); assert(res.msgs.length == 1); 
context: function basedn_tests(ldb, gc_ldb){	println("Testing for all rootDSE attributes");	var attrs = new Array();	var res = ldb.search("", "", ldb.SCOPE_BASE, attrs);	assert(res.length == 1);	println("Testing for highestCommittedUSN");	var attrs = new Array("highestCommittedUSN");	var res = ldb.search("", "", ldb.SCOPE_BASE, attrs);	assert(res.length == 1);	assert(res[0].highestCommittedUSN != undefined);	assert(res[0].highestCommittedUSN != 0);	println("Testing for netlogon via LDAP");	var attrs = new Array("netlogon");	var res = ldb.search("", "", ldb.SCOPE_BASE, attrs);	assert(res.length == 0);	println("Testing for netlogon and highestCommittedUSN via LDAP");	var attrs = new Array("netlogon", "highestCommittedUSN");	var res = ldb.search("", "", ldb.SCOPE_BASE, attrs);	assert(res.length == 0);}
meta: 1914	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1914/7ca399c0755e186508a4ed9796cbbbe6f50181e9/ldap.js/buggy/testprogs/ejs/ldap.js