function testItemExport() {
  var rootBlock = editor.questionnaire_.getRootBlock();
  editor.updateItemEntry_(rootBlock, CONDITIONS_CLASS_PROPERTY_NAME,
      TEST_STRING);
  var exportedJSON = editor.exportQuestionnaireJSON_(rootBlock);
  var conditionText = '"' + CONDITIONS_CLASS_TEMPLATE_NAME + '": ' +
                      '"' + TEST_STRING + '"';
  assertTrue(goog.string.contains(exportedJSON, conditionText));
}
/**
 * Tests whether items and their properties are properly exported.
 */
Tests whether items and their properties are properly exported.
Tests whether items and their properties are properly exported .
function testItemExport() {
  var rootBlock = editor.questionnaire_.getRootBlock();
  editor.updateItemEntry_(rootBlock, CONDITIONS_CLASS_PROPERTY_NAME,
      TEST_STRING);
  var exportedJSON = editor.exportQuestionnaireJSON_(rootBlock);
  var conditionText = '"' + CONDITIONS_CLASS_TEMPLATE_NAME + '": ' +
                      '"' + TEST_STRING + '"';
  assertTrue(goog.string.contains(exportedJSON, conditionText));
}
function testItemExport ( ) { var rootBlock = editor . questionnaire_ . getRootBlock ( ) ; editor . updateItemEntry_ ( rootBlock , CONDITIONS_CLASS_PROPERTY_NAME , TEST_STRING ) ; var exportedJSON = editor . exportQuestionnaireJSON_ ( rootBlock ) ; var conditionText = '"' + CONDITIONS_CLASS_TEMPLATE_NAME + '": ' + '"' + TEST_STRING + '"' ; assertTrue ( goog . string . contains ( exportedJSON , conditionText ) ) ; }
Tests whether items and their properties are properly exported.
Tests whether items and their properties are properly exported .