Merge "Add a test for Tile.get/setSubtitle()" into qt-dev
diff --git a/tests/app/src/android/app/cts/TileServiceTest.java b/tests/app/src/android/app/cts/TileServiceTest.java
index cd40d34..ee67ffb 100644
--- a/tests/app/src/android/app/cts/TileServiceTest.java
+++ b/tests/app/src/android/app/cts/TileServiceTest.java
@@ -104,6 +104,18 @@
assertEquals(TestTileService.ICON_ID, tile.getIcon().getResId());
}
+ public void testTile_hasCorrectSubtitle() throws Exception {
+ if (!TileService.isQuickSettingsSupported()) return;
+ startTileService();
+ expandSettings(true);
+ waitForListening(true);
+
+ Tile tile = mTileService.getQsTile();
+ tile.setSubtitle("test_subtitle");
+ tile.updateTile();
+ assertEquals("test_subtitle", tile.getSubtitle());
+ }
+
public void testShowDialog() throws Exception {
if (!TileService.isQuickSettingsSupported()) return;
Looper.prepare();