[MSE] WebKit tests: Use fixed point in makeASample()
authoraboya@igalia.com <aboya@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 31 Oct 2018 21:04:07 +0000 (21:04 +0000)
committeraboya@igalia.com <aboya@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 31 Oct 2018 21:04:07 +0000 (21:04 +0000)
commit09cd7dfde73439d28e5542f188e6f0a96887a94b
treec1820bf3a91473f74696351dc756b170db470623
parent99c69e955427650d1ec1a6ae5a5fac0789f82207
[MSE] WebKit tests: Use fixed point in makeASample()
https://bugs.webkit.org/show_bug.cgi?id=191128

Reviewed by Jer Noble.

This patch modifies the utility function makeASample() so as to accept
time values in arbitrary time scales.

Previously makeASample() accepted optionally a time scale, but still
required to receive all time values as seconds, therefore requiring a
division at call time in order to use the function, which could cause
rounding errors (see https://bugs.webkit.org/show_bug.cgi?id=190085#c20).

* media/media-source/media-source-append-acb-no-frame-lost-expected.txt:
* media/media-source/media-source-append-acb-no-frame-lost.html:
* media/media-source/media-source-append-buffer-with-append-window.html:
* media/media-source/media-source-append-media-segment-without-init.html:
* media/media-source/media-source-append-nonsync-sample-after-abort.html:
* media/media-source/media-source-append-out-of-order.html:
* media/media-source/media-source-append-overlapping-dts-expected.txt:
* media/media-source/media-source-append-overlapping-dts.html:
* media/media-source/media-source-canplaythrough.html:
* media/media-source/media-source-duplicate-seeked.html:
* media/media-source/media-source-duration-after-append.html:
* media/media-source/media-source-end-of-stream-buffered.html:
* media/media-source/media-source-end-of-stream-readyState.html:
* media/media-source/media-source-fastseek.html:
* media/media-source/media-source-fudge-factor.html:
* media/media-source/media-source-monitor-source-buffers.html:
* media/media-source/media-source-overlapping-append-buffered.html:
* media/media-source/media-source-overlapping-append-expected.txt:
* media/media-source/media-source-overlapping-append.html:
* media/media-source/media-source-overlapping-decodetime-expected.txt:
* media/media-source/media-source-overlapping-decodetime.html:
* media/media-source/media-source-play.html:
* media/media-source/media-source-range-end-frame-not-removed-expected.txt:
* media/media-source/media-source-range-end-frame-not-removed.html:
* media/media-source/media-source-range-start-frame-replaced-expected.txt:
* media/media-source/media-source-range-start-frame-replaced.html:
* media/media-source/media-source-remove-decodeorder-crash.html:
* media/media-source/media-source-remove-too-much.html:
* media/media-source/media-source-remove.html:
* media/media-source/media-source-restrictions.html:
* media/media-source/media-source-sample-wrong-track-id.html:
* media/media-source/media-source-seek-back-expected.txt:
* media/media-source/media-source-seek-back.html:
* media/media-source/media-source-seek-complete.html:
* media/media-source/media-source-sequence-timestamps-expected.txt:
* media/media-source/media-source-sequence-timestamps.html:
* media/media-source/media-source-small-gap.html:
* media/media-source/media-source-timeoffset-expected.txt:
* media/media-source/media-source-timeoffset.html:
* media/media-source/media-source-timestampoffset-rounding-error.html:
* media/media-source/media-source-timestampoffset-then-zero-expected.txt:
* media/media-source/media-source-timestampoffset-then-zero.html:
* media/media-source/media-source-video-playback-quality.html:
* media/media-source/mock-media-source.js:
(makeASample):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@237651 268f45cc-cd09-0410-ab3c-d52691b4dbfc
45 files changed:
LayoutTests/ChangeLog
LayoutTests/media/media-source/media-source-append-acb-no-frame-lost-expected.txt
LayoutTests/media/media-source/media-source-append-acb-no-frame-lost.html
LayoutTests/media/media-source/media-source-append-buffer-with-append-window.html
LayoutTests/media/media-source/media-source-append-media-segment-without-init.html
LayoutTests/media/media-source/media-source-append-nonsync-sample-after-abort.html
LayoutTests/media/media-source/media-source-append-out-of-order.html
LayoutTests/media/media-source/media-source-append-overlapping-dts-expected.txt
LayoutTests/media/media-source/media-source-append-overlapping-dts.html
LayoutTests/media/media-source/media-source-canplaythrough.html
LayoutTests/media/media-source/media-source-duplicate-seeked.html
LayoutTests/media/media-source/media-source-duration-after-append.html
LayoutTests/media/media-source/media-source-end-of-stream-buffered.html
LayoutTests/media/media-source/media-source-end-of-stream-readyState.html
LayoutTests/media/media-source/media-source-fastseek.html
LayoutTests/media/media-source/media-source-fudge-factor.html
LayoutTests/media/media-source/media-source-monitor-source-buffers.html
LayoutTests/media/media-source/media-source-overlapping-append-buffered.html
LayoutTests/media/media-source/media-source-overlapping-append-expected.txt
LayoutTests/media/media-source/media-source-overlapping-append.html
LayoutTests/media/media-source/media-source-overlapping-decodetime-expected.txt
LayoutTests/media/media-source/media-source-overlapping-decodetime.html
LayoutTests/media/media-source/media-source-play.html
LayoutTests/media/media-source/media-source-range-end-frame-not-removed-expected.txt
LayoutTests/media/media-source/media-source-range-end-frame-not-removed.html
LayoutTests/media/media-source/media-source-range-start-frame-replaced-expected.txt
LayoutTests/media/media-source/media-source-range-start-frame-replaced.html
LayoutTests/media/media-source/media-source-remove-decodeorder-crash.html
LayoutTests/media/media-source/media-source-remove-too-much.html
LayoutTests/media/media-source/media-source-remove.html
LayoutTests/media/media-source/media-source-restrictions.html
LayoutTests/media/media-source/media-source-sample-wrong-track-id.html
LayoutTests/media/media-source/media-source-seek-back-expected.txt
LayoutTests/media/media-source/media-source-seek-back.html
LayoutTests/media/media-source/media-source-seek-complete.html
LayoutTests/media/media-source/media-source-sequence-timestamps-expected.txt
LayoutTests/media/media-source/media-source-sequence-timestamps.html
LayoutTests/media/media-source/media-source-small-gap.html
LayoutTests/media/media-source/media-source-timeoffset-expected.txt
LayoutTests/media/media-source/media-source-timeoffset.html
LayoutTests/media/media-source/media-source-timestampoffset-rounding-error.html
LayoutTests/media/media-source/media-source-timestampoffset-then-zero-expected.txt
LayoutTests/media/media-source/media-source-timestampoffset-then-zero.html
LayoutTests/media/media-source/media-source-video-playback-quality.html
LayoutTests/media/media-source/mock-media-source.js