[MediaPlayer][TCSACR-135] Modify Roi precondition 12/175112/1
authorHaesu Gwon <haesu.gwon@samsung.com>
Thu, 22 Mar 2018 08:53:21 +0000 (17:53 +0900)
committerHaesu Gwon <haesu.gwon@samsung.com>
Mon, 9 Apr 2018 02:15:43 +0000 (02:15 +0000)
Change-Id: Ia81da5e2d9618f0f72156ff113d2c8cfcb9d0ff6
Signed-off-by: Haesu Gwon <haesu.gwon@samsung.com>
(cherry picked from commit cdf84e8ec45a003f61d2b433ea259e5bf0c75d37)

tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/TSMediaStreamSource.WithPlayer.cs [changed mode: 0755->0644]
tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/TSMediaStreamSource.cs [changed mode: 0755->0644]
tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/TSPlayer.cs [changed mode: 0755->0644]
tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/TSPlayerDisplaySettings.cs [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 3407b3a..6bfb594
@@ -163,6 +163,7 @@ namespace Tizen.Multimedia.Tests
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PDV")]
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
+        [Property("COVPARAM", "AudioMediaFormat")]
         public void MediaStreamSource_NOT_ASSIGNED_TO_MULTIPLE()
         {
             var player = GetIdlePlayer();
old mode 100755 (executable)
new mode 100644 (file)
index ce62318..df81fb9
@@ -57,6 +57,7 @@ namespace Tizen.Multimedia.Tests
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "MEX")]
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
+        [Property("COVPARAM", "AudioMediaFormat, VideoMediaFormat")]
         public void MediaStreamSource_THROWS_IF_PARAM_NULL()
         {
             Assert.That(() => new MediaStreamSource(null, null), Throws.ArgumentNullException);
old mode 100755 (executable)
new mode 100644 (file)
index 342cab6..d59be76
@@ -231,7 +231,7 @@ namespace Tizen.Multimedia.Tests
         [Test]
         [Category("P1")]
         [Description("Volume set test")]
-        [Property("SPEC", "Tizen.Multimedia.TestPlayer.Volume A")]
+        [Property("SPEC", "Tizen.Multimedia.Player.Volume A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PRW")]
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
@@ -247,7 +247,7 @@ namespace Tizen.Multimedia.Tests
         [Test]
         [Category("P1")]
         [Description("Volume with the min value")]
-        [Property("SPEC", "Tizen.Multimedia.TestPlayer.Volume A")]
+        [Property("SPEC", "Tizen.Multimedia.Player.Volume A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PMIN")]
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
@@ -263,7 +263,7 @@ namespace Tizen.Multimedia.Tests
         [Test]
         [Category("P1")]
         [Description("Volume with the max value")]
-        [Property("SPEC", "Tizen.Multimedia.TestPlayer.Volume A")]
+        [Property("SPEC", "Tizen.Multimedia.Player.Volume A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PMAX")]
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
@@ -279,7 +279,7 @@ namespace Tizen.Multimedia.Tests
         [Test]
         [Category("P2")]
         [Description("Volume throws if value is not in the range")]
-        [Property("SPEC", "Tizen.Multimedia.TestPlayer.Volume A")]
+        [Property("SPEC", "Tizen.Multimedia.Player.Volume A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PEX")]
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
@@ -295,7 +295,7 @@ namespace Tizen.Multimedia.Tests
         [Test]
         [Category("P1")]
         [Description("Default AudioLatencyMode is Mid")]
-        [Property("SPEC", "Tizen.Multimedia.TestPlayer.AudioLatencyMode A")]
+        [Property("SPEC", "Tizen.Multimedia.Player.AudioLatencyMode A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PDV")]
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
@@ -307,7 +307,7 @@ namespace Tizen.Multimedia.Tests
         [Test]
         [Category("P1")]
         [Description("AudioLatencyMode set test")]
-        [Property("SPEC", "Tizen.Multimedia.TestPlayer.AudioLatencyMode A")]
+        [Property("SPEC", "Tizen.Multimedia.Player.AudioLatencyMode A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PCST")]
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
@@ -323,7 +323,7 @@ namespace Tizen.Multimedia.Tests
         [Test]
         [Category("P2")]
         [Description("AudioLatencyMode throws if the specified value is invalid")]
-        [Property("SPEC", "Tizen.Multimedia.TestPlayer.AudioLatencyMode A")]
+        [Property("SPEC", "Tizen.Multimedia.Player.AudioLatencyMode A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "MEX")]
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
@@ -339,7 +339,7 @@ namespace Tizen.Multimedia.Tests
         [Test]
         [Category("P1")]
         [Description("Default Muted value is false")]
-        [Property("SPEC", "Tizen.Multimedia.TestPlayer.Muted A")]
+        [Property("SPEC", "Tizen.Multimedia.Player.Muted A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PDV")]
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
@@ -351,7 +351,7 @@ namespace Tizen.Multimedia.Tests
         [Test]
         [Category("P1")]
         [Description("Muted set test")]
-        [Property("SPEC", "Tizen.Multimedia.TestPlayer.Muted A")]
+        [Property("SPEC", "Tizen.Multimedia.Player.Muted A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PRW")]
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
@@ -370,7 +370,7 @@ namespace Tizen.Multimedia.Tests
         [Test]
         [Category("P1")]
         [Description("Default IsLooping value is false")]
-        [Property("SPEC", "Tizen.Multimedia.TestPlayer.IsLooping A")]
+        [Property("SPEC", "Tizen.Multimedia.Player.IsLooping A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PDV")]
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
@@ -382,7 +382,7 @@ namespace Tizen.Multimedia.Tests
         [Test]
         [Category("P1")]
         [Description("IsLooping set test")]
-        [Property("SPEC", "Tizen.Multimedia.TestPlayer.IsLooping A")]
+        [Property("SPEC", "Tizen.Multimedia.Player.IsLooping A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PCST")]
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
@@ -399,7 +399,7 @@ namespace Tizen.Multimedia.Tests
         [Test]
         [Category("P1")]
         [Description("AudioEffect default value")]
-        [Property("SPEC", "Tizen.Multimedia.TestPlayer.AudioEffect M")]
+        [Property("SPEC", "Tizen.Multimedia.Player.AudioEffect M")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PDV")]
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
@@ -432,7 +432,7 @@ namespace Tizen.Multimedia.Tests
         [Test]
         [Category("P1")]
         [Description("Cookie default value")]
-        [Property("SPEC", "Tizen.Multimedia.TestPlayer.Cookie A")]
+        [Property("SPEC", "Tizen.Multimedia.Player.Cookie A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PDV")]
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
@@ -444,7 +444,7 @@ namespace Tizen.Multimedia.Tests
         [Test]
         [Category("P1")]
         [Description("Cookie set")]
-        [Property("SPEC", "Tizen.Multimedia.TestPlayer.Cookie A")]
+        [Property("SPEC", "Tizen.Multimedia.Player.Cookie A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PCST")]
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
@@ -460,7 +460,7 @@ namespace Tizen.Multimedia.Tests
         [Test]
         [Category("P2")]
         [Description("Cookie to set throws if the specified value is null")]
-        [Property("SPEC", "Tizen.Multimedia.TestPlayer.Cookie A")]
+        [Property("SPEC", "Tizen.Multimedia.Player.Cookie A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "MEX")]
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
@@ -489,7 +489,7 @@ namespace Tizen.Multimedia.Tests
         [Test]
         [Category("P1")]
         [Description("UserAgent default value")]
-        [Property("SPEC", "Tizen.Multimedia.TestPlayer.UserAgent A")]
+        [Property("SPEC", "Tizen.Multimedia.Player.UserAgent A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PDV")]
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
@@ -501,7 +501,7 @@ namespace Tizen.Multimedia.Tests
         [Test]
         [Category("P1")]
         [Description("UserAgent set")]
-        [Property("SPEC", "Tizen.Multimedia.TestPlayer.UserAgent A")]
+        [Property("SPEC", "Tizen.Multimedia.Player.UserAgent A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PCST")]
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
@@ -517,7 +517,7 @@ namespace Tizen.Multimedia.Tests
         [Test]
         [Category("P2")]
         [Description("UserAgent to set throws if the specified value is null")]
-        [Property("SPEC", "Tizen.Multimedia.TestPlayer.UserAgent A")]
+        [Property("SPEC", "Tizen.Multimedia.Player.UserAgent A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "MEX")]
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
@@ -690,7 +690,7 @@ namespace Tizen.Multimedia.Tests
         [Test]
         [Category("P1")]
         [Description("SetSubtitle test")]
-        [Property("SPEC", "Tizen.Multimedia.TestPlayer.SetSubtitle M")]
+        [Property("SPEC", "Tizen.Multimedia.Player.SetSubtitle M")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "MR")]
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
@@ -703,7 +703,7 @@ namespace Tizen.Multimedia.Tests
         [Test]
         [Category("P2")]
         [Description("SetSubtitle throws if the specified path is null")]
-        [Property("SPEC", "Tizen.Multimedia.TestPlayer.SetSubtitle M")]
+        [Property("SPEC", "Tizen.Multimedia.Player.SetSubtitle M")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "MEX")]
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
@@ -715,7 +715,7 @@ namespace Tizen.Multimedia.Tests
         [Test]
         [Category("P2")]
         [Description("SetSubtitle throws if the path is invalid.")]
-        [Property("SPEC", "Tizen.Multimedia.TestPlayer.SetSubtitle M")]
+        [Property("SPEC", "Tizen.Multimedia.Player.SetSubtitle M")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "MEX")]
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
old mode 100755 (executable)
new mode 100644 (file)
index eb58870..a3d9f5c
@@ -60,19 +60,18 @@ namespace Tizen.Multimedia.Tests
         }
 
         [Test]
-        [Category("P2")]
-        [Description("Throws if mode is not set to roi")]
+        [Category("P1")]
+        [Description("Check it does not throw")]
         [Property("SPEC", "Tizen.Multimedia.PlayerDisplaySettings.SetRoi M")]
         [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MEX")]
-        [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
-        public static void SetRoi_THROWS_IF_MODE_NOT_ROI()
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+        public static void SetRoi_First_CHECK()
         {
             var player = new Player();
-            player.DisplaySettings.Mode = PlayerDisplayMode.OriginalSize;
+            player.DisplaySettings.SetRoi(new Rectangle(0, 0, 100, 100));
 
-            Assert.That(() => player.DisplaySettings.SetRoi(new Rectangle(0, 0, 100, 100)),
-                Throws.InvalidOperationException);
+            Assert.That(() => player.DisplaySettings.Mode = PlayerDisplayMode.Roi, Throws.Nothing);
         }
 
         [Test]