mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Fix seeking tests to avoid false assumptions
This commit is contained in:
parent
7ec7418b2e
commit
12cba926fb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user