From 7f592f33d972c21145f92b213d186d814f280105 Mon Sep 17 00:00:00 2001 From: nam Date: Thu, 4 Oct 2018 17:12:26 +0900 Subject: [PATCH] [MediaPlayer][Non-ACR] fix the position to larger unit Change-Id: I26af0d1a36bfe304e0bad5b783a6c47c6098b51c --- .../Tizen.MediaPlayer.Tests/testcase/TSPlayer.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/TSPlayer.cs b/tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/TSPlayer.cs index 87c3f15..759166a 100755 --- a/tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/TSPlayer.cs +++ b/tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/TSPlayer.cs @@ -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", "-")] -- 2.7.4