diff options
author | Tor Norbye <tnorbye@google.com> | 2010-12-09 15:35:21 -0800 |
---|---|---|
committer | Android Code Review <code-review@android.com> | 2010-12-09 15:35:21 -0800 |
commit | b1be6238d45ee57214c25e0d80a03cf73161e6f8 (patch) | |
tree | 106d2922fdded6e293f23f4d293512e54f370088 /eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/LinearLayoutRuleTest.java | |
parent | eadfb94154126f670fa0ada62d36fec5f6188bd9 (diff) | |
parent | fe3eebe57ba2925642cc1b257cb03ba617d298af (diff) | |
download | sdk-b1be6238d45ee57214c25e0d80a03cf73161e6f8.zip sdk-b1be6238d45ee57214c25e0d80a03cf73161e6f8.tar.gz sdk-b1be6238d45ee57214c25e0d80a03cf73161e6f8.tar.bz2 |
Merge "Issue 13051: Use match_parent or fill_parent based on API level"
Diffstat (limited to 'eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/LinearLayoutRuleTest.java')
-rw-r--r-- | eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/LinearLayoutRuleTest.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/LinearLayoutRuleTest.java b/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/LinearLayoutRuleTest.java index 520f984..4f29932 100644 --- a/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/LinearLayoutRuleTest.java +++ b/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/LinearLayoutRuleTest.java @@ -28,9 +28,9 @@ import com.android.ide.common.api.IMenuCallback; import com.android.ide.common.api.INode; import com.android.ide.common.api.IViewRule; import com.android.ide.common.api.MenuAction; -import com.android.ide.common.api.MenuAction.Choices; import com.android.ide.common.api.Point; import com.android.ide.common.api.Rect; +import com.android.ide.common.api.MenuAction.Choices; import java.util.List; @@ -41,6 +41,7 @@ public class LinearLayoutRuleTest extends LayoutTestBase { boolean haveBounds = dragBounds.isValid(); IViewRule rule = new LinearLayoutRule(); + INode targetNode = TestNode.create("android.widget.LinearLayout").id( "@+id/LinearLayout01").bounds(new Rect(0, 0, 240, 480)); Point dropPoint = new Point(10, 5); @@ -118,6 +119,7 @@ public class LinearLayoutRuleTest extends LayoutTestBase { // Check that the context menu registers the expected menu items public void testContextMenu() { LinearLayoutRule rule = new LinearLayoutRule(); + initialize(rule, "android.widget.LinearLayout"); INode node = TestNode.create("android.widget.Button").id("@+id/Button012"); List<MenuAction> contextMenu = rule.getContextMenu(node); @@ -135,6 +137,7 @@ public class LinearLayoutRuleTest extends LayoutTestBase { // Check that the context menu manipulates the orientation attribute public void testOrientation() { LinearLayoutRule rule = new LinearLayoutRule(); + initialize(rule, "android.widget.LinearLayout"); INode node = TestNode.create("android.widget.Button").id("@+id/Button012"); assertNull(node.getStringAttr(ANDROID_URI, ATTR_ORIENTATION)); |