function testSetMultipleTemplatesFallback() {
  var baseQuestionnaire = {'questionnaire': QUESTIONNAIRE};
  var q = new vsaq.Questionnaire(root);

  mock = new goog.testing.MockControl();
  mock.createMethodMock(q, 'setTemplate');
  q.setTemplate(QUESTIONNAIRE);

  mock.$replayAll();
  q.setMultipleTemplates(baseQuestionnaire);
  mock.$verifyAll();
}
/**
 * Tests whether setMultipleTempaltes falls back to setTemplate if only one
 * template was provided.
 */
Tests whether setMultipleTempaltes falls back to setTemplate if only one
template was provided.
Tests whether setMultipleTempaltes falls back to setTemplate if only one template was provided .
function testSetMultipleTemplatesFallback() {
  var baseQuestionnaire = {'questionnaire': QUESTIONNAIRE};
  var q = new vsaq.Questionnaire(root);
  mock = new goog.testing.MockControl();
  mock.createMethodMock(q, 'setTemplate');
  q.setTemplate(QUESTIONNAIRE);
  mock.$replayAll();
  q.setMultipleTemplates(baseQuestionnaire);
  mock.$verifyAll();
}
function testSetMultipleTemplatesFallback ( ) { var baseQuestionnaire = { 'questionnaire' : QUESTIONNAIRE } ; var q = new vsaq . Questionnaire ( root ) ; mock = new goog . testing . MockControl ( ) ; mock . createMethodMock ( q , 'setTemplate' ) ; q . setTemplate ( QUESTIONNAIRE ) ; mock . $replayAll ( ) ; q . setMultipleTemplates ( baseQuestionnaire ) ; mock . $verifyAll ( ) ; }
Tests whether setMultipleTempaltes falls back to setTemplate if only one
 template was provided.
Tests whether setMultipleTempaltes falls back to setTemplate if only one template was provided .