function testExportBox() {
  // Deactivate live editing mode.
  editor.liveEditModeElement_.checked = false;
  editor.toggleExportBox();
  assertFalse(editor.templateEditMode_);
  // Activate live editing mode.
  editor.liveEditModeElement_.checked = true;
  editor.toggleExportBox();
  assertTrue(editor.templateEditMode_);
  // Test toggling (once a user clicks outside the textarea the edit mode should
  // be deactivated.
  editor.toggleExportBox();
  assertFalse(editor.templateEditMode_);
}
/**
 * Test if the template area reacts correclty when clicked.
 */
Test if the template area reacts correclty when clicked.
Test if the template area reacts correclty when clicked .
function testExportBox() {
  editor.liveEditModeElement_.checked = false;
  editor.toggleExportBox();
  assertFalse(editor.templateEditMode_);
  editor.liveEditModeElement_.checked = true;
  editor.toggleExportBox();
  assertTrue(editor.templateEditMode_);
  editor.toggleExportBox();
  assertFalse(editor.templateEditMode_);
}
function testExportBox ( ) { editor . liveEditModeElement_ . checked = false ; editor . toggleExportBox ( ) ; assertFalse ( editor . templateEditMode_ ) ; editor . liveEditModeElement_ . checked = true ; editor . toggleExportBox ( ) ; assertTrue ( editor . templateEditMode_ ) ; editor . toggleExportBox ( ) ; assertFalse ( editor . templateEditMode_ ) ; }
Test if the template area reacts correclty when clicked.
Test if the template area reacts correclty when clicked .
// Deactivate live editing mode. // Activate live editing mode. // Test toggling (once a user clicks outside the textarea the edit mode should // be deactivated.