lightbox.domNode.focus(); 
focusLightboxNode(lightbox, lightbox.domNode); 
function testHandleKeyUpAndDown() {	var lightbox = new fluid.Lightbox();	var defaultClass="image-container-default";	var focusClass="image-container-selected";	var draggingClass="image-container-dragging";	lightbox.domNode.focus();	// check that none of the images are currently being moved.	assertFalse("thumbFirst should not be in move state to start",dojo.hasClass(document.getElementById("fluid.thumbFirst"), draggingClass));	assertFalse("thumbSecond should not be in move state to start",dojo.hasClass(document.getElementById("fluid.thumbSecond"), draggingClass));	assertFalse("thumbSecondLast should not be in move state to start",dojo.hasClass(document.getElementById("fluid.thumbSecondLast"), draggingClass));		// focus the first thumb	lightbox.focusNode(dojo.byId("fluid.thumbFirst"));		// ctrl down - expect dragging state to start	var evtCTRL = {keyCode: dojo.keys.CTRL, preventDefault: function(){}, stopPropagation: function(){} };	lightbox.handleKeyDown(evtCTRL);	assertTrue("thumbFirst should be in move state after ctrl-down",dojo.hasClass(document.getElementById("fluid.thumbFirst"), draggingClass));	assertFalse("thumbSecond should not be in move state after ctrl-down",dojo.hasClass(document.getElementById("fluid.thumbSecond"), draggingClass));	assertFalse("thumbSecondLast should not be in move state after ctrl-down",dojo.hasClass(document.getElementById("fluid.thumbSecondLast"), draggingClass));	assertFalse("thumbFirst should not be focused after ctrl-down", dojo.hasClass(document.getElementById("fluid.thumbFirst"), focusClass));		// right arrow down - all the dragging states should remain the same	var evtRightArrow = {keyCode: dojo.keys.RIGHT_ARROW, preventDefault: function(){}, stopPropagation: function(){} };	lightbox.handleKeyDown(evtRightArrow);	assertTrue("thumbFirst should still be in move state after right-arrow",dojo.hasClass(document.getElementById("fluid.thumbFirst"), draggingClass));	assertFalse("thumbSecond should still not be in move state after right-arrow",dojo.hasClass(document.getElementById("fluid.thumbSecond"), draggingClass));	assertFalse("thumbSecondLast should still not be in move state after right-arrow",dojo.hasClass(document.getElementById("fluid.thumbSecondLast"), draggingClass));	assertFalse("thumbFirst should not be focused after right-arrow", dojo.hasClass(document.getElementById("fluid.thumbFirst"), focusClass));	// right arrow with key-up event handler. The dragging states should remain the same.	lightbox.handleKeyUp(evtRightArrow);	assertTrue("thumbFirst should still be in move state after right-arrow up",dojo.hasClass(document.getElementById("fluid.thumbFirst"), draggingClass));	assertFalse("thumbSecond should still not be in move state after right-arrow up",dojo.hasClass(document.getElementById("fluid.thumbSecond"), draggingClass));	assertFalse("thumbSecondLast should still not be in move state after right-arrow up",dojo.hasClass(document.getElementById("fluid.thumbSecondLast"), draggingClass));	assertFalse("thumbFirst should not be focused after right-arrow up", dojo.hasClass(document.getElementById("fluid.thumbFirst"), focusClass));    // ctrl up - expect dragging to end	lightbox.handleKeyUp(evtCTRL);	assertFalse("thumbFirst should no longer be in move state after ctrl up",dojo.hasClass(document.getElementById("fluid.thumbFirst"), draggingClass));	assertFalse("thumbSecond should still not be in move state after ctrl up",dojo.hasClass(document.getElementById("fluid.thumbSecond"), draggingClass));	assertFalse("thumbSecondLast should still not be in move state after ctrl up",dojo.hasClass(document.getElementById("fluid.thumbSecondLast"), draggingClass));	assertTrue("thumbFirst should be focused after ctrl up", dojo.hasClass(document.getElementById("fluid.thumbFirst"), focusClass));}
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