function handler1() {
			oBinding.detachChange(handler1);
			var aRootContexts = oBinding.getRootContexts();

			//check if the root contexts are sorted correctly
			assert.ok(true, "Sorted descending test:");
			assert.equal(aRootContexts.length, 9, "Exactly 9 contexts returned");
			assert.equal(aRootContexts[0].getProperty("HierarchyNode"), "001180", "First Root Node is 001180");
			assert.equal(aRootContexts[4].getProperty("HierarchyNode"), "001131", "Root from the middle is 001131");
			assert.equal(aRootContexts[8].getProperty("HierarchyNode"), "000002", "Last Root Node is 000002");

			//loading the children of a node
			oBinding.attachChange(handler2);
			oBinding.getNodeContexts(aRootContexts[4]);
		}
//change handler after first getRootContexts()
change handler after first getRootContexts()
change handler after first getRootContexts ()
function handler1() {
			oBinding.detachChange(handler1);
			var aRootContexts = oBinding.getRootContexts();
			assert.ok(true, "Sorted descending test:");
			assert.equal(aRootContexts.length, 9, "Exactly 9 contexts returned");
			assert.equal(aRootContexts[0].getProperty("HierarchyNode"), "001180", "First Root Node is 001180");
			assert.equal(aRootContexts[4].getProperty("HierarchyNode"), "001131", "Root from the middle is 001131");
			assert.equal(aRootContexts[8].getProperty("HierarchyNode"), "000002", "Last Root Node is 000002");
			oBinding.attachChange(handler2);
			oBinding.getNodeContexts(aRootContexts[4]);
		}
function handler1 ( ) { oBinding . detachChange ( handler1 ) ; var aRootContexts = oBinding . getRootContexts ( ) ; assert . ok ( true , "Sorted descending test:" ) ; assert . equal ( aRootContexts . length , 9 , "Exactly 9 contexts returned" ) ; assert . equal ( aRootContexts [ 0 ] . getProperty ( "HierarchyNode" ) , "001180" , "First Root Node is 001180" ) ; assert . equal ( aRootContexts [ 4 ] . getProperty ( "HierarchyNode" ) , "001131" , "Root from the middle is 001131" ) ; assert . equal ( aRootContexts [ 8 ] . getProperty ( "HierarchyNode" ) , "000002" , "Last Root Node is 000002" ) ; oBinding . attachChange ( handler2 ) ; oBinding . getNodeContexts ( aRootContexts [ 4 ] ) ; }
change handler after first getRootContexts()
change handler after first getRootContexts ()
//check if the root contexts are sorted correctly //loading the children of a node