cmsdk: Add functional manual test for custom uri publish tile.

Change-Id: I0c4dd084499a06d8e8a9a1045f486655ef1a5c73
This commit is contained in:
Adnan Begovic 2015-07-15 12:56:15 -07:00
parent 32e97d8ace
commit d848990b8d

View File

@ -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,