Home
last modified time | relevance | path

Searched refs:TestNode (Results 1 – 10 of 10) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/grid/
DGridModelTest.java28 import com.android.ide.common.layout.TestNode;
47 TestNode targetNode = TestNode.create("android.widget.GridLayout").id("@+id/GridLayout1") in testReadModel1()
55 targetNode.add(TestNode.create(FQCN_BUTTON).id("@+id/Button1")); in testReadModel1()
56 targetNode.add(TestNode.create(FQCN_BUTTON).id("@+id/Button2")); in testReadModel1()
57 targetNode.add(TestNode.create(FQCN_BUTTON).id("@+id/Button3")); in testReadModel1()
58 targetNode.add(TestNode.create(FQCN_BUTTON).id("@+id/Button4")); in testReadModel1()
67 TestNode targetNode = TestNode.create("android.widget.GridLayout").id("@+id/GridLayout1") in testSplitColumn()
69 TestNode b1 = TestNode.create(FQCN_BUTTON).id("@+id/Button1"); in testSplitColumn()
70 TestNode b2 = TestNode.create(FQCN_BUTTON).id("@+id/Button2"); in testSplitColumn()
71 TestNode b3 = TestNode.create(FQCN_BUTTON).id("@+id/Button3"); in testSplitColumn()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/relative/
DDeletionHandlerTest.java23 import com.android.ide.common.layout.TestNode;
67 TestNode targetNode = TestNode.createFromXml(xml); in testSimple()
70 TestNode button2 = TestNode.findById(targetNode, "@+id/button2"); in testSimple()
81 String updated = TestNode.toXml(targetNode); in testSimple()
199 TestNode targetNode = TestNode.createFromXml(xml); in testTransitive()
201 TestNode button7 = TestNode.findById(targetNode, "@+id/button7"); in testTransitive()
202 TestNode checkBox = TestNode.findById(targetNode, "@+id/checkBox1"); in testTransitive()
214 String updated = TestNode.toXml(targetNode); in testTransitive()
320 TestNode targetNode = TestNode.createFromXml(xml); in testCenter()
322 TestNode button1 = TestNode.findById(targetNode, "@+id/button1"); in testCenter()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/
DTestNode.java58 public class TestNode implements INode { class
59 private TestNode mParent;
61 private final List<TestNode> mChildren = new ArrayList<TestNode>();
73 public TestNode(String fqcn) { in TestNode() method in TestNode
77 public TestNode bounds(Rect bounds) { in bounds()
83 public TestNode id(String id) { in id()
87 public TestNode set(String uri, String name, String value) { in set()
93 public TestNode add(TestNode child) { in add()
100 public TestNode add(TestNode... children) { in add()
101 for (TestNode child : children) { in add()
[all …]
DFrameLayoutRuleTest.java28 INode layout = TestNode.create("android.widget.FrameLayout").id("@+id/FrameLayout01") in dragInto()
30 TestNode.create("android.widget.Button").id("@+id/Button01").bounds( in dragInto()
32 TestNode.create("android.widget.Button").id("@+id/Button02").bounds( in dragInto()
34 TestNode.create("android.widget.Button").id("@+id/Button03").bounds( in dragInto()
36 TestNode.create("android.widget.Button").id("@+id/Button04").bounds( in dragInto()
DZoomControlsRuleTest.java32 INode layout = TestNode.create("android.widget.ZoomControls").id("@+id/ZoomControls01") in testDoNothing()
34 TestNode.create("android.widget.Button").id("@+id/Button01").bounds( in testDoNothing()
36 TestNode.create("android.widget.Button").id("@+id/Button02").bounds( in testDoNothing()
38 TestNode.create("android.widget.Button").id("@+id/Button03").bounds( in testDoNothing()
40 TestNode.create("android.widget.Button").id("@+id/Button04").bounds( in testDoNothing()
DAbsoluteLayoutRuleTest.java30 INode layout = TestNode.create("android.widget.AbsoluteLayout").id("@+id/AbsoluteLayout01") in dragInto()
32 TestNode.create("android.widget.Button").id("@+id/Button01").bounds( in dragInto()
34 TestNode.create("android.widget.Button").id("@+id/Button02").bounds( in dragInto()
36 TestNode.create("android.widget.Button").id("@+id/Button03").bounds( in dragInto()
38 TestNode.create("android.widget.Button").id("@+id/Button04").bounds( in dragInto()
DBaseLayoutRuleTest.java93 INode node = TestNode.create("android.widget.Button").id("@+id/Button012").add( in testCollectExistingIds1()
94 TestNode.create("android.widget.Button").id("@+id/Button2")); in testCollectExistingIds1()
130 INode node = TestNode.create("android.widget.Button").id("@+id/Button012").add( in testRemapIds1()
131 TestNode.create("android.widget.Button").id("@+id/Button2")); in testRemapIds1()
151 INode node = TestNode.create("android.widget.Button").id("@+id/Button012").add( in testGetDropIdMap()
152 TestNode.create("android.widget.Button").id("@+id/Button2")); in testGetDropIdMap()
168 INode newNode = TestNode.create("a.w.B").id("@+id/foo").set("u", "key", "value").set("u", in testAddAttributes1()
186 INode newNode = TestNode.create("a.w.B").id("@+id/foo").set("u", "key", "value").set("u", in testAddAttributes2()
237 INode newNode = TestNode.create("a.w.B").id("@+id/foo"); in testAddInnerElements()
DLinearLayoutRuleTest.java51 INode targetNode = TestNode.create("android.widget.LinearLayout").id( in dragIntoEmpty()
107 INode linearLayout = TestNode.create("android.widget.LinearLayout").id( in dragInto()
112 TestNode.create("android.widget.Button").id("@+id/Button01").bounds( in dragInto()
114 TestNode.create("android.widget.Button").id("@+id/Button02").bounds( in dragInto()
116 TestNode.create("android.widget.Button").id("@+id/Button03").bounds( in dragInto()
118 TestNode.create("android.widget.Button").id("@+id/Button04").bounds( in dragInto()
129 INode node = TestNode.create("android.widget.Button").id("@+id/Button012"); in testContextMenu()
149 INode node = TestNode.create("android.widget.LinearLayout").id("@+id/LinearLayout") in testContextMenuCustom()
175 TestNode node = TestNode.create("android.widget.LinearLayout").id("@+id/LinearLayout012"); in testOrientation()
209 TestNode node = TestNode.create("android.widget.LinearLayout").id("@+id/LinearLayout012"); in testProperties()
DRelativeLayoutRuleTest.java31 INode layout = TestNode.create("android.widget.RelativeLayout").id("@+id/RelativeLayout01") in dragInto()
34 TestNode.create("android.widget.Button").id("@+id/Centered").bounds( in dragInto()
38 TestNode.create("android.widget.Button").id("@+id/Below").bounds( in dragInto()
DLayoutTestBase.java134 ((TestNode) targetNode).removeChild(currentIndex); in dragInto()