aboutsummaryrefslogtreecommitdiffstats
path: root/lint/cli
diff options
context:
space:
mode:
Diffstat (limited to 'lint/cli')
-rw-r--r--lint/cli/src/test/java/com/android/tools/lint/checks/InefficientWeightDetectorTest.java8
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"));
}
-
-
}