@@ -110,6 +110,26 @@ private Q_SLOTS:
110 QCOMPARE(props["menuObjectPath"].toString(), QString("/com/canonical/indicator/fake1/test2"));
110 QCOMPARE(props["menuObjectPath"].toString(), QString("/com/canonical/indicator/fake1/test2"));
114+ * Test switching the indicator profile data
116+ void testPluginInterfaceProfileSwitch()
118+ IndicatorsManager manager;
119+ manager.setProfile("test1");
122+ Indicator::Ptr indicator = manager.indicator("indicator-fake1");
123+ QVERIFY(indicator ? true : false);
125+ QVariantMap props = indicator->indicatorProperties().toMap();
126+ QCOMPARE(props["menuObjectPath"].toString(), QString("/com/canonical/indicator/fake1/test1"));
128+ manager.setProfile("test2");
129+ props = indicator->indicatorProperties().toMap();
130+ QCOMPARE(props["menuObjectPath"].toString(), QString("/com/canonical/indicator/fake1/test2"));
114 * Test if a new plugin object is create for each different plugin
134 * Test if a new plugin object is create for each different plugin