Commit Graph
47 Commits
Author SHA1 Message Date
James Graham 6df18e2f5f Bug 1386604 - Update web-platform-tests to revision 8b5316ad93c6c1238eea26a3d8052e32b34bbabd, a=testonly
MozReview-Commit-ID: 3HXcvTYpAkA
2017-08-03 11:31:54 +01:00
Jean-Yves Avenard 92efc4ebc9 Bug 1362165: Correct test. r=gerald
the durationchange event will be queued during the initialization segment received algorithm.
Only once the init segment has been fully processed will update/updateend be queued.

As such, the updateend event must be fired before being able to call appendBuffer once again.

MozReview-Commit-ID: GYQNOwWZ7DH
2017-05-26 23:15:38 +02:00
Jean-Yves Avenard 83a867f526 Bug 1362165: Add web platform test. r=gerald
readyState is supposed to be updated during MSE's Initialization Segment Received and Coded Frame Processing algorithm.
Only then would the appendBuffer operation terminates by queueing the update/updateend events.

These tests ensure that loadedmetadata and loadeddata are fired first.

MozReview-Commit-ID: BJ5gISQRA7B
2017-05-11 10:43:25 +02:00
James Graham d9ee612568 Bug 1331899 - Update web-platform-tests to revision 7071a3d128ff6610a57944d1b0aaabee97b3af5a, a=testonly
MozReview-Commit-ID: LvpIb2OK2GS
2017-01-19 14:23:39 +00:00
Jean-Yves Avenard f6ae11bf0a Bug 1314533: Do not expect init segment to be parsed when appending corrupted data. r=gerald
From the Segment Parser Loop definition:
https://w3c.github.io/media-source/index.html#sourcebuffer-segment-parser-loop
"2. If the input buffer contains bytes that violate the SourceBuffer byte stream format specification, then run the append error algorithm and abort this algorithm."

The test appends data with a valid init segment followed by corrupted content.
The corrupted content satisfies the condition that the input buffer contains bytes that violate byte stream format specification.
As such, the append error algorithm is to be run prior parsing the init segment.

Add a new test verifying the defined behavior.
2016-11-06 21:57:06 +11:00
James Graham 8622cfc387 Bug 1309931 - Update web-platform-tests to revision 1d8e28e2c762b51c06670a373b23af6bd7a8aed7, a=testonly
MozReview-Commit-ID: 17dwWFxkprQ
2016-10-25 18:10:30 +01:00
James Graham 68c4133027 Bug 1302423 - Update web-platform-tests to revision 6b48d45a1c7f3243945bf1678008f607e70acf2e, a=testonly
MozReview-Commit-ID: 7u0jU4PkBVg
2016-09-13 14:49:17 +01:00
Jean-Yves Avenard ca8f5f78d4 Bug 1300296: Use valid and spec-compliant MP4 file for all tests. r=gerald,jgraham
The MP4 used in the tests was invalid:
1- It contains out of order and overlapping frames
2- The first frame for each of the first 9 media segments were marked as keyframe, even though they weren't

The new file was encoded such that:
- The total bitrate remains the same as in the previous files
- The total duration is similar
- Each media segment starts with a valid keyframe
- Frames are properly ordered
- GOP is made of 24 frames
- The video track doesn't start at 0, which helps testing the proper behaviour regarding buffered range calculation.
- Like in the previous video, the audio track is present but made of silence (which is puzzling for a video initially designed to test A/V sync)

The webm file presents the same characteristics.

MozReview-Commit-ID: 6AKKmInaenE
2016-09-06 14:55:25 +10:00
Jean-Yves Avenard cdd844ff8b Bug 1293613: don't assume playback won't be finished by the time the seeked event is fired. r=gerald
The data added in the sourcebuffer is very short (less than one second); it is possible that playback has completed prior the event being fired.

MozReview-Commit-ID: INHAFmEhSut
2016-08-10 22:11:43 +10:00
Jean-Yves Avenard 3bb360486d Bug 1293613: Never attempt to read past end of manifest table. r=gerald
Should the events being waited for take a while to fire, we could have attempted to append more segments than the table contain causing an exception.

MozReview-Commit-ID: HnmLTqNQ5rb
2016-08-11 15:17:34 +10:00
Jean-Yves Avenard cf3bc09071 Bug 1293613: Don't assume that once playing event has fired, the earlier appendBuffer has completed. r=gerald
The two operations are asynchronous and independent.

MozReview-Commit-ID: D2woSoIzE6p
2016-08-10 15:10:47 +10:00
Jean-Yves Avenard 19b3cc6ad4 Bug 1293613: Update test using new manifest details. r=gerald
Do not assume that the element is still seeking when the seeking event is actually fired (the seeking operation is asynchronous)

MozReview-Commit-ID: Ap24kUQK8R2
2016-08-10 14:43:24 +10:00
Jean-Yves Avenard cb03b7b5f1 Bug 1293613: Make liveseekable test run. r=gerald
- No html document existed, preventing the test to run.
- Remove test related to the updating attribute being cleared: see https://github.com/w3c/media-source/issues/118

MozReview-Commit-ID: GxOBnr5mqyh
2016-08-10 14:22:11 +10:00
Jean-Yves Avenard 9c90139787 Bug 1293613: Don't assume that all videos start at 0. r=gerald
See issue https://github.com/w3c/web-platform-tests/issues/1939

MozReview-Commit-ID: LgDQRS8Xz3L
2016-08-10 13:22:35 +10:00
Jean-Yves Avenard d0464888f7 Bug 1293613: Don't assume all segments audio and video track start at the same time point. r=gerald
Audio track and video tracks have under most cases a different start and end time. Additionally, the mp4 file is poorly muxed and contains out of order frames. As such we keep a table of time and duration for each media segments.

The test itself was right, however it had an invalid time table to start with as it incorrectly used the dts (decode timestamp) instead of the pts (presentation timestamp).

MozReview-Commit-ID: G2uwK3rroj3
2016-08-10 12:12:08 +10:00
Jean-Yves Avenard 33e42f2f54 Bug 1293613: An invalid or revoked MediaSource URI can't be trace to a MediaSource object. r=gerald
https://w3c.github.io/media-source/index.html#mediasource-attach: "If the resource fetch algorithm absolute URL matches the MediaSource object URL, ignore any preload attribute of the media element, skip any optional steps for when preload equals none"
A dummy URL or a revoked one no longer matches the MediaSource object URL, as such, the preload attribute isn't to be ignored.

MozReview-Commit-ID: EW5TOv9SSf
2016-08-10 12:01:13 +10:00
Jean-Yves Avenard c3ceaa9d97 Bug 1293613: Correct mediasource-duration.html r=gerald
- The WebM file manifest correctly indicates the duration as reported in the metadata. However, the last frame has an end time 0f 6.05s which would adjust the duration. As such it is incorrect to assume that after a full appendBuffer the duration will remain the same as set in the metadata.
(source: https://w3c.github.io/media-source/index.html#sourcebuffer-coded-frame-processing "5. If the media segment contains data beyond the current duration, then run the duration change algorithm with new duration set to the maximum of the current duration and the group end timestamp")

- When setting the duration, the actual final duration may be different to what was set as it will be aligned to the highest end time
(source: https://w3c.github.io/media-source/index.html#duration-change-algorithm ("4.1 Update new duration to the highest end time reported by the buffered attribute across all SourceBuffer objects in sourceBuffers.")

MozReview-Commit-ID: EpzSaSg8pWW
2016-08-10 11:57:32 +10:00
Jean-Yves Avenard 76b15c36f9 Bug 1293613: Update manifest with new test scripts. r=gerald
MozReview-Commit-ID: C8vMTcWiDJ5
2016-08-10 11:50:42 +10:00
Jean-Yves Avenard ff691123b8 Bug 1293613: Don't assume that all videos start at 0. r=gerald
The tests incorrectly assume that all videos start at 0. However this is often not the case, in particular for the mp4 files.
The buffered range is the intersection of the audio track and the video track. As such, if the video track starts at a later time than 0, the buffered range of the source buffer can't be starting at 0.

Rather than using different videos, we properly use the correct values; this is done to ensure that buffered range are calculated correctly, regardless of the video content.

timestamps verify with mkvinfo utility for webm and ffprobe for mp4.

See issue https://github.com/w3c/web-platform-tests/issues/1939

MozReview-Commit-ID: AMKgJHEJsWr
2016-08-09 21:40:37 +10:00
Jean-Yves Avenard 508f94907a Bug 1293186: Do not assume that currentTime is still at seeking position when seeking event is fired. r=jwwang
The seeking attribute is changed synchronously, however, the seeking event is fired asynchronously. It is possible that by the time the seeking event is fired, the seeking operation has already completed and that the "time marches on", causing currentTime to be past the seeking position.

MozReview-Commit-ID: IB83w6zKCLF
2016-08-08 18:26:45 +10:00
Jean-Yves Avenard d8d901937c Bug 1293159: Do not use timer when there's only one callback pending. r=jwwang
It is invalid to assume that no other actions can be performed between the time setTimout is called with a timeout value of 0 and the task actually runs.
This causes events to be regularly missed.

MozReview-Commit-ID: 70dtFsTwETf
2016-08-08 18:14:31 +10:00
Jean-Yves Avenard 00ee57db7f Bug 1128069: Update webref MSE tests according to updated spec. r=gerald
See w3c/MSE Issue 19, 20 & 26.

    Changing the duration now can never call the range removal algorithm. An explicit call to remove must be used for range removal.
    This spec change performed the following:
    - Require remove() for all Range Removals

MozReview-Commit-ID: 860PnQ9yrbc
2016-08-05 16:01:03 +10:00
Jean-Yves Avenard 6a9262c1da Bug 1128069: Correct invalid test. r=jwwang
It is incorrect to assume that the seeking attribute will still be true once the seeking event handler gets to run. Seeking may have completed between the time the seeking event was queued and the time the seeking env is fired.

MozReview-Commit-ID: CZFFotMyaIu
2016-08-05 14:51:15 +10:00
James Graham 38ad6bfe4d Bug 1290859 - Update web-platform-tests to revision 6744ac43d76207bdd1ececa4b91c9bfeef3ad522, a=testonly
MozReview-Commit-ID: 3PkaUEv2K15
2016-08-01 13:56:46 +01:00
Jean-Yves Avenard a4588c7e5d Bug 1286810: [MSE] P6. Add webref test ensuring new spec compliance. r=gerald,f=jgraham
MozReview-Commit-ID: 2ZyjR2J8o3h
2016-07-19 11:45:28 +10:00
Jean-Yves Avenard 67171729ba Bug 1286810: [MSE] P5. Update webref MSE tests according to updated spec. r=gerald,f=jgraham
See w3c/MSE Issue 19, 20 & 26.

Changing the duration now can never call the range removal algorithm. An explicit call to remove must be used for range removal.
This spec change performed the following:
- Require remove() for all Range Removals
- Error on Duration Changes that need remove first
- Error on abort() during Range Removals

MozReview-Commit-ID: 1Xy8hi0tr7Q
2016-07-19 11:45:28 +10:00
Jean-Yves Avenard 6a6bc1f256 Bug 1286796: [MSE] P2. Update InvalidAccessError with TypeError. r=jgraham
As per https://github.com/w3c/media-source/issues/34

MozReview-Commit-ID: 5MEEKhINo1m
2016-07-14 21:08:46 +10:00
James Graham 1bef5b0cf0 Bug 1273176 - Update web-platform-tests to revision 55905788bebbdfacb49c94e579e93c19531e0199, a=testonly
MozReview-Commit-ID: 9bnFcIi0oX3
2016-05-16 17:05:32 +01:00
James Graham 8f20e40ac7 Bug 1253226 - Update web-platform-tests to revision 833a6d13372424758a6e3a770ecc6e8d1ffaae67, a=testonly
MozReview-Commit-ID: 5p4t1pbJpjq
2016-03-04 16:16:51 +00:00
James Graham 8f80efb7ec Bug 1245460 - Update web-platform-tests to revision af65262f5f3400024279c526117489f1f11d3233, a=testonly 2016-02-03 11:22:52 +00:00
James Graham ee948386ac Bug 1105760 - Increase timeout for unstable Media Source test, rs=Ms2ger 2015-09-18 13:25:06 +01:00
James Graham fb182c2756 Bug 1199127 - Update web-platform-tests to revision 4600b7dbae996754fe52f48bc9c225834f11a686, a=testonly 2015-08-27 09:41:20 +01:00
James Graham bd4b7e0608 Bug 1180500 - Update web-platform-tests to revision 87398b8448f699e3e324148795891658f2fa16dd, a=testonly 2015-07-07 10:05:28 +01:00
Carsten "Tomcat" Book 78ed5b1319 Backed out changeset 641b24306056 (bug 1178754) also need backedout on request on a CLOSED TREE 2015-06-30 15:58:51 +02:00
James Graham c38e40f0da Bug 1178754 - Update web-platform-tests to revision 2f4e521222b7901f4d3a5e09a2489e773c8be424, a=testonly 2015-06-30 14:01:47 +01:00
Karl Tomlinson c24608210d bug 1116382 test auto-revoking behavior with URL.createObjectURL(MediaSource) r=bholley 2015-05-29 00:01:34 +12:00
Karl Tomlinson 4ef63b5aca bug 1116382 test opening referenced MediaSource after URL.revokeObjectURL() r=bholley 2015-05-29 00:15:07 +12:00
Karl Tomlinson 56e3ec8491 bug 1116382 adjust explict revoke test to fail if revocation fails r=bholley
Previously this test would pass even without the revokeObjectURL().
2015-05-28 23:36:31 +12:00
James Graham 4c6115a0b1 Bug 1161535 - Update web-platform-tests to revision 40a9c4e9e4f99a738cd1a7602066c5e84d1b90b5, a=testonly 2015-05-05 21:57:11 +01:00
Bobby Holley 2310d78808 Bug 1126465 - Make redundant-seek use longer timeouts. r=me
I did a push with some logging. It looks like this test is currently just on
the border of the 10 second timeout, and sometimes gets killed by the timeout
mechanism before it can finish. Bumping up to 60.
2015-01-29 22:11:12 -08:00
James Graham 02c5318120 Bug 1124311 - Update web-platform-tests to revision 412773b71c81d7356636f698e86d7b544cf48fcb, a=testonly 2015-01-23 20:06:44 +00:00
Wes Kocher 96851fe243 Backed out 2 changesets (bug 1124311) for breaking wpt-4 on a CLOSED TREE
Backed out changeset 9a9ab925893c (bug 1124311)
Backed out changeset 51ca8715e7fb (bug 1124311)
2015-01-22 12:46:45 -08:00
James Graham a11df2a876 Bug 1124311 - Update web-platform-tests to revision 412773b71c81d7356636f698e86d7b544cf48fcb, a=testonly 2015-01-22 11:59:59 +00:00
Wes Kocher 29312fb801 Backed out 2 changesets (bug 1124311) for web-platform-tests-4 orange on a CLOSED TREE
Backed out changeset 94c4d5ded3f7 (bug 1124311)
Backed out changeset 77f4d9826e90 (bug 1124311)
2015-01-21 17:30:27 -08:00
James Graham a1c74344ff Bug 1124311 - Update web-platform-tests to revision 412773b71c81d7356636f698e86d7b544cf48fcb, a=testonly 2015-01-21 23:47:19 +00:00
James Graham f8425c2877 Bug 1103906 - Update web-platform-tests to revision 551060ba2eb3fa6d1c713c179d52fdf1132ea50c, a=testonly 2014-11-24 12:56:30 +00:00
James Graham 5ae42538f6 Bug 945222 - Initial import of web-platform-tests testsuite 1/4: test data 2014-09-04 12:48:31 +01:00