function testUpdateItemID() {
  var rootBlock = editor.questionnaire_.getRootBlock();
  assertEquals(rootBlock.id, ROOT_BLOCK_ID);
  assertEquals(rootBlock.templateItemId, ROOT_BLOCK_ID);
  assertTrue(editor.updateItemID_(rootBlock, null));
  assertNotUndefined(rootBlock.id);
  assertNull(rootBlock.templateItemId);
  assertTrue(editor.updateItemID_(rootBlock, ROOT_BLOCK_ID));
  // Test if setting the same id twice is properly forbidden.
  var rootBlockChildren = rootBlock.getContainerItems();
  var firstChild = rootBlockChildren[0];
  assertFalse(editor.updateItemID_(firstChild, ROOT_BLOCK_ID));
}
/**
 * Test if an item id's can be properly updated.
 */
Test if an item id's can be properly updated.
Test if an item id ' s can be properly updated .
function testUpdateItemID() {
  var rootBlock = editor.questionnaire_.getRootBlock();
  assertEquals(rootBlock.id, ROOT_BLOCK_ID);
  assertEquals(rootBlock.templateItemId, ROOT_BLOCK_ID);
  assertTrue(editor.updateItemID_(rootBlock, null));
  assertNotUndefined(rootBlock.id);
  assertNull(rootBlock.templateItemId);
  assertTrue(editor.updateItemID_(rootBlock, ROOT_BLOCK_ID));
  var rootBlockChildren = rootBlock.getContainerItems();
  var firstChild = rootBlockChildren[0];
  assertFalse(editor.updateItemID_(firstChild, ROOT_BLOCK_ID));
}
function testUpdateItemID ( ) { var rootBlock = editor . questionnaire_ . getRootBlock ( ) ; assertEquals ( rootBlock . id , ROOT_BLOCK_ID ) ; assertEquals ( rootBlock . templateItemId , ROOT_BLOCK_ID ) ; assertTrue ( editor . updateItemID_ ( rootBlock , null ) ) ; assertNotUndefined ( rootBlock . id ) ; assertNull ( rootBlock . templateItemId ) ; assertTrue ( editor . updateItemID_ ( rootBlock , ROOT_BLOCK_ID ) ) ; var rootBlockChildren = rootBlock . getContainerItems ( ) ; var firstChild = rootBlockChildren [ 0 ] ; assertFalse ( editor . updateItemID_ ( firstChild , ROOT_BLOCK_ID ) ) ; }
Test if an item id's can be properly updated.
Test if an item id ' s can be properly updated .
// Test if setting the same id twice is properly forbidden.