aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authorAdnan Begovic <adnan@cyngn.com>2015-07-15 12:56:15 -0700
committerAdnan Begovic <adnan@cyngn.com>2015-07-15 12:56:15 -0700
commitd848990b8d91bb3ead3a75124024cb0c4f9002a1 (patch)
treeb7f388eb0cd775e5e3e4eef2cd2a807c6cc3fef9 /tests/src
parent32e97d8aceb5e634186d45a640912f5a9c9df6bf (diff)
downloadvendor_cmsdk-d848990b8d91bb3ead3a75124024cb0c4f9002a1.zip
vendor_cmsdk-d848990b8d91bb3ead3a75124024cb0c4f9002a1.tar.gz
vendor_cmsdk-d848990b8d91bb3ead3a75124024cb0c4f9002a1.tar.bz2
cmsdk: Add functional manual test for custom uri publish tile.
Change-Id: I0c4dd084499a06d8e8a9a1045f486655ef1a5c73
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/org/cyanogenmod/tests/customtiles/CMStatusBarTest.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/src/org/cyanogenmod/tests/customtiles/CMStatusBarTest.java b/tests/src/org/cyanogenmod/tests/customtiles/CMStatusBarTest.java
index 5a0d7e7..8a0979f 100644
--- a/tests/src/org/cyanogenmod/tests/customtiles/CMStatusBarTest.java
+++ b/tests/src/org/cyanogenmod/tests/customtiles/CMStatusBarTest.java
@@ -18,6 +18,7 @@ package org.cyanogenmod.tests.customtiles;
import android.app.PendingIntent;
import android.content.Intent;
+import android.net.Uri;
import android.os.Handler;
import cyanogenmod.app.CustomTile;
@@ -124,6 +125,17 @@ public class CMStatusBarTest extends TestActivity {
}
},
+ new Test("test publish tile with custom uri") {
+ public void run() {
+ CustomTile customTile = new CustomTile.Builder(CMStatusBarTest.this)
+ .setIcon(R.drawable.ic_launcher)
+ .setOnClickUri(Uri.parse("http://tasker.dinglisch.net"))
+ .build();
+ CMStatusBarManager.getInstance(CMStatusBarTest.this)
+ .publishTile(CUSTOM_TILE_SETTINGS_ID, customTile);
+ }
+ },
+
new Test("test publish tile with expanded list") {
public void run() {
PendingIntent intent = PendingIntent.getActivity(CMStatusBarTest.this, 0,