function testSetMultipleTemplatesVersionMismatch() {
  var extensionItem = {
    id: 'extension_test_id',
    type: 'line',
    text: HTML_STRING,
    insertBefore: RADIO2['id'],
    insertAfter: RADIO2['id']
  };

  var baseQuestionnaire = {'questionnaire': [BLOCK1], 'version': 4};
  var extension = {'extensions': [extensionItem], 'version': 4};

  var q = new vsaq.Questionnaire(root);

  assertThrows(
      function() {q.setMultipleTemplates(baseQuestionnaire, extension)});
}
/**
 * Tests that an exception is thrown, if insertAfter and insertBefore are both
 * present in items of an extension template.
 */
Tests that an exception is thrown, if insertAfter and insertBefore are both
present in items of an extension template.
Tests that an exception is thrown if insertAfter and insertBefore are both present in items of an extension template .
function testSetMultipleTemplatesVersionMismatch() {
  var extensionItem = {
    id: 'extension_test_id',
    type: 'line',
    text: HTML_STRING,
    insertBefore: RADIO2['id'],
    insertAfter: RADIO2['id']
  };
  var baseQuestionnaire = {'questionnaire': [BLOCK1], 'version': 4};
  var extension = {'extensions': [extensionItem], 'version': 4};
  var q = new vsaq.Questionnaire(root);
  assertThrows(
      function() {q.setMultipleTemplates(baseQuestionnaire, extension)});
}
function testSetMultipleTemplatesVersionMismatch ( ) { var extensionItem = { id : 'extension_test_id' , type : 'line' , text : HTML_STRING , insertBefore : RADIO2 [ 'id' ] , insertAfter : RADIO2 [ 'id' ] } ; var baseQuestionnaire = { 'questionnaire' : [ BLOCK1 ] , 'version' : 4 } ; var extension = { 'extensions' : [ extensionItem ] , 'version' : 4 } ; var q = new vsaq . Questionnaire ( root ) ; assertThrows ( function ( ) { q . setMultipleTemplates ( baseQuestionnaire , extension ) } ) ; }
Tests that an exception is thrown, if insertAfter and insertBefore are both
 present in items of an extension template.
Tests that an exception is thrown if insertAfter and insertBefore are both present in items of an extension template .