gecko-dev/remote/test/unit
Andreas Tolfsen de8c9e85cf bug 1553317: remote: improve error message on missing method; r=remote-protocol-reviewers,ochameau CLOSED TREE
We return with this rather omnious message when we are missing the
implementation of a CDP method:

	Error: Protocol error (Target.createBrowserContext): TypeError: inst[command] is not a function:

This patch improves the error message so that debugging is not
necessary to find out which domain or command is missing.

Ideally Session.jsm and ContentProcessSession.jsm would share the
same execute() function (there's really not reason they don't),
but that involves more work.

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

--HG--
extra : source : f3d44dbce7e3d1b529ce37b21a4d7471a918edd4
extra : histedit_source : df4d534565efb3e2babbc277a3aecce5d534ac39
2019-05-27 11:39:16 +00:00
..
test_Domains.js bug 1537775: remote: move method sanity check into Domains.splitMethod; r=ochameau 2019-04-04 09:39:28 +00:00
test_Error.js bug 1553317: remote: improve error message on missing method; r=remote-protocol-reviewers,ochameau CLOSED TREE 2019-05-27 11:39:16 +00:00
test_Session.js Bug 1533682 - Implement sessions. r=ato 2019-03-11 12:48:05 +00:00
xpcshell.ini bug 1540684: remote: write tests for Error.jsm's current behaviour; r=ochameau 2019-04-04 09:57:29 +00:00