diff options
author | Tor Norbye <tnorbye@google.com> | 2013-01-03 10:17:09 -0800 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-01-03 10:17:09 -0800 |
commit | 153ee3ce812db9be9299f4d5d5b888debef7e29c (patch) | |
tree | e8b44274a89ee7e350ca0ba34acdd95fe44911a9 /lint/cli | |
parent | 5628582f5e441557043b869147c974e5b3858873 (diff) | |
parent | c8e6f23015e405edc179327a221a264b4df4b670 (diff) | |
download | sdk-153ee3ce812db9be9299f4d5d5b888debef7e29c.zip sdk-153ee3ce812db9be9299f4d5d5b888debef7e29c.tar.gz sdk-153ee3ce812db9be9299f4d5d5b888debef7e29c.tar.bz2 |
Merge "27869: Lint rule for LinearLayout which doesn't specify orientation"
Diffstat (limited to 'lint/cli')
-rw-r--r-- | lint/cli/src/test/java/com/android/tools/lint/checks/InefficientWeightDetectorTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lint/cli/src/test/java/com/android/tools/lint/checks/InefficientWeightDetectorTest.java b/lint/cli/src/test/java/com/android/tools/lint/checks/InefficientWeightDetectorTest.java index 644bb10..c642ab1 100644 --- a/lint/cli/src/test/java/com/android/tools/lint/checks/InefficientWeightDetectorTest.java +++ b/lint/cli/src/test/java/com/android/tools/lint/checks/InefficientWeightDetectorTest.java @@ -27,14 +27,16 @@ public class InefficientWeightDetectorTest extends AbstractCheckTest { public void testWeights() throws Exception { assertEquals( + "res/layout/inefficient_weight.xml:3: Error: Wrong orientation? No orientation specified, and the default is horizontal, yet this layout has multiple children where at least one has layout_width=\"match_parent\" [Orientation]\n" + + "<LinearLayout\n" + + "^\n" + "res/layout/inefficient_weight.xml:10: Warning: Use a layout_width of 0dip instead of match_parent for better performance [InefficientWeight]\n" + " android:layout_width=\"match_parent\"\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" + "res/layout/inefficient_weight.xml:24: Warning: Use a layout_height of 0dip instead of wrap_content for better performance [InefficientWeight]\n" + " android:layout_height=\"wrap_content\"\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" + - "0 errors, 2 warnings\n" + - "", + "1 errors, 2 warnings\n", lintFiles("res/layout/inefficient_weight.xml")); } @@ -122,6 +124,4 @@ public class InefficientWeightDetectorTest extends AbstractCheckTest { lintFiles("res/layout/wrong0dp.xml")); } - - } |