lightbox.domNode.blur(); 
lightbox.deriveFocusNode(lightbox.domNode).blur(); 
function testFocusNode () {	var lightbox = new fluid.Lightbox();	var defaultClass="image-container-default";	var focusClass="image-container-selected";	var draggingClass="image-container-dragging";		// nothing should be focused	assertFalse("fluid.thumbFirst should not be focused before lightbox has focus",dojo.hasClass(document.getElementById("fluid.thumbFirst"), focusClass));	assertFalse("fluid.thumbSecond should not be focused before lightbox has focus",dojo.hasClass(document.getElementById("fluid.thumbSecond"), focusClass));	assertFalse("fluid.thumbSecondLast should not be focused before lightbox has focus",dojo.hasClass(document.getElementById("fluid.thumbSecondLast"), focusClass));	assertTrue("fluid.thumbFirst should not be focused before lightbox has focus",dojo.hasClass(document.getElementById("fluid.thumbFirst"), defaultClass));	assertTrue("fluid.thumbSecond should not be focused before lightbox has focus",dojo.hasClass(document.getElementById("fluid.thumbSecond"), defaultClass));	assertTrue("fluid.thumbSecondLast should not be focused before lightbox has focus",dojo.hasClass(document.getElementById("fluid.thumbSecondLast"), defaultClass));		// put focus on lightbox - first node should get focusClass	lightbox.domNode.focus();	assertTrue("fluid.thumbFirst should be focused now that lightbox has focus",dojo.hasClass(document.getElementById("fluid.thumbFirst"), focusClass));		// focus the image	lightbox.focusNode(dojo.byId("fluid.thumbSecond"));	// test the response to the focus	assertFalse("fluid.thumbSecond should not be default", dojo.hasClass(document.getElementById("fluid.thumbSecond"), defaultClass));	assertTrue("fluid.thumbSecond should be focused", dojo.hasClass(document.getElementById("fluid.thumbSecond"), focusClass));		// focus the image already focused to ensure it remains focused.	lightbox.focusNode(dojo.byId("fluid.thumbSecond"));	assertTrue("fluid.thumbSecond should still be focused",dojo.hasClass(document.getElementById("fluid.thumbSecond"), focusClass));	// Test: focus a different image and check to see that the previous image is defocused	// and the new image is focused	assertTrue("fluid.thumbSecondLast should be default",dojo.hasClass(document.getElementById("fluid.thumbSecondLast"), defaultClass));	assertFalse("fluid.thumbSecondLast should not be focused",dojo.hasClass(document.getElementById("fluid.thumbSecondLast"), focusClass));		lightbox.focusNode(dojo.byId ("fluid.thumbSecondLast"));		// previous image defocused	assertTrue("fluid.thumbSecond should now be default (previously focused)",dojo.hasClass(document.getElementById("fluid.thumbSecond"), defaultClass));	assertFalse("fluid.thumbSecond should not be focused anymore",dojo.hasClass(document.getElementById("fluid.thumbSecond"), focusClass));		// new image focused	assertFalse("fluid.thumbSecondLast should not be default",dojo.hasClass(document.getElementById("fluid.thumbSecondLast"), defaultClass));	assertTrue("fluid.thumbSecondLast should be focused",dojo.hasClass(document.getElementById("fluid.thumbSecondLast"), focusClass));		lightbox.domNode.blur();	assertTrue("after lightbox blur, focusedNode should not be selected", dojo.hasClass(document.getElementById("fluid.thumbSecondLast"), defaultClass));}
6971	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6971/5ef62a7124602147f41d4c7ee241446675165c1d/LightboxTests.js/buggy/src/webapp/component-templates/test/tests/LightboxTests.js