Package org.apache.flex.compiler.tree.mxml

Examples of org.apache.flex.compiler.tree.mxml.IMXMLXMLListNode


public class MXMLXMLListNodeTests extends MXMLInstanceNodeTests
{
  private IMXMLXMLListNode getMXMLXMLListNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLXMLListNode node = (IMXMLXMLListNode)findFirstDescendantOfType(fileNode, IMXMLXMLListNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLXMLListID));
    assertThat("getName", node.getName(), is("XMLList"));
    return node;
  }
View Full Code Here


  {
    String[] code = new String[]
    {
      "<fx:XMLList/>"
    };
    IMXMLXMLListNode node = getMXMLXMLListNode(code);
    assertThat("getChildCount", node.getChildCount(), is(0));
  }
View Full Code Here

  {
    String[] code = new String[]
    {
      "<fx:XMLList></fx:XMLList>"
    };
    IMXMLXMLListNode node = getMXMLXMLListNode(code);
    assertThat("getChildCount", node.getChildCount(), is(0));
  }
View Full Code Here

  {
    String[] code = new String[]
    {
      "<fx:XMLList> \t\r\n</fx:XMLList>"
    };
    IMXMLXMLListNode node = getMXMLXMLListNode(code);
    assertThat("getChildCount", node.getChildCount(), is(0));
  }
View Full Code Here

      "<fx:XMLList>",
        "    <a/>",
        "    <b/>",
      "</fx:XMLList>"
    };
    IMXMLXMLListNode node = getMXMLXMLListNode(code);
    assertThat("getChildCount", node.getChildCount(), is(0));
    assertThat("getXMLString", node.getXMLString(), is("<a/><b/>"));
  }
View Full Code Here

  {
    String[] code = new String[]
    {
      "<fx:XMLList>{a.b}</fx:XMLList>"
    };
    IMXMLXMLListNode node = getMXMLXMLListNode(code);
    assertThat("databinding node", node.getChild(0).getNodeID(), is(ASTNodeID.MXMLDataBindingID));
    assertThat("databinding node child count", node.getChild(0).getChildCount(), is(1));
    assertThat("identifier node", node.getChild(0).getChild(0).getNodeID(), is(ASTNodeID.MemberAccessExpressionID));
  }
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.tree.mxml.IMXMLXMLListNode

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.