Fix Android Extensions tests (descriptors)

This commit is contained in:
Yan Zhulanow
2015-11-06 18:36:12 +03:00
parent c7f1fd74a1
commit 422e11ea9a
175 changed files with 963 additions and 1865 deletions
@@ -1,4 +1,4 @@
package com.myapp
package test
import android.app.Activity
import kotlinx.android.synthetic.main.layout.*
@@ -1,4 +1,4 @@
package com.myapp
package test
import android.app.Fragment
import kotlinx.android.synthetic.main.layout.*
@@ -1,4 +1,4 @@
package com.myapp
package test
import android.app.Activity
import kotlinx.android.synthetic.main.layout.*
@@ -1,4 +1,4 @@
package com.myapp
package test
import android.app.Fragment
import kotlinx.android.synthetic.main.layout.*
@@ -1,4 +1,4 @@
package com.myapp
package test
import android.app.Activity
import kotlinx.android.synthetic.main.layout.*
@@ -1,4 +1,4 @@
package com.myapp
package test
import android.app.Fragment
import kotlinx.android.synthetic.main.layout.*
@@ -1,4 +1,4 @@
package com.myapp
package test
import android.app.Activity
import android.os.Bundle
@@ -1,4 +1,4 @@
package com.myapp
package test
import android.app.Fragment
import java.io.File
@@ -1,4 +1,4 @@
package com.myapp
package test
import android.view.View
import kotlinx.android.synthetic.main.layout.view.*
@@ -1,4 +1,4 @@
package com.myapp
package test
import android.app.Activity
import android.os.Bundle
@@ -1,7 +0,0 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.myapp"
android:versionCode="1"
android:versionName="1.0" >
</manifest>
@@ -1,15 +0,0 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ItemDetailActivity"
tools:ignore="MergeRootFrame" >
<view
class="org.my.cool.Button"
android:id="@+id/MyButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Sign in" />
</FrameLayout>
@@ -1,14 +0,0 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ItemDetailActivity"
tools:ignore="MergeRootFrame" >
<org.my.cool.Button
android:id="@+id/MyButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Sign in" />
</FrameLayout>
@@ -1,29 +0,0 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/item_detail_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ItemDetailActivity"
tools:ignore="MergeRootFrame" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Enter your password" />
<EditText
android:id="@+id/password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="textPassword" />
<Button
android:id="@+id/login"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Sign in" />
</FrameLayout>
@@ -1,29 +0,0 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/frameLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ItemDetailActivity"
tools:ignore="MergeRootFrame" >
<TextView
android:id="@+id/passwordField"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Enter your password" />
<EditText
android:id="@+id/passwordCaption"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="textPassword" />
<Button
android:id="@+id/loginButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Sign in" />
</FrameLayout>
@@ -1,25 +0,0 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ItemDetailActivity"
tools:ignore="MergeRootFrame" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Enter your password" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="textPassword" />
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Sign in" />
</FrameLayout>
@@ -1 +0,0 @@
Plugin should work even if "layout" directory is missing.
@@ -1,29 +0,0 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/item_detail_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ItemDetailActivity"
tools:ignore="MergeRootFrame" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Enter your password" />
<EditText
android:id="@+id/password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="textPassword" />
<Button
android:id="@+id/login"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Sign in" />
</FrameLayout>
@@ -4,6 +4,6 @@ import android.app.Activity
import kotlinx.android.synthetic.main.layout.*
class MyActivity: Activity() {
val button = this.MyButton<caret>
val button = this.<caret>MyButton
}
@@ -4,6 +4,6 @@ import android.app.Fragment
import kotlinx.android.synthetic.main.layout.*
class MyFragment: Fragment() {
val button = this.MyButton<caret>
val button = this.<caret>MyButton
}
@@ -4,6 +4,6 @@ import android.app.Activity
import kotlinx.android.synthetic.main.layout.*
class MyActivity: Activity() {
val button = this.MyButton<caret>
val button = this.<caret>MyButton
}
@@ -4,6 +4,6 @@ import android.app.Fragment
import kotlinx.android.synthetic.main.layout.*
class MyFragment: Fragment() {
val button = this.MyButton<caret>
val button = this.<caret>MyButton
}
@@ -4,7 +4,7 @@ import android.app.Activity
import kotlinx.android.synthetic.main.layout.*
class MyActivity: Activity() {
val button = this.login<caret>
val button = this.<caret>login
val button1 = this.loginButton
}
@@ -4,7 +4,7 @@ import android.app.Fragment
import kotlinx.android.synthetic.main.layout.*
class MyFragment: Fragment() {
val button = this.login<caret>
val button = this.<caret>login
val button1 = this.loginButton
}
@@ -7,6 +7,6 @@ import kotlinx.android.synthetic.main.layout.*
public class MyActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {}
val button = login<caret>
val button = <caret>login
}
@@ -6,6 +6,6 @@ import kotlinx.android.synthetic.main.layout.*
public class MyFragment : Fragment() {
override fun onResume() {}
val button = login<caret>
val button = <caret>login
}
@@ -4,6 +4,6 @@ import android.view.View
import kotlinx.android.synthetic.main.layout.view.*
fun View.a() {
val button = login<caret>
val button = <caret>login
}