mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
21 lines
360 B
JavaScript
21 lines
360 B
JavaScript
|
function test_seek9(v, seekTime, is, ok, finish) {
|
||
|
|
||
|
var completed = false;
|
||
|
|
||
|
function startTest() {
|
||
|
v.currentTime = -1000;
|
||
|
}
|
||
|
|
||
|
function seekEnded() {
|
||
|
if (completed)
|
||
|
return false;
|
||
|
|
||
|
is(v.currentTime, 0, "currentTime clamped to 0");
|
||
|
finish();
|
||
|
}
|
||
|
|
||
|
v.addEventListener("loadedmetadata", startTest, false);
|
||
|
v.addEventListener("seeked", seekEnded, false);
|
||
|
|
||
|
}
|