From: nam Date: Thu, 4 Oct 2018 08:12:26 +0000 (+0900) Subject: [MediaPlayer][Non-ACR] fix the position to larger unit X-Git-Tag: tct5.0_m2~34^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F27%2F190627%2F2;p=test%2Ftct%2Fcsharp%2Fapi.git [MediaPlayer][Non-ACR] fix the position to larger unit Change-Id: I26af0d1a36bfe304e0bad5b783a6c47c6098b51c --- 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", "-")]