1
0
mirror of https://passt.top/passt synced 2024-09-28 10:05:47 +00:00

test/lib: Consistent cols, rows, poster attributes for asciinema player

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2022-04-06 00:31:44 +02:00
parent 0bf6adc886
commit 081f7c8f4c
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ for (var i = 0; i < perf_links.length; i++) {
ci_player.dispose(); ci_player.dispose();
ci_player = AsciinemaPlayer.create("/builds/latest/web/ci.cast", ci_player = AsciinemaPlayer.create("/builds/latest/web/ci.cast",
ci_video, ci_video,
{ startAt: seek, autoplay: true }); { cols: 240, rows: 51, poster: "npt:999:0", startAt: seek, autoplay: true });
window.scrollTo({ top: top, behavior: "smooth" }) window.scrollTo({ top: top, behavior: "smooth" })
}, false); }, false);

View File

@ -48,7 +48,7 @@ for (var i = 0; i < video___VIDEO_NAME__links.length; i++) {
__VIDEO_NAME___player = AsciinemaPlayer.create( __VIDEO_NAME___player = AsciinemaPlayer.create(
"/builds/latest/web/__VIDEO_NAME__.cast", "/builds/latest/web/__VIDEO_NAME__.cast",
__VIDEO_NAME___div, __VIDEO_NAME___div,
{ startAt: seek, autoplay: true }); { cols: 240, rows: 51, poster: "npt:999:0", startAt: seek, autoplay: true });
window.scrollTo({ top: top, behavior: "smooth" }) window.scrollTo({ top: top, behavior: "smooth" })
}, false); }, false);