mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
17 lines
362 B
JavaScript
17 lines
362 B
JavaScript
function test_seek8(v, seekTime, is, ok, finish) {
|
|
|
|
function startTest() {
|
|
v.currentTime = 1000;
|
|
}
|
|
|
|
function seekEnded() {
|
|
ok(Math.abs(v.currentTime - v.duration) < 0.2,
|
|
"currentTime " + v.currentTime + " close to " + v.duration);
|
|
finish();
|
|
}
|
|
|
|
v.addEventListener("loadedmetadata", startTest, false);
|
|
v.addEventListener("seeked", seekEnded, false);
|
|
|
|
}
|