Граф коммитов

1138 Коммитов

Автор SHA1 Сообщение Дата
Andreas Pehrson 54f1db2d04 Bug 1177793 - Update mochitest. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D36918

--HG--
extra : moz-landing-system : lando
2019-07-09 20:07:44 +00:00
Andreas Pehrson 277b0e53db Bug 1177793 - Modernize test_streams_capture_origin.html. r=jib
Depends on D36896

Differential Revision: https://phabricator.services.mozilla.com/D36917

--HG--
extra : moz-landing-system : lando
2019-07-08 13:30:23 +00:00
Alastor Wu 7df6fd26b7 Bug 1544455 - part2 : modify test 'test_webvtt_positionalign.html'. r=heycam
Add new test cases for alignment `start` and `end` for both LTR and RTL text.

Differential Revision: https://phabricator.services.mozilla.com/D35271

--HG--
extra : moz-landing-system : lando
2019-07-08 17:51:29 +00:00
Jan-Ivar Bruaroey 4736d10ce8 Bug 1528031 - Update tests to work with [SecureContext] navigator.mediaDevices. r=pehrsons,smaug
Differential Revision: https://phabricator.services.mozilla.com/D35970

--HG--
extra : moz-landing-system : lando
2019-07-05 21:21:38 +00:00
Alastor Wu 8c92fdce8f Bug 1562021 - part5 : add test 'test_texttrack_mode_change_during_loading.html'. r=jya
In order to simulate the specific running order, we have to add a test event 'mozStartedLoadingTextTrack', which would be controlled under a pref.

This test is used to ensure that we won't get `error` event when we change track's  mode during loading.

Differential Revision: https://phabricator.services.mozilla.com/D36410

--HG--
extra : moz-landing-system : lando
2019-07-03 23:28:31 +00:00
Kris Maglione b459f53a11 Bug 1561061: Move SpecialPowers pref env code to parent and make sane-ish. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D35706

--HG--
extra : rebase_source : ec33af8c17048c3828d4ca4643e2e17bd2a854c0
extra : source : c2d0956f41d82e76c682f829807e818863cd802a
2019-06-24 13:47:53 -07:00
Kris Maglione 3e44c16cf9 Bug 1541557: Part 5 - Update callers of ChromeScript.sendSyncMessage to use sendQuery instead. r=nika
Since JSWindowActors don't have direct access to synchronous messaging,
ChromeScript callers are going to need to migrate to asynchronous messaging
and queries instead.

Since there's no comparable API to sendQuery for frame message managers, this
patch adds a stub that uses synchronous messaging, but makes the API appear
asynchronous, and migrates callers to use it instead of direct synchronous
messaging. This will be replaced with a true synchronous API in the actor
migration.

Fortunately, most of the time, this actually leads to simpler code. The
`sendQuery` API doesn't have the odd return value semantics of
`sendSyncMessage`, and can usually just be used as a drop-in replacement. Many
of the `sendSyncMessage` callers don't actually use the result, and can just
be changed to `sendAsyncMessage`. And many of the existing async messaging
users can be changed to just use `sendQuery` rather than sending messages and
adding response listeners.

However, the APZ code is an exception. It relies on intricate properties of
the event loop, and doesn't have an easy way to slot in promise handlers, so I
migrated it to using sync messaging via process message managers instead.

Differential Revision: https://phabricator.services.mozilla.com/D35055

--HG--
extra : rebase_source : d5707e87f293a831a5cf2e0b0a7e977090267f78
extra : source : 75ebd6fce136ab3bd0e591c2b8b2d06d3b5bf923
2019-06-12 12:40:51 -07:00
Andreas Pehrson b2f96303bf Bug 1523563 - Make mochitests pass with new video/webm fallback. r=jib
From the previous patch, if ogg is disabled we'll fallback on video/webm.
So some tests relying on errors need it disabled too, in order to pass.

Differential Revision: https://phabricator.services.mozilla.com/D35172

--HG--
extra : moz-landing-system : lando
2019-06-19 16:09:44 +00:00
Andreas Pehrson 1b58bc5b84 Bug 1523563 - Test all mime types with audio node recording. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D35170

--HG--
extra : moz-landing-system : lando
2019-06-19 16:09:26 +00:00
Andreas Pehrson ca22489bbb Bug 1523563 - Modernize test_mr_record_audionode.html. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D35169

--HG--
extra : moz-landing-system : lando
2019-06-19 16:09:17 +00:00
Andreas Pehrson 961162ffd8 Bug 1560215 - Add crashtest. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D36508

--HG--
extra : moz-landing-system : lando
2019-07-02 11:33:14 +00:00
Alastor Wu 01bd4dbcc7 Bug 1562353 - add CORS test. r=jya
This test is used to ensure that we shouldn't load CORS resource if server doesn't respond with correct CORS header.

In this situation, loading should be expected to fail.

Differential Revision: https://phabricator.services.mozilla.com/D36513

--HG--
extra : moz-landing-system : lando
2019-07-01 23:54:49 +00:00
Coroiu Cristina 167403a1d1 Bug 1557901 - disable test_streams_element_capture.html on win and mac for frequent failures r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D36430

--HG--
extra : moz-landing-system : lando
2019-06-30 08:55:14 +00:00
Andreas Pehrson 1151ab349e Bug 1547899 - Add crashtest. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D35320

--HG--
extra : moz-landing-system : lando
2019-06-26 09:18:38 +00:00
Edwin Gao 8361aefc97 Bug 1555454 - migrate mochitest-media to macosx1014 and turn off permafail tests r=gbrown,jmaher
Changes:
- rebalance chunk
- turn off three tests that are nearly permafail

Differential Revision: https://phabricator.services.mozilla.com/D34932

--HG--
extra : moz-landing-system : lando
2019-06-20 04:10:29 +00:00
Chris Peterson 1489548174 Bug 1484720 - Part 3: Remove some media tests' obsolete checks for B2G. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D34994

--HG--
extra : rebase_source : bef672f4f4c405ad9b772342c107b7b3767d3cae
2019-06-05 23:22:16 -07:00
Chris Peterson eb091a1b53 Bug 1484720 - Part 2: Remove always-false isSlowPlatform() test function. r=jya
isSlowPlatform() is always false because we no longer support Android 2.3 or B2G.

Also remove unused functions isWindows32() and isAndroid(). They were added in bug 1485875, but the callers were later removed in Windows bug 1475564 and Android bug 1368843.

Differential Revision: https://phabricator.services.mozilla.com/D33424

--HG--
extra : rebase_source : d5eed7e4e4fa3e30e4ee4dc2d5150fbc93399362
extra : intermediate-source : ccf9c92231f1b5ef81f1bbbf5d416b451823a410
extra : source : afb7719c98e6c75b63a6b65726ed572fec5fde39
2019-05-12 23:34:21 -07:00
Chris Peterson 1ee3d3acae Bug 1484720 - Part 1: Check Services.appinfo.is64Bit instead of UA string when disabling AV1-in-MP4 test. r=jya
I hope to remove the CPU architecture ("x64") from the UA string in bug 1556223. Tests that need to check for Win32 vs Win64 will need to check Services.appinfo.is64Bit instead of sniffing the UA string.

AV1-in-MP4 support was disabled on Win32 in bug 1417050 and re-enabled in bug 1475564. This Win32 check should have been removed at that time to re-enable this AV1-in-MP4 test on Win32. However, we can't re-enable Win32 support at this time because the RDM fails with E_OUTOFMEMORY on 32-bit Win7.

Differential Revision: https://phabricator.services.mozilla.com/D33423

--HG--
extra : rebase_source : 14467e9369debd5fd39015d7c8d74ebb962ad876
extra : intermediate-source : e74f96d597e8e1f77bd081c2dc87fa24f76b1da7
extra : source : ca803507e45157c32bef4a519ad94a9a068b6a3a
2019-05-11 23:04:01 -07:00
Alastor Wu 70575e9909 Bug 1464012 - part2 : add test 'test_texttrack_cors_preload_none.html'. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D34756

--HG--
extra : moz-landing-system : lando
2019-06-14 07:53:51 +00:00
Andreas Pehrson 2457f85c0d Bug 1553262 - Add mochitest. r=jib
A crashtest oddly enough led to unrelated hangs.

Differential Revision: https://phabricator.services.mozilla.com/D34854

--HG--
extra : moz-landing-system : lando
2019-06-14 13:34:05 +00:00
Andreas Pehrson 26ad95fa19 Bug 1306999 - Modernize test_streams_individual_pause.html. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D33297

--HG--
extra : moz-landing-system : lando
2019-06-10 13:11:35 +00:00
Andreas Pehrson 4d29471713 Bug 1306999 - Add mochitest. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D33290

--HG--
extra : moz-landing-system : lando
2019-06-10 13:10:38 +00:00
Andreas Pehrson 4b40176aea Bug 1306999 - Revert temporary fix. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D33289

--HG--
extra : moz-landing-system : lando
2019-06-10 13:10:35 +00:00
Gurzau Raul 940758881d Backed out 2 changesets (bug 1484720) for assertion failures at RemoteDecoderManagerParent.cpp
Backed out changeset bc4c88c01a02 (bug 1484720)
Backed out changeset e1fee5983139 (bug 1484720)
2019-06-04 13:58:15 +03:00
Chris Peterson f75ea41c95 Bug 1484720 - Part 2: Remove always-false isSlowPlatform() test function. r=jya
isSlowPlatform() is always false because we no longer support Android 2.3 or B2G.

Also remove unused functions isWindows32() and isAndroid(). They were added in bug 1485875, but the callers were later removed in Windows bug 1475564 and Android bug 1368843.

Depends on D33423

Differential Revision: https://phabricator.services.mozilla.com/D33424

--HG--
extra : moz-landing-system : lando
2019-06-04 05:35:53 +00:00
Chris Peterson cdff856b72 Bug 1484720 - Part 1: Enable AV1-in-MP4 test on Win32. r=jya
AV1-in-MP4 support was disabled on Win32 in bug 1417050 and re-enabled in bug 1475564. This Win32 check should have been removed at that time to re-enable this AV1-in-MP4 test on Win32.

Differential Revision: https://phabricator.services.mozilla.com/D33423

--HG--
extra : moz-landing-system : lando
2019-06-04 05:35:15 +00:00
Dan Minor 3edf01f700 Bug 1554174 - Remove media.eme.vp9-in-mp4.enabled pref; r=jya
Differential Revision: https://phabricator.services.mozilla.com/D32808

--HG--
extra : moz-landing-system : lando
2019-05-30 07:17:38 +00:00
Bryce Van Dyk 488430bdb9 Bug 1552717 - P2: Add test media for key rotation with a clear lead. r=cpearce
Add another test case for the mp4 key rotation (pssh in fragments) test. In this
case, the test file has a clear (unencrypted) lead. This test seeks to ensure we
don't regress surfacing of init info even if we encounter it for fragments that
start with unencrypted samples.

Add a further check to the key rotation test to ensure that the initDataType is
being surfaced correctly on the encrypted event.

Media files created with shaka packager via:
```
packager-win.exe
in=bipbop.mp4,stream=audio,out=bipbop-clearkey-keyrotation-clear-lead-audio.mp4
in=bipbop.mp4,stream=video,out=bipbop-clearkey-keyrotation-clear-lead-video.mp4
--enable_raw_key_encryption --keys
label=:key_id=00112233445566778899AABBCCDDEEFF:key=00112233445566778899AABBCCDDEEFF
--crypto_period_duration 5 --fragment_duration 5 --clear_lead 3
```

Note that the way shaka packager handles key rotation in this case is just to
left shift the key id and the key. In this case, where crypto_period_duration ==
fragment_duration, a left shift of 1 will take place each time the keys rotate.
This happens once in the test file leaving us with 2 key ids + keys.

Depends on D32750

Differential Revision: https://phabricator.services.mozilla.com/D32751

--HG--
extra : moz-landing-system : lando
2019-05-28 08:13:13 +00:00
Bryce Van Dyk 8141975d4d Bug 1552717 - P1: Refactor test_eme_pssh_in_moof mochitest so it's easier to add further test media. r=cpearce
test_eme_pssh_in_moof tests if our key rotation works correctly. It currently
does so by using a single video with an audio and video track. This patch
refactors the test so that it does the same thing (all going well), but in a
more extensible way.

The changes in this patch seek to lean more heavily on test harness
functionality in manifest.js and eme.js where possible. This cuts down on some
boilerplate, but means we have to make some concessions in a more verbose
expression of our test media list so the eme.js functions work with it.

Differential Revision: https://phabricator.services.mozilla.com/D32750

--HG--
extra : moz-landing-system : lando
2019-05-28 08:11:38 +00:00
Tarek Ziadé c48befbb9c Bug 1542674 - Make Media debug info machine parsable r=padenot,smaug,jya
This patch structurizes the media debug information via webidl dictionaries
that are returned by HTMLMediaElement::GetMozRequestDebugInfo() and
MediaSource::GetMozDebugReaderData().

Differential Revision: https://phabricator.services.mozilla.com/D27893

--HG--
extra : moz-landing-system : lando
2019-05-27 16:15:33 +00:00
Andreas Pehrson 38bcf48b1c Bug 1546655 - Modernize test_streams_element_capture.html. r=jib
This async/await-ifies the test to put checks in logical order.
It also, as a drive-by, adds `v.token = token` since this is a cue to the test
framework in manifest.js to mozDumpDebugInfo() on the right element after
timeout of a token.

Differential Revision: https://phabricator.services.mozilla.com/D32114

--HG--
extra : moz-landing-system : lando
2019-05-27 12:32:00 +00:00
Andreas Pehrson 89a63019db Bug 1546655 - Re-enable tests. r=jya
Depends on D32108

Differential Revision: https://phabricator.services.mozilla.com/D32109

--HG--
extra : moz-landing-system : lando
2019-05-22 12:46:09 +00:00
alwu 71e65af283 Bug 1550633 - part13.6 - refactor tests. r=jya
Refactor those tests' structure in order to make them more readable, and add the comment to show what the test purpose is for each test.

Differential Revision: https://phabricator.services.mozilla.com/D31914

--HG--
extra : moz-landing-system : lando
2019-05-24 00:41:02 +00:00
alwu 7e3d903ca9 Bug 1550633 - part13.5 - wait text track element's 'load' event. r=jya
This patch do two things in order to trigger loading for track element and wait for correct event to check track's and cues' status after loading finished.

(1) listen track element's load event
There are some tests listening video's loadedmetadata, but it's wrong. The loading process of media element and track element are completely non-related.
If you would like to check track element's status, you should wait for track element's load event.

(2) enable track explictly
If the text track which has default attribute is added to the media element before the media element starts running automatic track selection [1], then it would be enable by the media element.
Otherwise, you have to enable track explicitly by changing its track mode.

[1] https://html.spec.whatwg.org/multipage/media.html#sourcing-out-of-band-text-tracks:text-track-7

Differential Revision: https://phabricator.services.mozilla.com/D31913

--HG--
extra : moz-landing-system : lando
2019-05-24 00:41:04 +00:00
alwu b045a61b28 Bug 1550633 - part13.4 : don't use anonymous function. r=jya
Use named function for callback to reduce the indentation.

Differential Revision: https://phabricator.services.mozilla.com/D31912

--HG--
extra : moz-landing-system : lando
2019-05-24 00:41:06 +00:00
alwu 4b62a057ad Bug 1550633 - part13.3 - create elements in HTML, not in JS. r=jya
Create test elements in HTML beforehand, which can remove unnecessary JS code and make test cleaner.

Differential Revision: https://phabricator.services.mozilla.com/D31911

--HG--
extra : moz-landing-system : lando
2019-05-24 00:41:08 +00:00
alwu 75459f89eb Bug 1550633 - part13.2 - no need to set pref "media.webvtt.regions.enabled". r=jya
These tests didn't use region at all, so we have no need to set the pref.

Differential Revision: https://phabricator.services.mozilla.com/D31910

--HG--
extra : moz-landing-system : lando
2019-05-24 00:41:10 +00:00
alwu 35f5a82cdc Bug 1550633 - part13.1 - remove unnecessary elements. r=jya
These elemenets are useless and we can run tests without them.

Differential Revision: https://phabricator.services.mozilla.com/D31909

--HG--
extra : moz-landing-system : lando
2019-05-24 00:41:12 +00:00
Joel Maher edd5fd6be2 Bug 1544460 - fix reftest annotations and enable for osx 10.14. r=jfkthame,kats
fix reftest annotations and enable for osx 10.14.

Differential Revision: https://phabricator.services.mozilla.com/D32463

--HG--
extra : moz-landing-system : lando
2019-05-24 18:01:02 +00:00
Alastor Wu 771bc43492 Bug 1551385 - part3 : add test 'test_webvtt_overlapping_time.html' and 'vtt_overlapping_time.html'. r=heycam
Adding tests to ensure that when cues with overlapping times, the one with earlier end timestamp should disappear when the media time reaches its end time. In this test, we have two cues with overlapping time, when the video starts, both cues should be displayed. When the time passes 1 seconds, the first cue should disappear and the second cues should be still displayed.

Differential Revision: https://phabricator.services.mozilla.com/D31172

--HG--
extra : moz-landing-system : lando
2019-05-23 22:52:47 +00:00
Andreea Pavel ed8cf51b98 Backed out 23 changesets (bug 1550633) for causing bug 1548454 to permafail on a CLOSED TREE
Backed out changeset ce4a146da49d (bug 1550633)
Backed out changeset e1a33576d6ad (bug 1550633)
Backed out changeset bbd8f62b9bff (bug 1550633)
Backed out changeset 583d4e0945ad (bug 1550633)
Backed out changeset 29487a59512d (bug 1550633)
Backed out changeset 0f6ddd898e89 (bug 1550633)
Backed out changeset fd1afdd721e3 (bug 1550633)
Backed out changeset d4a6c1337f89 (bug 1550633)
Backed out changeset 2d4773f2dc6c (bug 1550633)
Backed out changeset e9dea69efffe (bug 1550633)
Backed out changeset 4265dd65cec3 (bug 1550633)
Backed out changeset 2aaaa42c409b (bug 1550633)
Backed out changeset d85485f76233 (bug 1550633)
Backed out changeset b6e8370b6efb (bug 1550633)
Backed out changeset afaef937598b (bug 1550633)
Backed out changeset 470d8fae0461 (bug 1550633)
Backed out changeset 8024fcefe8b1 (bug 1550633)
Backed out changeset 224eadc5ef27 (bug 1550633)
Backed out changeset 26c3c521ce27 (bug 1550633)
Backed out changeset def294ad0efb (bug 1550633)
Backed out changeset b15cc6e689e7 (bug 1550633)
Backed out changeset be178934cbbb (bug 1550633)
Backed out changeset 9893ccf1f8ad (bug 1550633)
2019-05-24 03:38:26 +03:00
Andreea Pavel 21ad779f6a Backed out 3 changesets (bug 1551385) for breaking reftests at vtt_overlapping_time.html on a CLOSED TREE
Backed out changeset 4268e661e741 (bug 1551385)
Backed out changeset fb20dcf3c072 (bug 1551385)
Backed out changeset 883151b42d88 (bug 1551385)
2019-05-24 00:23:19 +03:00
alwu f0b8fff7fc Bug 1550633 - part13.6 - refactor tests. r=jya
Refactor those tests' structure in order to make them more readable, and add the comment to show what the test purpose is for each test.

Differential Revision: https://phabricator.services.mozilla.com/D31914

--HG--
extra : moz-landing-system : lando
2019-05-23 09:03:12 +00:00
alwu 580e319c3d Bug 1550633 - part13.5 - wait text track element's 'load' event. r=jya
This patch do two things in order to trigger loading for track element and wait for correct event to check track's and cues' status after loading finished.

(1) listen track element's load event
There are some tests listening video's loadedmetadata, but it's wrong. The loading process of media element and track element are completely non-related.
If you would like to check track element's status, you should wait for track element's load event.

(2) enable track explictly
If the text track which has default attribute is added to the media element before the media element starts running automatic track selection [1], then it would be enable by the media element.
Otherwise, you have to enable track explicitly by changing its track mode.

[1] https://html.spec.whatwg.org/multipage/media.html#sourcing-out-of-band-text-tracks:text-track-7

Differential Revision: https://phabricator.services.mozilla.com/D31913

--HG--
extra : moz-landing-system : lando
2019-05-23 09:03:14 +00:00
alwu ca2b2b41e4 Bug 1550633 - part13.4 : don't use anonymous function. r=jya
Use named function for callback to reduce the indentation.

Differential Revision: https://phabricator.services.mozilla.com/D31912

--HG--
extra : moz-landing-system : lando
2019-05-23 09:03:16 +00:00
alwu fa43c41e98 Bug 1550633 - part13.3 - create elements in HTML, not in JS. r=jya
Create test elements in HTML beforehand, which can remove unnecessary JS code and make test cleaner.

Differential Revision: https://phabricator.services.mozilla.com/D31911

--HG--
extra : moz-landing-system : lando
2019-05-23 09:03:18 +00:00
alwu 1c972a7e52 Bug 1550633 - part13.2 - no need to set pref "media.webvtt.regions.enabled". r=jya
These tests didn't use region at all, so we have no need to set the pref.

Differential Revision: https://phabricator.services.mozilla.com/D31910

--HG--
extra : moz-landing-system : lando
2019-05-23 09:03:21 +00:00
alwu a1dfdc2964 Bug 1550633 - part13.1 - remove unnecessary elements. r=jya
These elemenets are useless and we can run tests without them.

Differential Revision: https://phabricator.services.mozilla.com/D31909

--HG--
extra : moz-landing-system : lando
2019-05-23 09:03:23 +00:00
Alastor Wu 825855eddc Bug 1551385 - part3 : add test 'test_webvtt_overlapping_time.html' and 'vtt_overlapping_time.html'. r=heycam
Adding tests to ensure that when cues with overlapping times, the one with earlier end timestamp should disappear when the media time reaches its end time. In this test, we have two cues with overlapping time, when the video starts, both cues should be displayed. When the time passes 1 seconds, the first cue should disappear and the second cues should be still displayed.

Differential Revision: https://phabricator.services.mozilla.com/D31172

--HG--
extra : moz-landing-system : lando
2019-05-22 20:29:08 +00:00
Andreas Pehrson 1c6fe43b5c Bug 1548629 - Set contentDuration for gizmo-short.mp4. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D32107

--HG--
extra : moz-landing-system : lando
2019-05-22 12:43:50 +00:00