mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +00:00
16 lines
300 B
JavaScript
16 lines
300 B
JavaScript
function test_seek9(v, seekTime, is, ok, finish) {
|
|
|
|
function startTest() {
|
|
v.currentTime = -1000;
|
|
}
|
|
|
|
function seekEnded() {
|
|
is(v.currentTime, 0, "currentTime clamped to 0");
|
|
finish();
|
|
}
|
|
|
|
v.addEventListener("loadedmetadata", startTest, false);
|
|
v.addEventListener("seeked", seekEnded, false);
|
|
|
|
}
|