зеркало из https://github.com/mozilla/pjs.git
Fix seeking tests to avoid false assumptions
This commit is contained in:
Родитель
43947bf435
Коммит
925a093e41
|
@ -51,7 +51,10 @@ function seekEnded() {
|
|||
|
||||
var v = document.getElementById('v');
|
||||
var t = v.currentTime;
|
||||
ok(t >= 2 && t <= 3, "Video currentTime should be around 2: " + t);
|
||||
// Since we were playing, and we only paused asynchronously, we can't be
|
||||
// sure that we paused before the seek finished, so we may have played
|
||||
// ahead arbitrarily far.
|
||||
ok(t >= 1.9, "Video currentTime should be around 2: " + t);
|
||||
v.play();
|
||||
endPassed = true;
|
||||
seekFlagEnd = v.seeking;
|
||||
|
|
|
@ -40,7 +40,7 @@ function seekEnded() {
|
|||
return false;
|
||||
|
||||
var t = document.getElementById('v').currentTime;
|
||||
ok(t >= 2 && t<= 3, "Video currentTime should be around 2: " + t);
|
||||
ok(t >= 1.9 && t <= 2.1, "Video currentTime should be around 2: " + t);
|
||||
completed = true;
|
||||
SimpleTest.finish();
|
||||
return false;
|
||||
|
|
Загрузка…
Ссылка в новой задаче