public static string MobileProfile = "mobile";
public static string WearableProfile = "wearable";
+ public static string TvProfile = "tv";
private static string _profileKey = "tizen.org/feature/profile";
private static string _profile = string.Empty;
[Property("AUTHOR", "Qian Sui, qian.sui@samsung.com")]
public void SetTheme_CHECK_METHOD()
{
- string themeFilePath = "/usr/share/elm-sharp/elm-sharp-theme.edj";
- try
+ if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) == 0)
{
- Elementary.SetTheme(themeFilePath);
+ string themeFilePath = "/usr/share/elm-sharp/elm-sharp-theme.edj";
+ try
+ {
+ Elementary.SetTheme(themeFilePath);
+ }
+ catch (Exception ex)
+ {
+ Assert.IsTrue(false, "Elementary SetTheme method failed: " + ex.ToString());
+ }
}
- catch (Exception ex)
+ else
{
- Assert.IsTrue(false, "Elementary SetTheme method failed: " + ex.ToString());
+ Assert.Pass("Not supported");
}
}
Assert.AreEqual(1.5, Elementary.Scale, "The getting Scale should be 1.5.");
}
}
-}
\ No newline at end of file
+}