mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-22 21:40:17 +03:00
f04a0e2860
* Improve m.file m.image m.audio m.video types * Populate `info.duration` for audio & video file uploads * Fix tests * Iterate types * Improve coverage * Fix test * Add small delay to stabilise cypress test * Fix test idempotency * Improve coverage * Slow down * iterate
50 lines
1.1 KiB
Text
50 lines
1.1 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`MVideoBody does not crash when given a portrait image 1`] = `
|
|
<DocumentFragment>
|
|
<span
|
|
class="mx_MVideoBody"
|
|
>
|
|
<div
|
|
class="mx_MVideoBody_container"
|
|
style="max-width: 182px; max-height: 324px;"
|
|
>
|
|
<video
|
|
class="mx_MVideoBody"
|
|
controls=""
|
|
controlslist="nodownload"
|
|
poster="data:image/png;base64,00"
|
|
preload="none"
|
|
/>
|
|
<div
|
|
style="width: 182px; height: 324px;"
|
|
/>
|
|
</div>
|
|
</span>
|
|
</DocumentFragment>
|
|
`;
|
|
|
|
exports[`MVideoBody should show poster for encrypted media before downloading it 1`] = `
|
|
<DocumentFragment>
|
|
<span
|
|
class="mx_MVideoBody"
|
|
>
|
|
<div
|
|
class="mx_MVideoBody_container"
|
|
style="max-width: 40px; max-height: 50px;"
|
|
>
|
|
<video
|
|
class="mx_MVideoBody"
|
|
controls=""
|
|
controlslist="nodownload"
|
|
poster="https://server/_matrix/media/r0/download/server/encrypted-poster"
|
|
preload="none"
|
|
title="alt for a test video"
|
|
/>
|
|
<div
|
|
style="width: 40px; height: 50px;"
|
|
/>
|
|
</div>
|
|
</span>
|
|
</DocumentFragment>
|
|
`;
|