function testYesNoItemRerender() {
  yesno.render(true);
  yesno.setValue('');
  var el = yesno.container;

  assertEquals(el.tagName, String(goog.dom.TagName.DIV));
  assertTrue(goog.dom.classlist.contains(el, 'vsaq-yesno-block'));

  var desc = goog.dom.getFirstElementChild(el);
  assertEquals(String(goog.dom.TagName.DIV), desc.tagName);
  assertTrue(goog.dom.classlist.contains(desc, 'vsaq-question-title'));
  assertEquals(CAPTION, goog.dom.getTextContent(desc));

  var label = yesno.yesRadio_.parentNode.getElementsByTagName('span')[0];
  assertContains(YES, goog.dom.getTextContent(label));
  assertFalse(yesno.yesRadio_.checked);

  label = yesno.noRadio_.parentNode.getElementsByTagName('span')[0];
  assertContains(NO, goog.dom.getTextContent(label));
  assertFalse(yesno.noRadio_.checked);
}
/**
 * Tests whether yesno items are re-rendered correctly with highlight.
 */
Tests whether yesno items are re-rendered correctly with highlight.
Tests whether yesno items are re - rendered correctly with highlight .
function testYesNoItemRerender() {
  yesno.render(true);
  yesno.setValue('');
  var el = yesno.container;
  assertEquals(el.tagName, String(goog.dom.TagName.DIV));
  assertTrue(goog.dom.classlist.contains(el, 'vsaq-yesno-block'));
  var desc = goog.dom.getFirstElementChild(el);
  assertEquals(String(goog.dom.TagName.DIV), desc.tagName);
  assertTrue(goog.dom.classlist.contains(desc, 'vsaq-question-title'));
  assertEquals(CAPTION, goog.dom.getTextContent(desc));
  var label = yesno.yesRadio_.parentNode.getElementsByTagName('span')[0];
  assertContains(YES, goog.dom.getTextContent(label));
  assertFalse(yesno.yesRadio_.checked);
  label = yesno.noRadio_.parentNode.getElementsByTagName('span')[0];
  assertContains(NO, goog.dom.getTextContent(label));
  assertFalse(yesno.noRadio_.checked);
}
function testYesNoItemRerender ( ) { yesno . render ( true ) ; yesno . setValue ( '' ) ; var el = yesno . container ; assertEquals ( el . tagName , String ( goog . dom . TagName . DIV ) ) ; assertTrue ( goog . dom . classlist . contains ( el , 'vsaq-yesno-block' ) ) ; var desc = goog . dom . getFirstElementChild ( el ) ; assertEquals ( String ( goog . dom . TagName . DIV ) , desc . tagName ) ; assertTrue ( goog . dom . classlist . contains ( desc , 'vsaq-question-title' ) ) ; assertEquals ( CAPTION , goog . dom . getTextContent ( desc ) ) ; var label = yesno . yesRadio_ . parentNode . getElementsByTagName ( 'span' ) [ 0 ] ; assertContains ( YES , goog . dom . getTextContent ( label ) ) ; assertFalse ( yesno . yesRadio_ . checked ) ; label = yesno . noRadio_ . parentNode . getElementsByTagName ( 'span' ) [ 0 ] ; assertContains ( NO , goog . dom . getTextContent ( label ) ) ; assertFalse ( yesno . noRadio_ . checked ) ; }
Tests whether yesno items are re-rendered correctly with highlight.
Tests whether yesno items are re - rendered correctly with highlight .