From d848990b8d91bb3ead3a75124024cb0c4f9002a1 Mon Sep 17 00:00:00 2001 From: Adnan Begovic Date: Wed, 15 Jul 2015 12:56:15 -0700 Subject: cmsdk: Add functional manual test for custom uri publish tile. Change-Id: I0c4dd084499a06d8e8a9a1045f486655ef1a5c73 --- .../org/cyanogenmod/tests/customtiles/CMStatusBarTest.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/src') 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, -- cgit v1.1