function testRender() {
  var q = new vsaq.Questionnaire(root);
  q.setTemplate(QUESTIONNAIRE);

  mock = new goog.testing.MockControl();
  mock.createMethodMock(q, 'reevaluateConditions_');
  mock.createMethodMock(q, 'fixLinks_');

  q.reevaluateConditions_();
  q.fixLinks_(root);

  mock.$replayAll();
  q.render();
  mock.$verifyAll();

  assertEquals(root.firstChild, goog.dom.getElement(q.rootBlock_.id));
}
/**
 * Tests whether the questionnaire renders correctly.
 */
Tests whether the questionnaire renders correctly.
Tests whether the questionnaire renders correctly .
function testRender() {
  var q = new vsaq.Questionnaire(root);
  q.setTemplate(QUESTIONNAIRE);
  mock = new goog.testing.MockControl();
  mock.createMethodMock(q, 'reevaluateConditions_');
  mock.createMethodMock(q, 'fixLinks_');
  q.reevaluateConditions_();
  q.fixLinks_(root);
  mock.$replayAll();
  q.render();
  mock.$verifyAll();
  assertEquals(root.firstChild, goog.dom.getElement(q.rootBlock_.id));
}
function testRender ( ) { var q = new vsaq . Questionnaire ( root ) ; q . setTemplate ( QUESTIONNAIRE ) ; mock = new goog . testing . MockControl ( ) ; mock . createMethodMock ( q , 'reevaluateConditions_' ) ; mock . createMethodMock ( q , 'fixLinks_' ) ; q . reevaluateConditions_ ( ) ; q . fixLinks_ ( root ) ; mock . $replayAll ( ) ; q . render ( ) ; mock . $verifyAll ( ) ; assertEquals ( root . firstChild , goog . dom . getElement ( q . rootBlock_ . id ) ) ; }
Tests whether the questionnaire renders correctly.
Tests whether the questionnaire renders correctly .