[MediaPlayer][Non-ACR] fix the position to larger unit 27/190627/2
authornam <just.nam@samsung.com>
Thu, 4 Oct 2018 08:12:26 +0000 (17:12 +0900)
committernam <just.nam@samsung.com>
Thu, 4 Oct 2018 09:38:44 +0000 (18:38 +0900)
Change-Id: I26af0d1a36bfe304e0bad5b783a6c47c6098b51c

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

index 87c3f15..759166a 100755 (executable)
@@ -853,7 +853,7 @@ namespace Tizen.Multimedia.Tests
         [Test]
         [Category("P1")]
         [Description("GetPlayPosition test")]
-        [Property("SPEC", "Tizen.Multimedia.Player.GetPlayPosition M")]
+        [Property("SPEC", "Tizen.Multimedia.Player.GetPlayPositionNanoseconds M")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "MR")]
         [Property("AUTHOR", "Jeongyoon Nam, just.nam@samsung.com")]
@@ -863,17 +863,17 @@ namespace Tizen.Multimedia.Tests
 
             Assert.That(player.GetPlayPositionNanoseconds(), Is.Zero);
 
-            await player.SetPlayPositionNanosecondsAsync(5000, true);
+            await player.SetPlayPositionNanosecondsAsync(100000000, true);
 
-            Assert.That(player.GetPlayPositionNanoseconds(), Is.EqualTo(5000));
+            Assert.That(player.GetPlayPositionNanoseconds(), Is.EqualTo(100000000));
 
-            await player.SetPlayPositionNanosecondsAsync(15000, true);
+            await player.SetPlayPositionNanosecondsAsync(500000000, true);
 
-            Assert.That(player.GetPlayPositionNanoseconds(), Is.EqualTo(15000));
+            Assert.That(player.GetPlayPositionNanoseconds(), Is.EqualTo(500000000));
         }
 
         [Test]
-        [Category("P1")]
+        [Category("P2")]
         [Description("Any attempt to access the GetPlayPositionNanoseconds if the player has been disposed of")]
         [Property("SPEC", "Tizen.Multimedia.Player.GetPlayPositionNanoseconds M")]
         [Property("SPEC_URL", "-")]
@@ -910,11 +910,11 @@ namespace Tizen.Multimedia.Tests
         {
             var player = await GetPreparedPlayer();
 
-            const int targetPos = 700000;
+            const int targetPos = 7000000;
 
             await player.SetPlayPositionNanosecondsAsync(targetPos, false);
 
-            Assert.That(Math.Abs(targetPos - player.GetPlayPositionNanoseconds()), Is.LessThan(100000),
+            Assert.That(Math.Abs(targetPos - player.GetPlayPositionNanoseconds()), Is.LessThan(1000000),
                 "The difference is too big.");
         }
 
@@ -929,7 +929,7 @@ namespace Tizen.Multimedia.Tests
         {
             var player = await GetPreparedPlayer();
 
-            const int targetPos = 700000;
+            const int targetPos = 7000000;
 
             await player.SetPlayPositionNanosecondsAsync(targetPos, true);
 
@@ -937,7 +937,7 @@ namespace Tizen.Multimedia.Tests
         }
 
         [Test]
-        [Category("P1")]
+        [Category("P2")]
         [Description("Any attempt to access the SetPlayPositionNanosecondsAsync if the player has been disposed of")]
         [Property("SPEC", "Tizen.Multimedia.Player.SetPlayPositionNanosecondsAsync M")]
         [Property("SPEC_URL", "-")]