cmsdk: Add functional manual test for custom uri publish tile.
Change-Id: I0c4dd084499a06d8e8a9a1045f486655ef1a5c73
This commit is contained in:
parent
32e97d8ace
commit
d848990b8d
@ -18,6 +18,7 @@ package org.cyanogenmod.tests.customtiles;
|
|||||||
|
|
||||||
import android.app.PendingIntent;
|
import android.app.PendingIntent;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
import android.net.Uri;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
|
|
||||||
import cyanogenmod.app.CustomTile;
|
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") {
|
new Test("test publish tile with expanded list") {
|
||||||
public void run() {
|
public void run() {
|
||||||
PendingIntent intent = PendingIntent.getActivity(CMStatusBarTest.this, 0,
|
PendingIntent intent = PendingIntent.getActivity(CMStatusBarTest.this, 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user