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

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


public class MXMLMetadataNodeTests extends MXMLNodeBaseTests
{
  private IMXMLMetadataNode getMXMLMetadataNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLMetadataNode node = (IMXMLMetadataNode)findFirstDescendantOfType(fileNode, IMXMLMetadataNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLMetadataID));
    assertThat("getName", node.getName(), is("Metadata"));
    return node;
  }
View Full Code Here


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

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

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

      "<fx:Metadata>",
      "    [Event(name='mouseDown', type='mx.events.MouseEvent')]",
      "    [Event(name='mouseUp', type='mx.events.MouseEvent')]",
      "</fx:Metadata>"
    };
    IMXMLMetadataNode node = getMXMLMetadataNode(code);
    assertThat("getChildCount", node.getChildCount(), is(2));
    IMetaTagNode[] metaTagNodes = node.getMetaTagNodes();
    assertThat("event 0", ((IEventTagNode)metaTagNodes[0]).getName(), is("mouseDown"));
    assertThat("event 1", ((IEventTagNode)metaTagNodes[1]).getName(), is("mouseUp"));
  }
View Full Code Here

TOP

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

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.