Examples of IMXMLComponentNode


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

    String[] code = new String[]
    {
      "<fx:Component>",
      "</fx:Component>"
    };
    IMXMLComponentNode node = getMXMLComponentNode(code);
    assertThat("getChildCount", node.getChildCount(), is(0));
    assertThat("getID", node.getID(), is((String)null));
    assertThat("getClassNode", node.getClassNode(), is((IMXMLClassNode)null));
    assertThat("getClassName", node.getClassName(), is((String)null));
    assertThat("getContainedClassDefinitionNode", node.getContainedClassDefinitionNode(), is((IMXMLClassDefinitionNode)null));
    assertThat("getContainedClassDefinition", node.getContainedClassDefinition(), is((IClassDefinition)null));
  }
View Full Code Here

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

    {
        "<fx:Component>",
        "    <d:Sprite/>",
        "</fx:Component>"
    };
    IMXMLComponentNode node = getMXMLComponentNode(code);
    assertThat("getChildCount", node.getChildCount(), is(1));
    assertThat("getID", node.getID(), is((String)null));
    assertThat("getClassNode", node.getClassNode(), is((IMXMLClassNode)null));
    assertThat("getClassName", node.getClassName(), is((String)null));
    assertThat("getContainedClassDefinitionNode", node.getContainedClassDefinitionNode(), is(node.getChild(0)));
    assertThat("getContainedClassDefinition", node.getContainedClassDefinition().isInstanceOf("flash.display.Sprite", project), is(true));
  }
View Full Code Here

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

    {
        "<fx:Component className='MySprite'>",
        "    <d:Sprite/>",
        "</fx:Component>"
    };
    IMXMLComponentNode node = getMXMLComponentNode(code);
    assertThat("getChildCount", node.getChildCount(), is(1));
    assertThat("getID", node.getID(), is((String)null));
    assertThat("getClassNode", node.getClassNode(), is((IMXMLClassNode)null));
    assertThat("getClassName", node.getClassName(), is("MySprite"));
    assertThat("getContainedClassDefinitionNode", node.getContainedClassDefinitionNode(), is(node.getChild(0)));
    assertThat("getContainedClassDefinition", node.getContainedClassDefinition().isInstanceOf("flash.display.Sprite", project), is(true));
  }
View Full Code Here

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

    {
        "<fx:Component id='c1'>",
        "    <d:Sprite/>",
        "</fx:Component>"
    };
    IMXMLComponentNode node = getMXMLComponentNode(code);
    assertThat("getChildCount", node.getChildCount(), is(1));
    assertThat("getID", node.getID(), is("c1"));
    assertThat("getClassNode", node.getClassNode(), is((IMXMLClassNode)null));
    assertThat("getClassName", node.getClassName(), is((String)null));
    assertThat("getContainedClassDefinitionNode", node.getContainedClassDefinitionNode(), is(node.getChild(0)));
    assertThat("getContainedClassDefinition", node.getContainedClassDefinition().isInstanceOf("flash.display.Sprite", project), is(true));
  }
View Full Code Here

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

        "    <d:Sprite width='100'>",
        "        <d:height>100</d:height>",
        "    </d:Sprite>",
        "</fx:Component>"
    };
    IMXMLComponentNode node = getMXMLComponentNode(code);
    assertThat("getChildCount", node.getChildCount(), is(1));
    assertThat("getID", node.getID(), is("c1"));
    assertThat("getClassNode", node.getClassNode(), is((IMXMLClassNode)null));
    assertThat("getClassName", node.getClassName(), is("MySprite"));
    assertThat("getContainedClassDefinitionNode", node.getContainedClassDefinitionNode(), is(node.getChild(0)));
    assertThat("getContainedClassDefinition", node.getContainedClassDefinition().isInstanceOf("flash.display.Sprite", project), is(true));
    assertThat("getContainedClassDefinitionNode.getChildCount", node.getContainedClassDefinitionNode().getChildCount(), is(2));
  }
View Full Code Here

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

public class MXMLComponentNodeTests extends MXMLInstanceNodeTests
  private IMXMLComponentNode getMXMLComponentNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLComponentNode node = (IMXMLComponentNode)findFirstDescendantOfType(fileNode, IMXMLComponentNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLComponentID));
    //assertThat("getName", node.getName(), is("Component"));
    return node;
  }
View Full Code Here

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

  {
    String[] code = new String[]
    {
      "<fx:Component/>"
    };
    IMXMLComponentNode node = getMXMLComponentNode(code);
    assertThat("getChildCount", node.getChildCount(), is(0));
    assertThat("getID", node.getID(), is((String)null));
    assertThat("getClassNode", node.getClassNode(), is((IMXMLClassNode)null));
    assertThat("getClassName", node.getClassName(), is((String)null));
    assertThat("getContainedClassDefinitionNode", node.getContainedClassDefinitionNode(), is((IMXMLClassDefinitionNode)null));
    assertThat("getContainedClassDefinition", node.getContainedClassDefinition(), is((IClassDefinition)null));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.