dojo.byId ("para1").focus(); dojo.byId ("gallery:::gallery-thumbs:::").focus(); 
dojo.byId ("input1").focus(); focusLightboxNode(lightbox, lightbox.domNode); 
function testPersistFocus () {	var lightbox = new fluid.Lightbox();	var defaultClass="image-container-default";	var focusClass="image-container-selected";	assertFalse("fluid.thumbFirst should not be focused before lightbox has focus",dojo.hasClass(document.getElementById("fluid.thumbFirst"), focusClass));	assertTrue("fluid.thumbFirst should not be focused before lightbox has focus",dojo.hasClass(document.getElementById("fluid.thumbFirst"), defaultClass));	lightbox.domNode.focus();	// first thumb nail should be focused initially.	assertTrue("Persist Focus Test: fluid.thumbFirst should be moveable",dojo.hasClass(document.getElementById("fluid.thumbFirst"), focusClass));	assertFalse("Persist Focus Test: fluid.thumbSecond should not be focused",dojo.hasClass(document.getElementById("fluid.thumbSecond"), focusClass));	assertFalse("Persist Focus Test: fluid.thumbSecondLast should not be focused",dojo.hasClass(document.getElementById("fluid.thumbSecondLast"), focusClass));		// Change focus to the paragraph text, then back to the lightbox	dojo.byId ("para1").focus();	dojo.byId ("gallery:::gallery-thumbs:::").focus();		// check that the first thumb nail is still moveable.	assertTrue("Persist Focus Test: fluid.thumbFirst should be moveable",dojo.hasClass(document.getElementById("fluid.thumbFirst"), focusClass));	assertFalse("Persist Focus Test: fluid.thumbSecond should not be focused",dojo.hasClass(document.getElementById("fluid.thumbSecond"), focusClass));	assertFalse("Persist Focus Test: fluid.thumbSecondLast should not be focused",dojo.hasClass(document.getElementById("fluid.thumbSecondLast"), focusClass));		// set focus to another image.	lightbox.focusNode(dojo.byId("fluid.thumbSecond"));	assertFalse("Persist Focus Test: fluid.thumbFirst should not be focused",dojo.hasClass(document.getElementById("fluid.thumbFirst"), focusClass));	assertTrue ("Persist Focus Test: fluid.thumbSecond should be moveable",dojo.hasClass(document.getElementById("fluid.thumbSecond"), focusClass));	assertFalse("Persist Focus Test: fluid.thumbSecondLast should not be focused",dojo.hasClass(document.getElementById("fluid.thumbSecondLast"), focusClass));		// Change focus to the paragraph text, then back to the lightbox	dojo.byId ("para1").focus();	dojo.byId ("gallery:::gallery-thumbs:::").focus();		// check that the first thumb nail is still moveable.	lightbox.focusNode(dojo.byId("fluid.thumbSecond"));	assertFalse("Persist Focus Test: fluid.thumbFirst should not be focused",dojo.hasClass(document.getElementById("fluid.thumbFirst"), focusClass));	assertTrue ("Persist Focus Test: fluid.thumbSecond should be moveable",dojo.hasClass(document.getElementById("fluid.thumbSecond"), focusClass));	assertFalse("Persist Focus Test: fluid.thumbSecondLast should not 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.thumbSecond"), defaultClass));	// test persistance of focus between page navigation / page loads?	}
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