public void testIssue1313() throws Exception {
  HtmlPage page=getPage("/faces/facelets/issue1313.xhtml");
  List<HtmlDivision> divs=new ArrayList<HtmlDivision>();
  getAllElementsOfGivenClass(page,divs,HtmlDivision.class);
  validateToggleState1(divs);
  HtmlSubmitInput input=(HtmlSubmitInput)getInputContainingGivenId(page,"form:nonajax");
  assertNotNull(input);
  page=input.click();
  divs.clear();
  getAllElementsOfGivenClass(page,divs,HtmlDivision.class);
  validateToggleState2(divs);
  input=(HtmlSubmitInput)getInputContainingGivenId(page,"form:ajax");
  assertNotNull(input);
  page=input.click();
  divs.clear();
  getAllElementsOfGivenClass(page,divs,HtmlDivision.class);
  validateToggleState1(divs);
  input=(HtmlSubmitInput)getInputContainingGivenId(page,"form:nonajax");
  assertNotNull(input);
  page=input.click();
  divs.clear();
  getAllElementsOfGivenClass(page,divs,HtmlDivision.class);
  validateToggleState2(divs);
  input=(HtmlSubmitInput)getInputContainingGivenId(page,"form:ajax");
  assertNotNull(input);
  page=input.click();
  divs.clear();
  getAllElementsOfGivenClass(page,divs,HtmlDivision.class);
  validateToggleState1(divs);
}

public void testIssue1313 ( ) throws Exception { HtmlPage page = getPage ( "/faces/facelets/issue1313.xhtml" ) ; List < HtmlDivision > divs = new ArrayList < HtmlDivision > ( ) ; getAllElementsOfGivenClass ( page , divs , HtmlDivision . class ) ; validateToggleState1 ( divs ) ; HtmlSubmitInput input = ( HtmlSubmitInput ) getInputContainingGivenId ( page , "form:nonajax" ) ; assertNotNull ( input ) ; page = input . click ( ) ; divs . clear ( ) ; getAllElementsOfGivenClass ( page , divs , HtmlDivision . class ) ; validateToggleState2 ( divs ) ; input = ( HtmlSubmitInput ) getInputContainingGivenId ( page , "form:ajax" ) ; assertNotNull ( input ) ; page = input . click ( ) ; divs . clear ( ) ; getAllElementsOfGivenClass ( page , divs , HtmlDivision . class ) ; validateToggleState1 ( divs ) ; input = ( HtmlSubmitInput ) getInputContainingGivenId ( page , "form:nonajax" ) ; assertNotNull ( input ) ; page = input . click ( ) ; divs . clear ( ) ; getAllElementsOfGivenClass ( page , divs , HtmlDivision . class ) ; validateToggleState2 ( divs ) ; input = ( HtmlSubmitInput ) getInputContainingGivenId ( page , "form:ajax" ) ; assertNotNull ( input ) ; page = input . click ( ) ; divs . clear ( ) ; getAllElementsOfGivenClass ( page , divs , HtmlDivision . class ) ; validateToggleState1 ( divs ) ; }
added for issue 1313
