Commit Graph

254 Commits

Author SHA1 Message Date
Chris Pearce
8580f40510 Bug 1179521 - [EME] Replace test_eme_obs_notification.html with test for mediakeys-request notification. r=gerald 2015-07-03 14:29:46 +12:00
Karl Tomlinson
40539242c5 crashtest for bug 1179662
--HG--
extra : rebase_source : f4674490da3ebe088d407879f6933301b1b25129
2015-07-02 15:55:52 +12:00
Brian Birtles
c569ddfd86 Bug 1165203 - Make calls to load() upgrade preload=none to preload=metadata; r=cpearce
--HG--
extra : commitid : H2xIreNh4Pq
extra : histedit_source : 8ff5e2d2e12b21b8e3f04dc5ab81584b6fc929fc
2015-06-17 09:02:51 +09:00
Bobby Holley
c1d821b501 Bug 1163223 - Switch test_buffered to use timeupdate rather than loadedmetadata. r=cpearce
The problem is that we can't compute buffered until we know the start time, but don't
necessarily know the start time by the time we fire loadedmetadata (we just know the
duration). Chris determined that there was nothing in the spec that requires any
particular behavior from .buffered after loadedmetadata, so this should be fine.
2015-06-16 15:08:27 -07:00
Wes Kocher
f45cfb1d2d Backed out 8 changesets (bug 1163223) for getting in the way of me backing out f46a712edf7e
Backed out changeset c1b33c43f0c5 (bug 1163223)
Backed out changeset a7ee6eb45f62 (bug 1163223)
Backed out changeset b2e10f194455 (bug 1163223)
Backed out changeset 9e7651567cad (bug 1163223)
Backed out changeset 20e25e93ed5f (bug 1163223)
Backed out changeset 5193508738f8 (bug 1163223)
Backed out changeset aea6b8d15318 (bug 1163223)
Backed out changeset 7b6804398fc3 (bug 1163223)
2015-06-16 14:47:50 -07:00
Bobby Holley
d19708305c Bug 1163223 - Switch test_buffered to use timeupdate rather than loadedmetadata. r=cpearce
The problem is that we can't compute buffered until we know the start time, but don't
necessarily know the start time by the time we fire loadedmetadata (we just know the
duration). Chris determined that there was nothing in the spec that requires any
particular behavior from .buffered after loadedmetadata, so this should be fine.
2015-06-16 12:59:55 -07:00
Gerald Squelart
c384cc4424 Bug 1138294 - Split eme_stream_blocked test in 3 parts; will deal with overload issue separately. r=edwin
--HG--
rename : dom/media/test/test_eme_stream_capture_blocked.html => dom/media/test/test_eme_stream_capture_blocked_case1.html
rename : dom/media/test/test_eme_stream_capture_blocked.html => dom/media/test/test_eme_stream_capture_blocked_case2.html
rename : dom/media/test/test_eme_stream_capture_blocked.html => dom/media/test/test_eme_stream_capture_blocked_case3.html
extra : rebase_source : 5973d31c7b26566343da2b78375f2b23aae18d74
2015-06-12 10:23:29 -04:00
Gerald Squelart
26147e2dc6 Bug 1138294 - EME Mochitests with MSE stream switches, only switch video tracks, as audio switching is not currently supported. r=edwin
--HG--
extra : rebase_source : 8968ad0e8ec0b99f59ebf5a82a3b433ef0ab7a34
2015-06-12 10:23:18 -04:00
Gerald Squelart
d21594acae Bug 1138294 - EME Mochitests with MSE stream switches, missing headers. r=edwin
--HG--
extra : rebase_source : 1b2b8e553f669d3626e0cd8da61471698375ec94
2015-06-12 10:23:08 -04:00
Gerald Squelart
06b65e16a2 Bug 1138294 - EME Mochitests with MSE stream switches. r=edwin
--HG--
extra : rebase_source : 20f5bb1bb119f6412999a2f148b46f1ae57067cc
2015-06-12 10:22:57 -04:00
Gerald Squelart
a3b7025602 Bug 1138294 - EME Mochitests with MSE stream switches, fix bug 1152151 to avoid unneeded loading. r=edwin
--HG--
extra : rebase_source : 904f79266380d9d46979b55d0db8e61df7c77c75
2015-06-12 10:22:46 -04:00
Jean-Yves Avenard
9a7876feb4 Bug 1168040: Part2. Properly handle MP4 time offset in MoofParser. r=kentuckyfriedtakahe 2015-06-10 19:38:13 +10:00
Bobby Holley
aa6c9ce796 Bug 1160695 - Drop Support for Content-Duration. r=cpearce 2015-06-08 09:22:46 -07:00
Bobby Holley
73b793c991 Bug 1160695 - Fix up test to require the true duration, rather than the fake duration. r=jww,sr=cpearce
From the bug it corresponds to, this test was designed to make sure that we don't
read ogg duration by seeking (which causes network activity) when the server
offers the X-Content-Duration header. However, preserving this behavior requires
the ogg reader to be aware of the presence of network duration when it's reading
metadata, which isn't easily accomplished in our new model here. I think both ogg
and X-Content-Duration are sufficiently unimportant at this point that this is an
acceptable regression.
2015-06-08 09:22:44 -07:00
JW Wang
486a5586c0 Bug 1170081 - Add a tag to run only mochitests that use HTMLMediaElement::MozCaptureStream. r=cpearce. 2015-06-02 17:31:46 +08:00
Benjamin Chen
dbff5c47d3 Bug 1128448 - 1. Close the pref media.encoder.omx.enabled for newer android version. 2. Modify testcase and MR to eusure no timing issue. r=roc
--HG--
extra : rebase_source : fafdef6c6bf2f92b4e441b648a56805e2fa12aed
2015-05-25 17:37:45 +08:00
Jean-Yves Avenard
b6e238cc5e Bug 1168004: Part2. Add sample file. r=bholley
Add MP4 sample file where video starts at 0.8s and audio at 1.95s.

--HG--
rename : dom/media/test/bipbop-cenc-videoinit.mp4^headers^ => dom/media/test/bipbop-lateaudio.mp4^headers^
2015-05-25 19:28:02 +10:00
Paul Adenot
0ab779951a Bug 1127188 - Properly handle AudioContext.close() calls right after the creation of an AudioContext. r=ehsan
When the underlying audio stream platform is slow to start, it can take a little
while for the AudioContext to switch from its initial "suspended" state to
"running".

Authors can call AudioContext.close() right after (new AudioContext()),
that was resulting in a bogus "closed" -> "running" transition, that is now
handled properly by bailing out: the context will simply not report a switch to
"running".
2015-05-20 14:30:48 +02:00
Paul Adenot
78e7f42537 Bug 1166803 - Add an msg tag to mochitest.ini in dom/media/*. r=jesup 2015-05-22 10:57:51 +02:00
JW Wang
f4f888f4dc Bug 1105720 - remove flaky timeouts. r=cpearce. 2015-05-14 10:12:05 +08:00
Paul Adenot
be71cf7c3a Bug 1122218 - Fix off-by-one error when computing oscillator rendering range. r=karlt 2015-05-13 11:02:27 +02:00
Paul Adenot
2a953ecb3a Bug 1160153 - Add debug instrumentation. 2015-05-11 16:56:00 +02:00
Benjamin Chen
a7eca983ce Bug 1157654 - 1. Do not call MediaRecorder.stop immediately after MediaRecorder.start, because we want to receive an onerror callback. 2. Make the NofityError async. r=roc
--HG--
extra : rebase_source : 551ba51fec092c78b19c1ad9cae59b042d729775
2015-04-30 17:13:41 +08:00
Boris Zbarsky
eaa2b4b2c1 Bug 1159755. Stop forcing the media.eme.apiVisible preference to be true in our test harness. r=cpearce 2015-04-30 17:36:50 -04:00
Boris Zbarsky
ecba4cbc0c Bug 1159756. Stop forcing the media.mediasource.enabled preference to true and the media.mediasource.whitelist preference to false in the test harness. r=kinetik 2015-04-30 14:25:03 -04:00
James Willcox
a57b4d80c9 Bug 1153803 - Don't try to test canPlayType() with mp3 and OmxPlugin r=ajones 2015-04-29 10:38:06 -05:00
Paul Adenot
b6f4cfa31a Bug 1157994 - Ensure AudioContext operations are started and resolved in the same order. r=roc 2015-04-29 11:02:57 +02:00
Paul Adenot
afa067ebca Bug 1158427 - r=roc 2015-04-29 11:02:55 +02:00
JW Wang
a938555939 Bug 1159162 - Remove unnecessary testing prefs from media mochitests for they are defined in testing/profiles/prefs_general.js. r=kinetik. 2015-04-29 10:22:15 +08:00
JW Wang
7fcb4f12b5 Bug 752796 - longer timeout on slow platforms. r=cpearce. 2015-04-29 09:55:15 +08:00
Carsten "Tomcat" Book
e5f2272acf Backed out changeset e0b9c334c95a (bug 1138294) for frequent linux m3 test failures on a CLOSED TREE 2015-04-27 17:47:08 +02:00
Carsten "Tomcat" Book
ef8a8c5961 Backed out changeset 3f1afabc2aae (bug 1138294) 2015-04-27 17:46:34 +02:00
Carsten "Tomcat" Book
07caf3862d Backed out changeset 0c505784e8f6 (bug 1138294) 2015-04-27 17:46:29 +02:00
Carsten "Tomcat" Book
ee89ce46c8 Backed out changeset 1c0861d7a645 (bug 1138294) 2015-04-27 17:46:24 +02:00
Gerald Squelart
a89f2f11df Bug 1138294 - EME Mochitests with MSE stream switches, only switch video tracks, as audio switching is not currently supported. r=edwin
--HG--
extra : rebase_source : 70542d57b694850670af5b9c5c084f73dc31998f
2015-04-27 09:53:25 -04:00
Gerald Squelart
296236209d Bug 1138294 - EME Mochitests with MSE stream switches, missing headers. r=edwin
--HG--
extra : rebase_source : a6de4c8217cf9947a7b6d2f76aeb6a9ecd434129
2015-04-27 09:53:11 -04:00
Gerald Squelart
a5713ff08c Bug 1138294 - EME Mochitests with MSE stream switches. r=edwin
--HG--
extra : rebase_source : ab9b312cfd8951e762eaa1e92000879b589dbe98
2015-04-27 09:52:58 -04:00
Gerald Squelart
31419dcd37 Bug 1138294 - EME Mochitests with MSE stream switches, fix bug 1152151 to avoid unneeded loading. r=edwin
--HG--
extra : rebase_source : 8a93f886168d79ee53980f75bc1e194d1bc69019
2015-04-27 09:52:46 -04:00
JW Wang
8a444e6331 Bug 1157582 - enable ffmpeg decoders on Linux in EME mochitests. r=edwin. 2015-04-27 11:41:14 +08:00
JW Wang
b90b61a958 Bug 1091155 - don't check if 'playing' has fired for it depends on how fast decoding is which is not reliable. 2015-04-22 10:26:31 +08:00
Bobby Holley
d02296ec2f Bug 1154802 - Fix racey test_error_in_video_document.html. r=jww
This test assumes that the decoding machinery will have completed its work one
event-loop-round-trip after the document loads (see the executeSoon call), which
is a totally bogus assumption.
2015-04-17 09:26:05 -07:00
Ryan VanderMeulen
7501681b86 Bug 1021174 - Skip test_bug495145.html on OSX 10.6 due to intermittent crashes. 2015-04-15 14:35:58 -04:00
Ryan VanderMeulen
d7aa41835d Bug 847903 - Skip 691096-1.html on OSX 10.6 due to intermittent crashes. 2015-04-15 14:35:58 -04:00
JW Wang
a3cac582e2 Bug 1154564 - Add the ability to notify timeouts to MediaTestManager and remove flaky timeouts from test_playback.html. r=cpearce. 2015-04-15 11:12:57 +08:00
JW Wang
76f357064d Bug 1154559 - Remove flaky timeouts from manifest.js and register SimpleTest.registerCleanupFunction() to report unfinished tests. r=cpearce. 2015-04-15 11:12:46 +08:00
Gerald Squelart
0e79995cec Bug 1152151 - [EME] Some tests keep working after they should have finished, part 2: Only load that each test actually needs - r=edwin 2015-04-15 10:09:25 +10:00
Gerald Squelart
dd2237503f Bug 1152151 - [EME] Some tests keep working after they should have finished - r=edwin 2015-04-15 10:09:25 +10:00
Gerald Squelart
d84062c36d Bug 1142379 - Encrypt audio and video tracks using separate encryption settings - r=edwin
--HG--
rename : dom/media/test/bipbop-frag-cenc.xml => dom/media/test/bipbop-frag-cenc-audio.xml
rename : dom/media/test/bipbop-frag-cenc.xml => dom/media/test/bipbop-frag-cenc-video.xml
2015-04-14 17:53:16 +10:00
Gerald Squelart
cf90fe7bcf Bug 1152153 - [EME] test_eme_persistent_sessions does not handle multi-stream cases - r=edwin 2015-04-14 17:53:11 +10:00
Gerald Squelart
30c9580d1f Bug 1151665 - [EME] Add missing ^headers^ files to tests, part 2: Add missing files - r=edwin 2015-04-14 17:53:01 +10:00
Gerald Squelart
a61f4c8602 Bug 1151665 - [EME] Add missing ^headers^ files to tests, part 1: Update make-headers.sh to add headers for m4s files - r=edwin 2015-04-14 17:52:56 +10:00
Ms2ger
f1fc41b0e5 Bug 949614 - Use === for SimpleTest.is; r=Waldo
This is more likely to be correct, and a necessary step in case we ever want
to move to Object.is.

This keeps ise as an alias for is, and introduces is_loosely for the old
behaviour.
2015-04-14 15:28:13 +02:00
JW Wang
14e96990fc Bug 1080685 - add more debug aids and longer timeout. r=edwin. 2015-04-14 13:11:23 +08:00
JW Wang
14016d17d6 Bug 1153739 - Make Log() usable outside EME test cases. r=edwin. 2015-04-14 11:27:58 +08:00
JW Wang
9c67641aac Bug 1152645 - Enable EME mochitests on B2G. r=cpearce. 2015-04-13 14:35:41 +08:00
Ryan VanderMeulen
b263712851 Backed out 4 changesets (bug 1152151, bug 1152153, bug 1151693) for test_eme_persistent_sessions.html timeouts on multiple platforms.
Backed out changeset 395ef92d464f (bug 1152153)
Backed out changeset 5b2e38cdb64d (bug 1152151)
Backed out changeset 3a63c4087b9f (bug 1151693)
Backed out changeset 88b5d5b06e02 (bug 1151693)

CLOSED TREE
2015-04-10 00:21:43 -04:00
Gerald Squelart
aa40e32957 Bug 1152153 - [EME] test_eme_persistent_sessions does not handle multi-stream cases - r=edwin 2015-04-09 14:38:25 +10:00
Gerald Squelart
b1da31cf89 Bug 1152151 - [EME] Some tests keep working after they should have finished - r=edwin 2015-04-09 14:38:20 +10:00
Gerald Squelart
080b56ee3c Bug 1151693 - [EME] Tests to verify loaded data, p2: Add timers for fetch and appendBuffer - r=edwin 2015-04-09 14:38:15 +10:00
Gerald Squelart
f5265ee0c1 Bug 1151693 - [EME] Tests to verify loaded data, p1: Check size and checksum of received fragments - r=edwin 2015-04-09 14:38:10 +10:00
JW Wang
e04a40143a Bug 1151740 - pass the callback object as-is to SpecialPowers.exactGC(). r=edwin 2015-04-07 19:09:00 +02:00
Martijn Wargers
355c7b9dce Bug 902686 - Change manifest.js to use SpecialPowers.pushPrefEnv. r=edwin 2014-07-14 12:18:16 +02:00
Carsten "Tomcat" Book
082e20abf5 Backed out changeset a6460ccdc532 (bug 1151665) for linux e-10s m3 test failures in test_eme_persistent_sessions.html
--HG--
extra : rebase_source : 92ef0b6b8e6c81fd4432b9938db86db45d48d5bd
2015-04-07 16:41:50 +02:00
Carsten "Tomcat" Book
cad0d31a23 Backed out changeset b80d9840417a (bug 1151665)
--HG--
extra : rebase_source : 1786cb7207be3a3212371a1199ec8826134a0e25
2015-04-07 16:40:57 +02:00
Gerald Squelart
8b7d2f851c Bug 1151665 - [EME] Add missing ^headers^ files to tests, part 2: Add missing files. r=edwin 2015-04-06 19:33:00 +02:00
Gerald Squelart
d34259a7bc Bug 1151665 - [EME] Add missing ^headers^ files to tests, part 1: Update make-headers.sh to add headers for m4s files. r=edwin 2015-04-06 19:32:00 +02:00
Wes Kocher
0cfba0bdb0 Backed out changeset 2b82a84104ae (bug 1148179) 2015-04-03 13:09:36 -07:00
Gerald Squelart
1e83508718 Bug 1148179 - [EME] Tests to provide keys before track data. r=edwin
--HG--
rename : dom/media/test/test_eme_playback.html => dom/media/test/test_eme_playback_init_then_keys_then_data.html
2015-04-01 21:23:00 -04:00
Peter Van der Beken
42dd041fc8 Bug 1057908 - GeckoMediaPluginService needs to be proxied from Content processes to parent process. Part 6 - enable tests on e10s that were blocked on fixing bug 1057908.
--HG--
extra : rebase_source : b0cfe4b73ea595aef8532e26a1306dc2b9325b71
2015-03-24 00:09:41 +01:00
Gerald Squelart
19543b2301 Bug 1144409 - Test that encrypted events are fired for each initData. r=edwin 2015-03-26 18:58:00 -04:00
Ryan VanderMeulen
5afca0859f Backed out changeset 13c7176938cd (bug 1144409) 2015-03-31 11:16:21 -04:00
Gerald Squelart
b27ea35c32 Bug 1144409 - Test that encrypted events are fired for each initData. r=edwin 2015-03-26 18:58:00 -04:00
Jed Davis
08d1c1ef36 Bug 1149312 - Obtain test coverage for the file-backed case of MediaRecorder. r=roc
--HG--
extra : rebase_source : a32154a1d15308c204848e8b2fb7f0070cc4490f
2015-03-30 17:13:00 +02:00
Geoff Brown
53daff6584 Bug 1140148 - Update mochitest manifests for Android 4.3 emulator; r=dminor 2015-03-26 20:35:35 -06:00
Bobby Holley
ec38dc1002 Bug 852821 - Disable test on b2g. r=me 2015-03-25 17:46:25 -07:00
JW Wang
a4f6051da3 Bug 1146733 - remove PlayFragmented() from eme.js r=ediwn. 2015-03-25 09:55:20 +08:00
Wes Kocher
4563c148db Backed out changeset c58f5ffb38e0 (bug 1142379) 2015-03-23 16:06:30 -07:00
Wes Kocher
03bb94525b Backed out changeset f5a026d98faa (bug 1138294) 2015-03-23 16:06:28 -07:00
Gerald Squelart
6ff22dceea Bug 1138294 - EME Mochitests with MSE stream switches. r=edwin 2015-03-23 15:12:19 -04:00
Gerald Squelart
35cad88667 Bug 1142379 - Encrypt audio and video tracks using separate encryption settings. r=edwin
--HG--
rename : dom/media/test/bipbop-frag-cenc.xml => dom/media/test/bipbop-frag-cenc-audio.xml
rename : dom/media/test/bipbop-frag-cenc.xml => dom/media/test/bipbop-frag-cenc-video.xml
2015-03-22 12:41:00 -04:00
Edwin Flores
bee5912b34 Bug 1134434 - Change test_eme_non_fragmented to expect a loadedmetadata' event instead of encrypted' - r=cpearce 2015-03-23 15:31:15 +13:00
Jim Porter
d0a2187ca7 Bug 1039639 - Add support for Flac on Firefox OS. r=cajbir 2014-12-02 16:37:00 -05:00
Jonathan Griffin
d1c61bc9b6 Bug 1116187 - Disable failing mochitest-chrome tests for B2G, r=gbrown 2015-02-06 16:30:37 -08:00
Gerald Squelart
71b9547ba6 Bug 1121774 - Split audio and video tracks in EME MSE tests. r=edwin
--HG--
rename : dom/media/test/gizmo-frag-cenc.xml => dom/media/test/bipbop-frag-cenc.xml
rename : dom/media/test/test_eme_non_fragmented.html => dom/media/test/test_eme_non_mse_fails.html
2015-03-11 20:40:00 -04:00
James Willcox
99105b89d6 Bug 1084441 - Test for ability to play MP4 on Android Jelly Bean and higher r=cpearce 2015-03-11 09:22:55 -05:00
Chris Pearce
e49356bdaf Bug 1131387 - Rename MSE whitelist pref. r=kentuckyfriedtakahe 2015-03-09 16:24:21 +13:00
Chris Pearce
44bf110503 Bug 1140778 - Disable test_eme_obs_notification since it's testing functionality we're going to remove. r=test-only. 2015-03-09 16:24:18 +13:00
Bobby Holley
91d1025f91 Bug 1135170 - Remove garbage test_bug493187.html. rpending=mattwoodrow
This test is fundamentally racey - it loads very short video files (some less
than 1s), plays them, waits for timeupdate events to try to find just the right
moment to seek, performs a seek, and then checks various pieces of
playback-dependent state (while playing).

The specific issue I ran into was that the video would sometimes finish playing
before the 'seeked' event handler fired, which means that readyState is
HAVE_CURRENT_DATA (per spec). I could fiddle with the test a bit to handle this
case, but I think we're doing a disservice to ourselves by having it in the tree.
2015-03-06 19:17:24 -08:00
Bobby Holley
7d849fa87c Bug 1135170 - Fix up racey test_seek-1.html. rpending=mattwoodrow
The use of play() and pause() in the test is hugely problematic for short video
files and slow/laggy platforms. In particular, if playback has ended by
the time that we fire the 'seeked' event listener, then the ensuing play() will
put us back into seeking mode (seeking to 0), making the test fail.
2015-03-06 19:17:10 -08:00
Bobby Holley
e0fd85f315 Bug 1140675 - Disable failing tests on windows opt. r=me 2015-03-06 19:11:51 -08:00
Ryan VanderMeulen
7e5b8669ec Bug 752796 - Skip test_streams_element_capture.html on B2G Desktop. 2015-03-05 09:30:37 -05:00
Ryan VanderMeulen
b91731de6a Backed out changeset 816591da074c (bug 752796) for disabling the wrong test. 2015-03-05 09:34:32 -05:00
Ryan VanderMeulen
6cae5cc668 Bug 752796 - Skip test_streams_element_capture.html on B2G Desktop. 2015-03-05 09:30:37 -05:00
Ryan VanderMeulen
89130c33a2 Bug 1096270 - Skip test_streams_gc.html on B2G Desktop. 2015-03-05 09:29:19 -05:00
JW Wang
5974cd1b2b Bug 1113596 - add logs to track media element events. r=edwin 2015-03-04 18:43:00 +01:00
Sotaro Ikeda
10a57c9ce2 Bug 1128357 patch 3: test for video playback with dormant r=cpearce 2015-03-04 17:34:17 -08:00
Anish
4063a569ed Bug 958147 - Choose one of run-if or skip-if and get rid of the other.r=jmaher, mwargers 2015-03-03 08:46:37 -05:00
JW Wang
abdbbbdbee Bug 901102 - wait until ended events are received on all media elements before comparing end time. r=roc. 2015-03-03 11:09:42 +08:00
Edwin Flores
1937822f83 Bug 1131392 - Remove unused test code after disabling non-MSE EME - r=cpearce 2015-03-03 11:02:36 +13:00
Edwin Flores
ee5eb077e9 Bug 1131392 - Fix EME tests after disable non-MSE EME - r=cpearce 2015-03-03 11:02:36 +13:00