summaryrefslogtreecommitdiff
path: root/android/testData/guiTests
diff options
context:
space:
mode:
authorAlex Ruiz <alruiz@google.com>2014-08-03 23:11:48 -0700
committerAlex Ruiz <alruiz@google.com>2014-08-03 23:17:07 -0700
commit7d3ab2a373211be8a7db1afe2f04eb03de3506f6 (patch)
tree84b06f3ad3d76b383621688576f13666a4b41ee7 /android/testData/guiTests
parent71d78a744caf81a11cad45b9e0840f5ec84a444a (diff)
downloadidea-7d3ab2a373211be8a7db1afe2f04eb03de3506f6.tar.gz
Added GUI test to reproduce issue 74341
This CL: - Introduces FileFixture, which has assertions about a file being open and selected, and having an expected number of code analysis highlights of a given type - Method that waits for a file to be open and selected now also waits till code anaylisis is finished - Added sample project that reproduces issue 74341 - Changes AndroidGradleTestCase#updateGradleVersions to use "recommended" version of Android Gradle plug-in, instead of "minimum supported" version https://code.google.com/p/android/issues/detail?id=74341 Change-Id: Ia5fd3a5fbf8bc516eeddf396bf92588f451682ae
Diffstat (limited to 'android/testData/guiTests')
-rw-r--r--android/testData/guiTests/Issue74341/.gitignore9
-rw-r--r--android/testData/guiTests/Issue74341/.idea/.name1
-rw-r--r--android/testData/guiTests/Issue74341/.idea/compiler.xml23
-rw-r--r--android/testData/guiTests/Issue74341/.idea/copyright/profiles_settings.xml3
-rw-r--r--android/testData/guiTests/Issue74341/.idea/encodings.xml5
-rw-r--r--android/testData/guiTests/Issue74341/.idea/gradle.xml18
-rw-r--r--android/testData/guiTests/Issue74341/.idea/misc.xml7
-rw-r--r--android/testData/guiTests/Issue74341/.idea/modules.xml10
-rw-r--r--android/testData/guiTests/Issue74341/.idea/scopes/scope_settings.xml5
-rw-r--r--android/testData/guiTests/Issue74341/.idea/vcs.xml7
-rw-r--r--android/testData/guiTests/Issue74341/Issue74341.iml19
-rw-r--r--android/testData/guiTests/Issue74341/app/.gitignore1
-rw-r--r--android/testData/guiTests/Issue74341/app/app.iml69
-rw-r--r--android/testData/guiTests/Issue74341/app/build.gradle25
-rw-r--r--android/testData/guiTests/Issue74341/app/proguard-rules.pro17
-rw-r--r--android/testData/guiTests/Issue74341/app/src/androidTest/java/com/android/issue74341/ApplicationTest.java13
-rw-r--r--android/testData/guiTests/Issue74341/app/src/main/AndroidManifest.xml21
-rw-r--r--android/testData/guiTests/Issue74341/app/src/main/java/com/android/issue74341/MyActivity.java36
-rw-r--r--android/testData/guiTests/Issue74341/app/src/main/res/drawable/ic_launcher.xml2
-rw-r--r--android/testData/guiTests/Issue74341/app/src/main/res/layout/activity_my.xml16
-rw-r--r--android/testData/guiTests/Issue74341/app/src/main/res/menu/my.xml9
-rw-r--r--android/testData/guiTests/Issue74341/app/src/main/res/values-w820dp/dimens.xml6
-rw-r--r--android/testData/guiTests/Issue74341/app/src/main/res/values/dimens.xml5
-rw-r--r--android/testData/guiTests/Issue74341/app/src/main/res/values/strings.xml8
-rw-r--r--android/testData/guiTests/Issue74341/app/src/main/res/values/styles.xml8
-rw-r--r--android/testData/guiTests/Issue74341/build.gradle22
-rw-r--r--android/testData/guiTests/Issue74341/gradle.properties18
-rw-r--r--android/testData/guiTests/Issue74341/settings.gradle1
-rw-r--r--android/testData/guiTests/SimpleApplication/app/build.gradle2
-rw-r--r--android/testData/guiTests/SimpleApplication/build.gradle2
30 files changed, 386 insertions, 2 deletions
diff --git a/android/testData/guiTests/Issue74341/.gitignore b/android/testData/guiTests/Issue74341/.gitignore
new file mode 100644
index 00000000000..ddc986d9a38
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/.gitignore
@@ -0,0 +1,9 @@
+.gradle
+/gradle
+/local.properties
+/.idea/workspace.xml
+/.idea/libraries
+.DS_Store
+/build
+gradlew
+gradlew.bat
diff --git a/android/testData/guiTests/Issue74341/.idea/.name b/android/testData/guiTests/Issue74341/.idea/.name
new file mode 100644
index 00000000000..1540fbdf3ed
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/.idea/.name
@@ -0,0 +1 @@
+Issue74341 \ No newline at end of file
diff --git a/android/testData/guiTests/Issue74341/.idea/compiler.xml b/android/testData/guiTests/Issue74341/.idea/compiler.xml
new file mode 100644
index 00000000000..217af471a9e
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/.idea/compiler.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="CompilerConfiguration">
+ <option name="DEFAULT_COMPILER" value="Javac" />
+ <resourceExtensions />
+ <wildcardResourcePatterns>
+ <entry name="!?*.java" />
+ <entry name="!?*.form" />
+ <entry name="!?*.class" />
+ <entry name="!?*.groovy" />
+ <entry name="!?*.scala" />
+ <entry name="!?*.flex" />
+ <entry name="!?*.kt" />
+ <entry name="!?*.clj" />
+ </wildcardResourcePatterns>
+ <annotationProcessing>
+ <profile default="true" name="Default" enabled="false">
+ <processorPath useClasspath="true" />
+ </profile>
+ </annotationProcessing>
+ </component>
+</project>
+
diff --git a/android/testData/guiTests/Issue74341/.idea/copyright/profiles_settings.xml b/android/testData/guiTests/Issue74341/.idea/copyright/profiles_settings.xml
new file mode 100644
index 00000000000..e7bedf3377d
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/.idea/copyright/profiles_settings.xml
@@ -0,0 +1,3 @@
+<component name="CopyrightManager">
+ <settings default="" />
+</component> \ No newline at end of file
diff --git a/android/testData/guiTests/Issue74341/.idea/encodings.xml b/android/testData/guiTests/Issue74341/.idea/encodings.xml
new file mode 100644
index 00000000000..e206d70d859
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/.idea/encodings.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
+</project>
+
diff --git a/android/testData/guiTests/Issue74341/.idea/gradle.xml b/android/testData/guiTests/Issue74341/.idea/gradle.xml
new file mode 100644
index 00000000000..736c7b5cffc
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/.idea/gradle.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="GradleSettings">
+ <option name="linkedExternalProjectsSettings">
+ <GradleProjectSettings>
+ <option name="distributionType" value="DEFAULT_WRAPPED" />
+ <option name="externalProjectPath" value="$PROJECT_DIR$" />
+ <option name="modules">
+ <set>
+ <option value="$PROJECT_DIR$" />
+ <option value="$PROJECT_DIR$/app" />
+ </set>
+ </option>
+ </GradleProjectSettings>
+ </option>
+ </component>
+</project>
+
diff --git a/android/testData/guiTests/Issue74341/.idea/misc.xml b/android/testData/guiTests/Issue74341/.idea/misc.xml
new file mode 100644
index 00000000000..518ed0687d6
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/.idea/misc.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" assert-keyword="true" jdk-15="true" project-jdk-name="JDK" project-jdk-type="JavaSDK">
+ <output url="file://$PROJECT_DIR$/build/classes" />
+ </component>
+</project>
+
diff --git a/android/testData/guiTests/Issue74341/.idea/modules.xml b/android/testData/guiTests/Issue74341/.idea/modules.xml
new file mode 100644
index 00000000000..613dd954d27
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/.idea/modules.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="ProjectModuleManager">
+ <modules>
+ <module fileurl="file://$PROJECT_DIR$/Issue74341.iml" filepath="$PROJECT_DIR$/Issue74341.iml" />
+ <module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
+ </modules>
+ </component>
+</project>
+
diff --git a/android/testData/guiTests/Issue74341/.idea/scopes/scope_settings.xml b/android/testData/guiTests/Issue74341/.idea/scopes/scope_settings.xml
new file mode 100644
index 00000000000..922003b8433
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/.idea/scopes/scope_settings.xml
@@ -0,0 +1,5 @@
+<component name="DependencyValidationManager">
+ <state>
+ <option name="SKIP_IMPORT_STATEMENTS" value="false" />
+ </state>
+</component> \ No newline at end of file
diff --git a/android/testData/guiTests/Issue74341/.idea/vcs.xml b/android/testData/guiTests/Issue74341/.idea/vcs.xml
new file mode 100644
index 00000000000..def6a6a1845
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/.idea/vcs.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="VcsDirectoryMappings">
+ <mapping directory="" vcs="" />
+ </component>
+</project>
+
diff --git a/android/testData/guiTests/Issue74341/Issue74341.iml b/android/testData/guiTests/Issue74341/Issue74341.iml
new file mode 100644
index 00000000000..0bb6048ae08
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/Issue74341.iml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
+ <component name="FacetManager">
+ <facet type="java-gradle" name="Java-Gradle">
+ <configuration>
+ <option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" />
+ </configuration>
+ </facet>
+ </component>
+ <component name="NewModuleRootManager" inherit-compiler-output="true">
+ <exclude-output />
+ <content url="file://$MODULE_DIR$">
+ <excludeFolder url="file://$MODULE_DIR$/.gradle" />
+ </content>
+ <orderEntry type="inheritedJdk" />
+ <orderEntry type="sourceFolder" forTests="false" />
+ </component>
+</module>
+
diff --git a/android/testData/guiTests/Issue74341/app/.gitignore b/android/testData/guiTests/Issue74341/app/.gitignore
new file mode 100644
index 00000000000..796b96d1c40
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/android/testData/guiTests/Issue74341/app/app.iml b/android/testData/guiTests/Issue74341/app/app.iml
new file mode 100644
index 00000000000..6b7cc8b6328
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/app/app.iml
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="Issue74341" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
+ <component name="FacetManager">
+ <facet type="android-gradle" name="Android-Gradle">
+ <configuration>
+ <option name="GRADLE_PROJECT_PATH" value=":app" />
+ </configuration>
+ </facet>
+ <facet type="android" name="Android">
+ <configuration>
+ <option name="SELECTED_BUILD_VARIANT" value="debug" />
+ <option name="ASSEMBLE_TASK_NAME" value="assembleDebug" />
+ <option name="COMPILE_JAVA_TASK_NAME" value="compileDebugJava" />
+ <option name="ASSEMBLE_TEST_TASK_NAME" value="assembleDebugTest" />
+ <option name="SOURCE_GEN_TASK_NAME" value="generateDebugSources" />
+ <option name="ALLOW_USER_CONFIGURATION" value="false" />
+ <option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" />
+ <option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" />
+ <option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res" />
+ <option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" />
+ </configuration>
+ </facet>
+ </component>
+ <component name="NewModuleRootManager" inherit-compiler-output="false">
+ <output url="file://$MODULE_DIR$/build/intermediates/classes/debug" />
+ <exclude-output />
+ <content url="file://$MODULE_DIR$">
+ <sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/debug" isTestSource="false" generated="true" />
+ <sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/debug" isTestSource="false" generated="true" />
+ <sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
+ <sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/debug" isTestSource="false" generated="true" />
+ <sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/debug" type="java-resource" />
+ <sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/test/debug" isTestSource="true" generated="true" />
+ <sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/test/debug" isTestSource="true" generated="true" />
+ <sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/test/debug" isTestSource="true" generated="true" />
+ <sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/test/debug" isTestSource="true" generated="true" />
+ <sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/test/debug" type="java-test-resource" />
+ <sourceFolder url="file://$MODULE_DIR$/src/debug/res" type="java-resource" />
+ <sourceFolder url="file://$MODULE_DIR$/src/debug/resources" type="java-resource" />
+ <sourceFolder url="file://$MODULE_DIR$/src/debug/aidl" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/src/debug/assets" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/src/debug/java" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/src/debug/jni" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/src/debug/rs" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/src/main/res" type="java-resource" />
+ <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
+ <sourceFolder url="file://$MODULE_DIR$/src/main/aidl" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/src/main/assets" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/src/main/jni" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
+ <sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
+ <sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" />
+ <sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" isTestSource="true" />
+ <sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
+ <sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" />
+ <sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
+ <excludeFolder url="file://$MODULE_DIR$/build/intermediates" />
+ <excludeFolder url="file://$MODULE_DIR$/build/outputs" />
+ </content>
+ <orderEntry type="jdk" jdkName="Android API 19 Platform" jdkType="Android SDK" />
+ <orderEntry type="sourceFolder" forTests="false" />
+ <orderEntry type="library" exported="" name="appcompat-v7-20.0.0" level="project" />
+ <orderEntry type="library" exported="" name="support-annotations-20.0.0" level="project" />
+ <orderEntry type="library" exported="" name="support-v4-20.0.0" level="project" />
+ </component>
+</module>
+
diff --git a/android/testData/guiTests/Issue74341/app/build.gradle b/android/testData/guiTests/Issue74341/app/build.gradle
new file mode 100644
index 00000000000..5a9cd76040d
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/app/build.gradle
@@ -0,0 +1,25 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 19
+ buildToolsVersion "19.1.0"
+
+ defaultConfig {
+ applicationId "com.android.issue74341"
+ minSdkVersion 13
+ targetSdkVersion 19
+ versionCode 1
+ versionName "1.0"
+ }
+ buildTypes {
+ release {
+ runProguard false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+ compile 'com.android.support:appcompat-v7:20.0.0'
+}
diff --git a/android/testData/guiTests/Issue74341/app/proguard-rules.pro b/android/testData/guiTests/Issue74341/app/proguard-rules.pro
new file mode 100644
index 00000000000..e2f6a3ded07
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/app/proguard-rules.pro
@@ -0,0 +1,17 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Applications/adt-bundle-mac-x86_64-20131030/sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
diff --git a/android/testData/guiTests/Issue74341/app/src/androidTest/java/com/android/issue74341/ApplicationTest.java b/android/testData/guiTests/Issue74341/app/src/androidTest/java/com/android/issue74341/ApplicationTest.java
new file mode 100644
index 00000000000..c3be481f6c4
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/app/src/androidTest/java/com/android/issue74341/ApplicationTest.java
@@ -0,0 +1,13 @@
+package com.android.issue74341;
+
+import android.app.Application;
+import android.test.ApplicationTestCase;
+
+/**
+ * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
+ */
+public class ApplicationTest extends ApplicationTestCase<Application> {
+ public ApplicationTest() {
+ super(Application.class);
+ }
+} \ No newline at end of file
diff --git a/android/testData/guiTests/Issue74341/app/src/main/AndroidManifest.xml b/android/testData/guiTests/Issue74341/app/src/main/AndroidManifest.xml
new file mode 100644
index 00000000000..a5bf3b99a31
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/app/src/main/AndroidManifest.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.android.issue74341" >
+
+ <application
+ android:allowBackup="true"
+ android:icon="@drawable/ic_launcher"
+ android:label="@string/app_name"
+ android:theme="@style/AppTheme" >
+ <activity
+ android:name=".MyActivity"
+ android:label="@string/app_name" >
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ </application>
+
+</manifest>
diff --git a/android/testData/guiTests/Issue74341/app/src/main/java/com/android/issue74341/MyActivity.java b/android/testData/guiTests/Issue74341/app/src/main/java/com/android/issue74341/MyActivity.java
new file mode 100644
index 00000000000..cf8c611cdab
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/app/src/main/java/com/android/issue74341/MyActivity.java
@@ -0,0 +1,36 @@
+package com.android.issue74341;
+
+import android.support.v7.app.ActionBarActivity;
+import android.os.Bundle;
+import android.view.Menu;
+import android.view.MenuItem;
+
+
+public class MyActivity extends ActionBarActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_my);
+ }
+
+
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ // Inflate the menu; this adds items to the action bar if it is present.
+ getMenuInflater().inflate(R.menu.my, menu);
+ return true;
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ // Handle action bar item clicks here. The action bar will
+ // automatically handle clicks on the Home/Up button, so long
+ // as you specify a parent activity in AndroidManifest.xml.
+ int id = item.getItemId();
+ if (id == R.id.action_settings) {
+ return true;
+ }
+ return super.onOptionsItemSelected(item);
+ }
+}
diff --git a/android/testData/guiTests/Issue74341/app/src/main/res/drawable/ic_launcher.xml b/android/testData/guiTests/Issue74341/app/src/main/res/drawable/ic_launcher.xml
new file mode 100644
index 00000000000..bebd9834a0e
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/app/src/main/res/drawable/ic_launcher.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="utf-8"?>
+<color xmlns:android="http://schemas.android.com/apk/res/android" android:color="#ff0000" />
diff --git a/android/testData/guiTests/Issue74341/app/src/main/res/layout/activity_my.xml b/android/testData/guiTests/Issue74341/app/src/main/res/layout/activity_my.xml
new file mode 100644
index 00000000000..c17166f4d34
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/app/src/main/res/layout/activity_my.xml
@@ -0,0 +1,16 @@
+<RelativeLayout 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"
+ android:paddingLeft="@dimen/activity_horizontal_margin"
+ android:paddingRight="@dimen/activity_horizontal_margin"
+ android:paddingTop="@dimen/activity_vertical_margin"
+ android:paddingBottom="@dimen/activity_vertical_margin"
+ tools:context=".MyActivity">
+
+ <TextView
+ android:text="@string/hello_world"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" />
+
+</RelativeLayout>
diff --git a/android/testData/guiTests/Issue74341/app/src/main/res/menu/my.xml b/android/testData/guiTests/Issue74341/app/src/main/res/menu/my.xml
new file mode 100644
index 00000000000..f1fa1552e1f
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/app/src/main/res/menu/my.xml
@@ -0,0 +1,9 @@
+<menu xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ tools:context=".MyActivity" >
+ <item android:id="@+id/action_settings"
+ android:title="@string/action_settings"
+ android:orderInCategory="100"
+ app:showAsAction="never" />
+</menu>
diff --git a/android/testData/guiTests/Issue74341/app/src/main/res/values-w820dp/dimens.xml b/android/testData/guiTests/Issue74341/app/src/main/res/values-w820dp/dimens.xml
new file mode 100644
index 00000000000..63fc8164446
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/app/src/main/res/values-w820dp/dimens.xml
@@ -0,0 +1,6 @@
+<resources>
+ <!-- Example customization of dimensions originally defined in res/values/dimens.xml
+ (such as screen margins) for screens with more than 820dp of available width. This
+ would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
+ <dimen name="activity_horizontal_margin">64dp</dimen>
+</resources>
diff --git a/android/testData/guiTests/Issue74341/app/src/main/res/values/dimens.xml b/android/testData/guiTests/Issue74341/app/src/main/res/values/dimens.xml
new file mode 100644
index 00000000000..47c82246738
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/app/src/main/res/values/dimens.xml
@@ -0,0 +1,5 @@
+<resources>
+ <!-- Default screen margins, per the Android Design guidelines. -->
+ <dimen name="activity_horizontal_margin">16dp</dimen>
+ <dimen name="activity_vertical_margin">16dp</dimen>
+</resources>
diff --git a/android/testData/guiTests/Issue74341/app/src/main/res/values/strings.xml b/android/testData/guiTests/Issue74341/app/src/main/res/values/strings.xml
new file mode 100644
index 00000000000..ca91bf62a5b
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/app/src/main/res/values/strings.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string name="app_name">Issue74341</string>
+ <string name="hello_world">Hello world!</string>
+ <string name="action_settings">Settings</string>
+
+</resources>
diff --git a/android/testData/guiTests/Issue74341/app/src/main/res/values/styles.xml b/android/testData/guiTests/Issue74341/app/src/main/res/values/styles.xml
new file mode 100644
index 00000000000..766ab993048
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/app/src/main/res/values/styles.xml
@@ -0,0 +1,8 @@
+<resources>
+
+ <!-- Base application theme. -->
+ <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
+ <!-- Customize your theme here. -->
+ </style>
+
+</resources>
diff --git a/android/testData/guiTests/Issue74341/build.gradle b/android/testData/guiTests/Issue74341/build.gradle
new file mode 100644
index 00000000000..e63466dbd1b
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/build.gradle
@@ -0,0 +1,22 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ jcenter()
+ if (System.getenv("MAVEN_URL") != null) {
+ maven {url System.getenv("MAVEN_URL")}
+ }
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:0.12.2'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ }
+}
diff --git a/android/testData/guiTests/Issue74341/gradle.properties b/android/testData/guiTests/Issue74341/gradle.properties
new file mode 100644
index 00000000000..5d08ba75bb9
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/gradle.properties
@@ -0,0 +1,18 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Settings specified in this file will override any Gradle settings
+# configured through the IDE.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+# Default value: -Xmx10248m -XX:MaxPermSize=256m
+# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true \ No newline at end of file
diff --git a/android/testData/guiTests/Issue74341/settings.gradle b/android/testData/guiTests/Issue74341/settings.gradle
new file mode 100644
index 00000000000..e7b4def49cb
--- /dev/null
+++ b/android/testData/guiTests/Issue74341/settings.gradle
@@ -0,0 +1 @@
+include ':app'
diff --git a/android/testData/guiTests/SimpleApplication/app/build.gradle b/android/testData/guiTests/SimpleApplication/app/build.gradle
index 2ef09e660a5..caff6fb9e91 100644
--- a/android/testData/guiTests/SimpleApplication/app/build.gradle
+++ b/android/testData/guiTests/SimpleApplication/app/build.gradle
@@ -5,7 +5,7 @@ android {
buildToolsVersion "19.1.0"
defaultConfig {
- applicationId "google.simpleapplication"
+ applicationId "com.android.simple.application"
minSdkVersion 19
targetSdkVersion 19
versionCode 1
diff --git a/android/testData/guiTests/SimpleApplication/build.gradle b/android/testData/guiTests/SimpleApplication/build.gradle
index 73001ab5f5f..e63466dbd1b 100644
--- a/android/testData/guiTests/SimpleApplication/build.gradle
+++ b/android/testData/guiTests/SimpleApplication/build.gradle
@@ -8,7 +8,7 @@ buildscript {
}
}
dependencies {
- classpath 'com.android.tools.build:gradle:0.12.0'
+ classpath 'com.android.tools.build:gradle:0.12.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files