Package com.google.gxp.compiler.base

Examples of com.google.gxp.compiler.base.Concatenation


  }

  public void testConcat() throws Exception {
    Expression value0 = expr("4 + 12");
    Expression value1 = str("slurm");
    Concatenation result = (Concatenation) concat(null, value0, value1);
    assertEquals(value0, result.getValues().get(0));
    assertEquals(value1, result.getValues().get(1));
  }
View Full Code Here


    Template root = getTemplate(output.getRoot());
    assertEquals(TEMPLATE_NAME, root.getName());
    assertEquals(0, root.getImports().size());
    assertEquals(0, root.getParameters().size());
    CollapseExpression collapse = (CollapseExpression) root.getContent();
    Concatenation kids = (Concatenation) collapse.getSubexpression();
    assertEquals(3, kids.getValues().size());
    assertEquals("img",
                 ((OutputElement) kids.getValues().get(0)).getLocalName());
    assertEquals("p",
                 ((OutputElement) kids.getValues().get(1)).getLocalName());
    assertEquals("div",
                 ((OutputElement) kids.getValues().get(2)).getLocalName());
    // TODO(laurence): test all other node types
  }
View Full Code Here

TOP

Related Classes of com.google.gxp.compiler.base.Concatenation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.