[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")]
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", "-")]
{
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.");
}
{
var player = await GetPreparedPlayer();
- const int targetPos = 700000;
+ const int targetPos = 7000000;
await player.SetPlayPositionNanosecondsAsync(targetPos, true);
}
[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", "-")]