summaryrefslogtreecommitdiff
path: root/android/testData/lint
diff options
context:
space:
mode:
authorEugene Kudelevsky <Eugene.Kudelevsky@jetbrains.com>2012-01-26 16:30:14 +0400
committerEugene Kudelevsky <Eugene.Kudelevsky@jetbrains.com>2012-01-26 16:32:13 +0400
commit07f668b875e68e186fd96a5903a24d16558bd3d5 (patch)
tree5e3dd3ad437080d6f570d6d14400d5aa0c549fdb /android/testData/lint
parentc19f844654ea432885a05ce9fb18e972b3a3e987 (diff)
downloadidea-07f668b875e68e186fd96a5903a24d16558bd3d5.tar.gz
android: support quick fixes for lint; tests
Diffstat (limited to 'android/testData/lint')
-rw-r--r--android/testData/lint/adapterViewChildren.xml9
-rw-r--r--android/testData/lint/baselineWeights.xml7
-rw-r--r--android/testData/lint/baselineWeights_after.xml7
-rw-r--r--android/testData/lint/contentDescription.xml11
-rw-r--r--android/testData/lint/contentDescription1.xml11
-rw-r--r--android/testData/lint/contentDescription_after.xml11
-rw-r--r--android/testData/lint/convertToDp.xml6
-rw-r--r--android/testData/lint/convertToDp_after.xml6
-rw-r--r--android/testData/lint/duplicatedIds.xml17
-rw-r--r--android/testData/lint/editText.xml6
-rw-r--r--android/testData/lint/editText_after.xml6
-rw-r--r--android/testData/lint/exportedService.xml9
-rw-r--r--android/testData/lint/exportedService_after.xml9
-rw-r--r--android/testData/lint/hardcodedQuickfix.xml12
-rw-r--r--android/testData/lint/hardcodedQuickfix1.xml12
-rw-r--r--android/testData/lint/hardcodedQuickfix1_after.xml12
-rw-r--r--android/testData/lint/hardcodedQuickfix_after.xml12
-rw-r--r--android/testData/lint/inefficientWeight.xml12
-rw-r--r--android/testData/lint/inefficientWeight_after.xml12
-rw-r--r--android/testData/lint/missingPrefix.xml12
-rw-r--r--android/testData/lint/missingPrefix1.xml12
-rw-r--r--android/testData/lint/missingPrefix1_after.xml12
-rw-r--r--android/testData/lint/missingPrefix_after.xml12
-rw-r--r--android/testData/lint/obsoleteLayoutParams.xml6
-rw-r--r--android/testData/lint/obsoleteLayoutParams_after.xml6
-rw-r--r--android/testData/lint/scrollViewChildren.xml10
-rw-r--r--android/testData/lint/scrollViewSize.xml8
-rw-r--r--android/testData/lint/scrollViewSize_after.xml8
-rw-r--r--android/testData/lint/typographyDashes.xml4
-rw-r--r--android/testData/lint/typographyDashes_after.xml4
-rw-r--r--android/testData/lint/typographyQuotes.xml5
-rw-r--r--android/testData/lint/typographyQuotes_after.xml5
-rw-r--r--android/testData/lint/uselessLeaf.xml6
-rw-r--r--android/testData/lint/uselessLeaf_after.xml5
-rw-r--r--android/testData/lint/uselessParent.xml8
35 files changed, 310 insertions, 0 deletions
diff --git a/android/testData/lint/adapterViewChildren.xml b/android/testData/lint/adapterViewChildren.xml
new file mode 100644
index 00000000000..9f92c86e6ec
--- /dev/null
+++ b/android/testData/lint/adapterViewChildren.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+ <warning><ListView android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:layout_width="wrap_content" android:layout_height="wrap_content"/>
+ </ListView></warning>
+</LinearLayout> \ No newline at end of file
diff --git a/android/testData/lint/baselineWeights.xml b/android/testData/lint/baselineWeights.xml
new file mode 100644
index 00000000000..a9bb155680e
--- /dev/null
+++ b/android/testData/lint/baselineWeights.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<warning><LinearLayout<caret> xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+ <AbsoluteLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="10"/>
+</LinearLayout></warning>
+
diff --git a/android/testData/lint/baselineWeights_after.xml b/android/testData/lint/baselineWeights_after.xml
new file mode 100644
index 00000000000..65a523c3c9a
--- /dev/null
+++ b/android/testData/lint/baselineWeights_after.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent" android:baselineAligned="<selection>false</selection>">
+ <AbsoluteLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="10"/>
+</LinearLayout>
+
diff --git a/android/testData/lint/contentDescription.xml b/android/testData/lint/contentDescription.xml
new file mode 100644
index 00000000000..f99ee50e626
--- /dev/null
+++ b/android/testData/lint/contentDescription.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+<warning><Ima<caret>geView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ /></warning>
+</LinearLayout>
+
diff --git a/android/testData/lint/contentDescription1.xml b/android/testData/lint/contentDescription1.xml
new file mode 100644
index 00000000000..3966e0b9e16
--- /dev/null
+++ b/android/testData/lint/contentDescription1.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+<ImageView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ <warning>android:con<caret>tentDescription=""</warning>/>
+</LinearLayout>
+
diff --git a/android/testData/lint/contentDescription_after.xml b/android/testData/lint/contentDescription_after.xml
new file mode 100644
index 00000000000..f64caa92995
--- /dev/null
+++ b/android/testData/lint/contentDescription_after.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+<ImageView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:contentDescription="<caret>"/>
+</LinearLayout>
+
diff --git a/android/testData/lint/convertToDp.xml b/android/testData/lint/convertToDp.xml
new file mode 100644
index 00000000000..6bc4c0dc8d8
--- /dev/null
+++ b/android/testData/lint/convertToDp.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+ <TextView android:layout_width="fill_parent" android:layout_height="fill_parent" <warning>android:width="100<caret>px"</warning>/>
+</LinearLayout> \ No newline at end of file
diff --git a/android/testData/lint/convertToDp_after.xml b/android/testData/lint/convertToDp_after.xml
new file mode 100644
index 00000000000..17c93063729
--- /dev/null
+++ b/android/testData/lint/convertToDp_after.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+ <TextView android:layout_width="fill_parent" android:layout_height="fill_parent" android:width="100dp"/>
+</LinearLayout> \ No newline at end of file
diff --git a/android/testData/lint/duplicatedIds.xml b/android/testData/lint/duplicatedIds.xml
new file mode 100644
index 00000000000..3f200a1b60b
--- /dev/null
+++ b/android/testData/lint/duplicatedIds.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+ <TextView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:id="@+id/id123"
+ />
+ <TextView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ <warning>android:id="@+id/id123"</warning>
+ />
+</LinearLayout>
+
diff --git a/android/testData/lint/editText.xml b/android/testData/lint/editText.xml
new file mode 100644
index 00000000000..afd1ab54fc0
--- /dev/null
+++ b/android/testData/lint/editText.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+ <warning><EditText android:layout_width="wrap_content" android:l<caret>ayout_height="wrap_content"/></warning>
+</LinearLayout> \ No newline at end of file
diff --git a/android/testData/lint/editText_after.xml b/android/testData/lint/editText_after.xml
new file mode 100644
index 00000000000..f2c4ad49423
--- /dev/null
+++ b/android/testData/lint/editText_after.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+ <EditText android:layout_width="wrap_content" android:layout_height="wrap_content" android:inputType="<caret>"/>
+</LinearLayout> \ No newline at end of file
diff --git a/android/testData/lint/exportedService.xml b/android/testData/lint/exportedService.xml
new file mode 100644
index 00000000000..b62fd1fc5b0
--- /dev/null
+++ b/android/testData/lint/exportedService.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.example"
+ android:versionCode="1"
+ android:versionName="1.0">
+ <application android:label="Hello, world!" >
+ <warning><service android:name=".MyExportedService" <caret>android:exported="true"/></warning>
+ </application>
+</manifest>
diff --git a/android/testData/lint/exportedService_after.xml b/android/testData/lint/exportedService_after.xml
new file mode 100644
index 00000000000..014758a117f
--- /dev/null
+++ b/android/testData/lint/exportedService_after.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.example"
+ android:versionCode="1"
+ android:versionName="1.0">
+ <application android:label="Hello, world!" >
+ <service android:name=".MyExportedService" android:exported="true" android:permission="<caret>"/>
+ </application>
+</manifest>
diff --git a/android/testData/lint/hardcodedQuickfix.xml b/android/testData/lint/hardcodedQuickfix.xml
new file mode 100644
index 00000000000..85cc775f1f5
--- /dev/null
+++ b/android/testData/lint/hardcodedQuickfix.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+<TextView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ <warning>android:t<caret>ext="Hello World, MyActivity"</warning>
+ />
+</LinearLayout>
+
diff --git a/android/testData/lint/hardcodedQuickfix1.xml b/android/testData/lint/hardcodedQuickfix1.xml
new file mode 100644
index 00000000000..dc34d4a6e76
--- /dev/null
+++ b/android/testData/lint/hardcodedQuickfix1.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+<TextView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ <warning>android:text="He<caret>llo World, MyActivity"</warning>
+ />
+</LinearLayout>
+
diff --git a/android/testData/lint/hardcodedQuickfix1_after.xml b/android/testData/lint/hardcodedQuickfix1_after.xml
new file mode 100644
index 00000000000..97da65a0b13
--- /dev/null
+++ b/android/testData/lint/hardcodedQuickfix1_after.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+<TextView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/hello"
+ />
+</LinearLayout>
+
diff --git a/android/testData/lint/hardcodedQuickfix_after.xml b/android/testData/lint/hardcodedQuickfix_after.xml
new file mode 100644
index 00000000000..97da65a0b13
--- /dev/null
+++ b/android/testData/lint/hardcodedQuickfix_after.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+<TextView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/hello"
+ />
+</LinearLayout>
+
diff --git a/android/testData/lint/inefficientWeight.xml b/android/testData/lint/inefficientWeight.xml
new file mode 100644
index 00000000000..65ebfc8958c
--- /dev/null
+++ b/android/testData/lint/inefficientWeight.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+ <TextView
+ <warning>android:layout_wid<caret>th="fill_parent"</warning>
+ android:layout_height="wrap_content"
+ android:layout_weight="10"
+ />
+</LinearLayout>
+
diff --git a/android/testData/lint/inefficientWeight_after.xml b/android/testData/lint/inefficientWeight_after.xml
new file mode 100644
index 00000000000..ae8f0678848
--- /dev/null
+++ b/android/testData/lint/inefficientWeight_after.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+ <TextView
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="10"
+ />
+</LinearLayout>
+
diff --git a/android/testData/lint/missingPrefix.xml b/android/testData/lint/missingPrefix.xml
new file mode 100644
index 00000000000..6934bcbf6f1
--- /dev/null
+++ b/android/testData/lint/missingPrefix.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+ <TextView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ <warning>id="@+id/id1<caret>23"</warning>
+ />
+</LinearLayout>
+
diff --git a/android/testData/lint/missingPrefix1.xml b/android/testData/lint/missingPrefix1.xml
new file mode 100644
index 00000000000..3db882a6da7
--- /dev/null
+++ b/android/testData/lint/missingPrefix1.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:an="http://schemas.android.com/apk/res/android"
+ an:layout_width="fill_parent"
+ an:layout_height="fill_parent"
+ >
+ <TextView
+ an:layout_width="fill_parent"
+ an:layout_height="wrap_content"
+ <warning>id="@+id/id1<caret>23"</warning>
+ />
+</LinearLayout>
+
diff --git a/android/testData/lint/missingPrefix1_after.xml b/android/testData/lint/missingPrefix1_after.xml
new file mode 100644
index 00000000000..6c736a2de09
--- /dev/null
+++ b/android/testData/lint/missingPrefix1_after.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:an="http://schemas.android.com/apk/res/android"
+ an:layout_width="fill_parent"
+ an:layout_height="fill_parent"
+ >
+ <TextView
+ an:layout_width="fill_parent"
+ an:layout_height="wrap_content"
+ an:id="@+id/id123"
+ />
+</LinearLayout>
+
diff --git a/android/testData/lint/missingPrefix_after.xml b/android/testData/lint/missingPrefix_after.xml
new file mode 100644
index 00000000000..e007df75356
--- /dev/null
+++ b/android/testData/lint/missingPrefix_after.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+ <TextView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:id="@+id/id123"
+ />
+</LinearLayout>
+
diff --git a/android/testData/lint/obsoleteLayoutParams.xml b/android/testData/lint/obsoleteLayoutParams.xml
new file mode 100644
index 00000000000..4c57fe6e700
--- /dev/null
+++ b/android/testData/lint/obsoleteLayoutParams.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+ <TextView android:layout_width="fill_parent" android:layout_height="fill_parent" <warning>android:l<caret>ayout_row="10"</warning>/>
+</LinearLayout> \ No newline at end of file
diff --git a/android/testData/lint/obsoleteLayoutParams_after.xml b/android/testData/lint/obsoleteLayoutParams_after.xml
new file mode 100644
index 00000000000..1f0a1aed7c0
--- /dev/null
+++ b/android/testData/lint/obsoleteLayoutParams_after.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+ <TextView android:layout_width="fill_parent" android:layout_height="fill_parent"/>
+</LinearLayout> \ No newline at end of file
diff --git a/android/testData/lint/scrollViewChildren.xml b/android/testData/lint/scrollViewChildren.xml
new file mode 100644
index 00000000000..55660b7e40b
--- /dev/null
+++ b/android/testData/lint/scrollViewChildren.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+ <warning><ScrollView android:layout_height="wrap_content" android:layout_width="fill_parent">
+ <TextView android:layout_height="fill_parent" android:layout_width="wrap_content"/>
+ <TextView android:layout_height="fill_parent" android:layout_width="wrap_content"/>
+ </ScrollView></warning>
+</LinearLayout> \ No newline at end of file
diff --git a/android/testData/lint/scrollViewSize.xml b/android/testData/lint/scrollViewSize.xml
new file mode 100644
index 00000000000..a5ee7b2c364
--- /dev/null
+++ b/android/testData/lint/scrollViewSize.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+ <ScrollView android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <TextView android:layout_width="fill_parent" <warning>android:layout_height="f<caret>ill_parent"</warning>/>
+ </ScrollView>
+</LinearLayout> \ No newline at end of file
diff --git a/android/testData/lint/scrollViewSize_after.xml b/android/testData/lint/scrollViewSize_after.xml
new file mode 100644
index 00000000000..eb95fc26ed3
--- /dev/null
+++ b/android/testData/lint/scrollViewSize_after.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+ <ScrollView android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <TextView android:layout_width="fill_parent" android:layout_height="wrap_content"/>
+ </ScrollView>
+</LinearLayout> \ No newline at end of file
diff --git a/android/testData/lint/typographyDashes.xml b/android/testData/lint/typographyDashes.xml
new file mode 100644
index 00000000000..7b68d3f92e0
--- /dev/null
+++ b/android/testData/lint/typographyDashes.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <warning><string name="s">10-2<caret>0</string></warning>
+</resources> \ No newline at end of file
diff --git a/android/testData/lint/typographyDashes_after.xml b/android/testData/lint/typographyDashes_after.xml
new file mode 100644
index 00000000000..35404e3362b
--- /dev/null
+++ b/android/testData/lint/typographyDashes_after.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="s">10–20</string>
+</resources> \ No newline at end of file
diff --git a/android/testData/lint/typographyQuotes.xml b/android/testData/lint/typographyQuotes.xml
new file mode 100644
index 00000000000..cfe2294a068
--- /dev/null
+++ b/android/testData/lint/typographyQuotes.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="app_name">untitled303</string>
+ <warning><string name="app_name1">aba 'a<caret>ba'</string></warning>
+</resources>
diff --git a/android/testData/lint/typographyQuotes_after.xml b/android/testData/lint/typographyQuotes_after.xml
new file mode 100644
index 00000000000..f0539ff7ece
--- /dev/null
+++ b/android/testData/lint/typographyQuotes_after.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="app_name">untitled303</string>
+ <string name="app_name1">aba ‘aba’</string>
+</resources>
diff --git a/android/testData/lint/uselessLeaf.xml b/android/testData/lint/uselessLeaf.xml
new file mode 100644
index 00000000000..ae483929b35
--- /dev/null
+++ b/android/testData/lint/uselessLeaf.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+ <warning><ImageSwitcher android:layout_widt<caret>h="wrap_content" android:layout_height="wrap_content"/></warning>
+</LinearLayout> \ No newline at end of file
diff --git a/android/testData/lint/uselessLeaf_after.xml b/android/testData/lint/uselessLeaf_after.xml
new file mode 100644
index 00000000000..68d85c5e154
--- /dev/null
+++ b/android/testData/lint/uselessLeaf_after.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+</LinearLayout> \ No newline at end of file
diff --git a/android/testData/lint/uselessParent.xml b/android/testData/lint/uselessParent.xml
new file mode 100644
index 00000000000..54a49cc510f
--- /dev/null
+++ b/android/testData/lint/uselessParent.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+ <warning><ImageSwitche<caret>r android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:layout_width="wrap_content" android:layout_height="wrap_content"/>
+ </ImageSwitcher></warning>
+</LinearLayout> \ No newline at end of file