434 Commits

Author SHA1 Message Date
Andreas Pehrson
588b4d1973 Bug 1157701 - Properly remove usage of Array.prototype.includes(). r=jib
--HG--
extra : rebase_source : dbf2ef1c7da0878c163d2647211b3a75f001055b
2015-04-28 21:24:00 +02:00
ziyunfei
e1db0f779e Bug 1102219 - Part 4: Replace String.prototype.contains with String.prototype.includes in chrome code. r=till 2015-04-30 00:32:05 +09:00
Andreas Pehrson
38a44a999d Bug 1157701 - Remove usage of Array.prototype.includes() from test_peerConnection_replaceTrack.html. r=jib
--HG--
extra : transplant_source : F%A0oy%AC%29%F8%0F%A54Cey%95%7B_14%AB%03
2015-04-24 13:29:19 +08:00
Andreas Pehrson
f1d26a537d Bug 1155089 - Part 3: Test replacing with WebAudio track in track_peerConnection_replaceTrack.html. r=jib
--HG--
extra : rebase_source : df2ebd47ca3cf0854e8663623d5de18c2e730d3d
2015-04-22 11:59:43 +08:00
Andreas Pehrson
20457a4dc1 Bug 1155089 - Part 2: Break out WebAudio input/output checker to PeerConnectionTest. r=mt
--HG--
extra : rebase_source : b92110f5d9c234c93bea4c7442f6ff15f344c16e
2015-04-22 11:59:43 +08:00
Gordon Klaus
37588c7d15 Bug 1155140 - Removed mentions of deleted parameters from test helper documentation. r=mt 2015-04-16 04:56:00 -04:00
Paul Adenot
e32b404e54 Bug 1094764 - Implement AudioContext.suspend and friends. r=roc,ehsan
- Relevant spec text:
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-suspend-Promise
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-resume-Promise
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-close-Promise
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-state
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-onstatechange

- In a couple words, the behavior we want:
    - Closed context cannot have new nodes created, but can do decodeAudioData,
    and create buffers, and such.
    - OfflineAudioContexts don't support those methods, transitions happen at
    startRendering and at the end of processing. onstatechange is used to make
    this observable.
    - (regular) AudioContexts support those methods. The promises and
    onstatechange should be resolved/called when the operation has actually
    completed on the rendering thread.  Once a context has been closed, it
    cannot transition back to "running". An AudioContext switches to "running"
    when the audio callback start running, this allow authors to know how long
    the audio stack takes to start running.
    - MediaStreams that feed in/go out of a suspended graph should respectively
    not buffer at the graph input, and output silence
    - suspended context should not be doing much on the CPU, and we should try
    to pause audio streams if we can (this behaviour is the main reason we need
    this in the first place, for saving battery on mobile, and CPU on all
    platforms)

- Now, the implementation:
    - AudioNodeStreams are now tagged with a context id, to be able to operate
    on all the streams of a given AudioContext on the Graph thread without
    having to go and lock everytime to touch the AudioContext. This happens in
    the AudioNodeStream ctor. IDs are of course constant for the lifetime of the
    node.
    - When an AudioContext goes into suspended mode, streams for this
    AudioContext are moved out of the mStreams array to a second array,
    mSuspendedStreams. Streams in mSuspendedStream are not ordered, and are not
    processed.
    - The MSG will automatically switch to a SystemClockDriver when it finds
    that there are no more AudioNodeStream/Stream with an audio track. This is
    how pausing the audio subsystem and saving battery works. Subsequently, when
    the MSG finds that there are only streams in mSuspendedStreams, it will go
    to sleep (block on a monitor), so we save CPU, but it does not shut itself
    down. This is mostly not a new behaviour (this is what the MSG does since
    the refactoring), but is important to note.
    - Promises are gripped (addref-ed) on the main thread, and then shepherd
    down other threads and to the GraphDriver, if needed (sometimes we can
    resolve them right away). They move between threads as void* to prevent
    calling methods on them, as they are not thread safe. Then, the driver
    executes the operation, and when it's done (initializing and closing audio
    streams can take some time), we send the promise back to the main thread,
    and resolve it, casting back to Promise* after asserting we're back on the
    main thread. This way, we can send them back on the main thread once an
    operation has complete (suspending an audio stream, starting it again on
    resume(), etc.), without having to do bookkeeping between suspend calls and
    their result. Promises are not thread safe, so we can't move them around
    AddRef-ed.
    - The stream destruction logic now takes into account that a stream can be
    destroyed while not being in mStreams.
    - A graph can now switch GraphDriver twice or more per iteration, for
    example if an author goes suspend()/resume()/suspend() in the same script.
    - Some operation have to be done on suspended stream, so we now use double
    for-loop around mSuspendedStreams and mStreams in some places in
    MediaStreamGraph.cpp.
    - A tricky part was making sure everything worked at AudioContext
    boundaries.  TrackUnionStream that have one of their input stream suspended
    append null ticks instead.
    - The graph ordering algorithm had to be altered to not include suspended
    streams.
    - There are some edge cases (adding a stream on a suspended graph, calling
    suspend/resume when a graph has just been close()d).
2015-02-27 18:22:05 +01:00
Martin Thomson
a445924956 Bug 1153314 - Test IdP login flow, r=jib 2015-04-15 14:19:21 -07: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
Andreas Pehrson
0efa763940 Bug 1149494 - Part 2. Add mochitest. r=jesup
--HG--
extra : rebase_source : 95a1de85dfe6c3036a16f9cdd09df43e70fa0888
2015-04-08 17:59:30 +12:00
Byron Campen [:bwc]
a892b4a703 Bug 1149838: Do not suppress onnegotiationneeded before the first offer/answer. r=mt
--HG--
extra : rebase_source : 488491dfe91fd7cd179dc898d9d7733e49d9368f
2015-04-01 08:51:32 -07:00
Martin Thomson
67a2866b8b Bug 996238 - Move more of the test code to promises. r=jib
--HG--
extra : transplant_source : %2B%95%D0%21%B6%27%2B%AA%B9%A2%A2%DBQ%88%0F%3E3%2Am0
2015-04-01 11:21:06 -07:00
Martin Thomson
6a75bdd7f8 Bug 996238 - Add test for asymmetric media isolation across PC. r=ekr
--HG--
extra : transplant_source : -%0C%211%11%84%C2%F8%E8%9C%C3.%BAr%B5%80T259
2015-04-01 11:21:06 -07:00
Byron Campen [:bwc]
3ff500ee41 Bug 1149298 - Part 1: Test cases. r=drno
--HG--
extra : rebase_source : a29be5c74c4bddfe672159b0de12a61e8540b9df
2015-03-30 15:46:49 -07:00
Byron Campen [:bwc]
c72b942b7e Bug 1148649: Reenable video multistream mochitests on debug e10s. r=drno
--HG--
extra : rebase_source : 5e29d37c289cb67148bafe7947191bb6de1338a6
extra : amend_source : b89129bcedf027ffc5c19cc17d5faeba6eb545b6
2015-03-26 13:03:29 -07:00
Geoff Brown
53daff6584 Bug 1140148 - Update mochitest manifests for Android 4.3 emulator; r=dminor 2015-03-26 20:35:35 -06:00
Byron Campen [:bwc]
ae13d463e0 Bug 1145407: Another mochitest 3 bustage fix on CLOSED TREE. r=bustage
--HG--
extra : amend_source : b35ca98cbfb6d3e745dbb1d7fbfa36f9f3ba93a4
2015-03-23 10:29:53 -07:00
Byron Campen [:bwc]
534d79b207 Bug 1145407: Fix mochitest 3 bustage on CLOSED TREE. r=bustage
--HG--
extra : rebase_source : d7e281e62c03169b80e07bdf205c40455fb231e9
2015-03-23 10:21:23 -07:00
Byron Campen [:bwc]
286f76f96c Bug 1145407: Add mochitests that cause multiple tracks of the same type to be placed in the same remote stream. r=mt
--HG--
extra : rebase_source : a713ec8aa5e387f2d414c02d5932977f128129cb
extra : amend_source : fdbe09e35959651df4d0004c1cfe9b4e5bb47097
2015-03-19 16:18:42 -07:00
Wes Kocher
14f75f943c Merge m-c to inbound a=merge CLOSED TREE 2015-03-20 18:01:17 -07:00
Byron Campen [:bwc]
3d398312bf Bug 1141230: Stop using getLocalStreams() to drive checking of various things in the mochitest suite. r=jib
--HG--
extra : rebase_source : 27e7d4f3d86d33a1c4e046fa0e677c4d3bccc247
2015-03-12 17:30:12 -07:00
Alexandre Lissy
77d1e01b3c Bug 1144080 - Disable mochitests on Mulet for TaskCluster. r=ahal 2015-03-20 00:45:00 +01:00
Andreas Pehrson
ba688bded0 Bug 1142688 - Wait for actual audio data on remote side before checking audio sanity. r=jesup,padenot 2015-03-16 16:32:19 +08:00
Jan-Ivar Bruaroey
d132e36539 Bug 1136871 - cleanup RtpSenders accounting to not rely on streams r=mt 2015-03-11 12:24:38 -04:00
Jan-Ivar Bruaroey
1a0a70d9a2 Bug 1136871 - test invalid replaceTrack arg r=standard8 2015-02-27 11:23:46 -05:00
Mark Banner
de623dc60c Bug 1136871: replaceTrack testcase r=jib 2015-03-11 15:29:37 -04:00
Alexandre Lissy
1e7c8bf446 Bug 1141029 - Disabling mochitests on Mulet with parity to B2G Desktop for taskcluster. r=ahal 2015-03-11 08:15:00 -04:00
Andreas Pehrson
7f6daeea34 Bug 1081819 - Add mochitest for piping WebAudio in and out of PeerConnection. r=jesup,padenot 2015-03-02 18:07:20 +08:00
Nils Ohlmeier [:drno]
7bfa9a84ae Bug 1139094 - Fix multiple steeplechase test execution problems. r=bwc, r=mt 2015-03-03 21:33:00 -05:00
Phil Ringnalda
df31a989de Backed out 3 changesets (bug 1081819) for frequent mochitest-e10s failures
Backed out changeset b78fd38002f5 (bug 1081819)
Backed out changeset ff063b9a1ea2 (bug 1081819)
Backed out changeset 322d60fc413e (bug 1081819)
2015-03-07 18:14:05 -08:00
Andreas Pehrson
dfcdf561b0 Bug 1081819 - Add mochitest for piping WebAudio in and out of PeerConnection. r=jesup,padenot 2015-03-02 18:07:20 +08:00
Andreas Pehrson
0c4f4a6d1d Bug 931903 - Add mochitest for forwarding a stream from one PC to another. r=jesup,drno 2015-02-22 22:45:00 +01:00
Martin Thomson
328712fa16 Bug 975144 - Disabling b2g tests due to bug 1135339, r=jib 2015-02-22 10:57:21 +13:00
Martin Thomson
f2ac9cf5f5 Bug 975144 - Updating identity tests to use promises, r=jib 2015-02-22 10:57:21 +13:00
Martin Thomson
6146b91446 Bug 975144 - Enabling tests on e10s, r=jib 2015-02-22 10:57:21 +13:00
Martin Thomson
49b3699492 Bug 975144 - Adding IdP loading tests, r=jib 2015-02-22 10:57:20 +13:00
Martin Thomson
6bbea481b8 Bug 975144 - Updating RTC identity tests, r=jib 2015-02-22 10:57:20 +13:00
Martin Thomson
bca489e4fb Bug 975144 - Updating test IdP for new API, r=jib 2015-02-22 10:57:20 +13:00
Jan-Ivar Bruaroey
8c1b9f1777 Bug 1119335 - support ideal/exact constraint syntax. r=mrbkap, r=mt 2015-02-20 17:06:26 -05:00
Nils Ohlmeier [:drno]
b25a2bb677 Bug 1089798 - MediaStream ID tests. r=bwc 2015-02-17 22:54:00 -05:00
Byron Campen [:bwc]
248d6e6d79 Bug 1017888 - Part 2: Testing for renegotiation. r=mt, r=drno
--HG--
extra : rebase_source : 7434ef35ea6294966220f20431941e0790c4221c
2015-02-10 10:17:03 -08:00
Byron Campen [:bwc]
1f815978b4 Bug 1017888 - Part 1: Renegotiation support. r=mt, r=smaug
--HG--
extra : rebase_source : df1c2962ee88f75c6ad676b9cd79978a87dafb65
extra : amend_source : c938904331323ff3565624795ac76d82502f43fb
2014-12-10 15:53:54 -08:00
Martin Thomson
4bc1d349bc Bug 1063290 - Disable most gUM tests on Android too. r=jib
--HG--
extra : transplant_source : %DDD%90%E4%C0%DD%E0S%CB%B2q5%EE%19%8B/%E2%CF%A6%F0
2015-02-07 11:39:35 +11:00
Jan-Ivar Bruaroey
4993ea6729 Bug 997365 - End support for hold-out mandatory/optional: facingMode constraint on mobile. r=smaug, r=mt 2015-02-02 10:11:00 -05:00
Martin Thomson
0f8d322e88 Bug 1063290 - Disabling extended gUM tests on gonk for intermittent failures, r=jib
--HG--
extra : rebase_source : 98b9a4f37c24d8aa7c18a0d9179831da63bf98e9
2015-01-30 13:00:29 -08:00
Martin Thomson
dd9a80adbd Bug 1119593 - Dealing with multiple streams, r=drno
--HG--
extra : rebase_source : 452405054841a7c9fe4582513f003c86a22237ca
2015-01-28 14:05:57 -08:00
Martin Thomson
82713d6e5c Bug 1119593 - Fixing test preconditions for steeplechase, r=drno
--HG--
extra : rebase_source : cc3b301447d312f7b7ab1a02340b8d4dbd750fb1
2015-01-28 14:05:57 -08:00
Martin Thomson
c29940202d Bug 1119593 - Aggressively removing boilerplate on tests, r=drno
Conflicts:
	dom/media/tests/mochitest/test_getUserMedia_exceptions.html

--HG--
extra : rebase_source : 61d146fe146021d9114a67d6577ca749b30e2d69
2015-01-28 14:05:57 -08:00
Martin Thomson
ede450c335 Bug 1119593 - Re-enable per-data-channel close, r=drno
--HG--
extra : rebase_source : 8cde653955f6175e0c751f8b677319b0be299e86
2015-01-28 14:05:57 -08:00
Martin Thomson
0d676fad94 Bug 1119593 - Adding test for legacy navigator.mozGetUserMedia, r=drno
Conflicts:
	dom/media/tests/mochitest/mochitest.ini

--HG--
extra : rebase_source : 60c2cc3a7eb39d82dc111e2b27c60fc03425b6ee
2015-01-28 14:05:57 -08:00