The constraints parameter should be optional in both. Also adding tests to check if we already have a local SDP when creating an answer.
Created attachment 218954 [details] Patch
In fact, the spec says that the check for local offer must be done when user is trying to set a description of type answer. I will modify this patch.
(In reply to comment #2) > In fact, the spec says that the check for local offer must be done when user is trying to set a description of type answer. I will modify this patch. Other patch for that would be better, since it will require to add some state tracking in RTCPeerConnectionHandlerMock
Created attachment 218959 [details] Patch
Comment on attachment 218959 [details] Patch Clearing flags on attachment: 218959 Committed r160436: <http://trac.webkit.org/changeset/160436>
All reviewed patches have been landed. Closing bug.