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,