[MediaPlayer][ACR-138] add api to set audio-only mode 83/174583/5
authorNAMJEONGYOON <just.nam@samsung.com>
Tue, 3 Apr 2018 06:10:07 +0000 (15:10 +0900)
committerNAMJEONGYOON <just.nam@samsung.com>
Thu, 3 May 2018 05:53:18 +0000 (14:53 +0900)
Change-Id: I8a3ee7d0ff04e27aff732f9794d9af5099de33d5

tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/TSPlayer.cs

index d59be76..be02d91 100644 (file)
@@ -290,6 +290,44 @@ namespace Tizen.Multimedia.Tests
         }
         #endregion
 
+        #region AudioOnly
+
+        [Test]
+        [Category("P1")]
+        [Description("Default IsAudioOnly value is false")]
+        [Property("SPEC", "Tizen.Multimedia.Player.IsAudioOnly A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PDV")]
+        [Property("AUTHOR", "Jeongyoon Nam, just.nam@samsung.com")]
+        public async Task IsAudioOnly_DEFAULT()
+        {
+            var player = await GetPreparedPlayer(
+                    new MediaUriSource(Constants.VideoFilePath), DefaultDisplay);
+
+            Assert.That(player.IsAudioOnly, Is.False);
+
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("check whether IsAudioOnly is readable and writable")]
+        [Property("SPEC", "Tizen.Multimedia.Player.IsAudioOnly A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Jeongyoon Nam, just.nam@samsung.com")]
+        public async Task IsAudioOnly_SET_GET()
+        {
+            var player = await GetPreparedPlayer(
+                    new MediaUriSource(Constants.VideoFilePath), DefaultDisplay);
+
+            const bool newValue = true;
+
+            player.IsAudioOnly = newValue;
+            Assert.That(player.IsAudioOnly, Is.EqualTo(newValue));
+        }
+
+        #endregion
+
         #region AudioLatencyMode
 
         [Test]