gecko-dev/testing/xpcshell
Alexandre Poirot 3f9e98f591 Bug 1682780 - [devtools] Avoid pausing on thread actor's attach request. r=nchevobbe,jdescottes
We always used to pause when "attaching" the thread actor.
We ought to call ThreadActor's attach method first before using it.
And this method do various things:
  * Initialize the Debugger API, enable it, register various listeners, so that breakpoint can work,
  * Pause the current thread by starting a nested event loop
So that we also ought to resume the thread, by calling ThreadActor's resume right after attach.
Otherwise the page would be paused as soon as we open the DevTools.
Which sounds like something we might have wanted a very long time ago.
But sounds like pure legacy behavior from today's perspective.

Differential Revision: https://phabricator.services.mozilla.com/D99919
2021-01-07 15:02:11 +00:00
..
dns-packet Bug 1671885 - Add a test case for ech retry r=necko-reviewers,dragana 2020-12-07 13:45:20 +00:00
example Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
moz-http2 Bug 1680605 - Make https upgrade with https rr properly r=necko-reviewers,dragana 2021-01-07 11:15:58 +00:00
node-http2
node-ip
README
dbg-actors.js Bug 1614791 - Rename DebuggerServer to DevToolsServer. r=jdescottes 2020-02-17 10:28:24 +00:00
head.js Bug 1682780 - [devtools] Avoid pausing on thread actor's attach request. r=nchevobbe,jdescottes 2021-01-07 15:02:11 +00:00
mach_commands.py Bug 1681096 - python3 - pylint --py3k - W1645: Exception.message removed in Python 3 (exception-message-attribute) r=marionette-reviewers,aki,gbrown,maja_zf 2020-12-08 22:44:00 +00:00
mach_test_package_commands.py Bug 1681096 - python3 - pylint --py3k - W1636: map built-in referenced when not iterating (map-builtin-not-iterating) r=perftest-reviewers,aki,jmaher 2020-12-09 08:05:21 +00:00
moz.build Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
remotexpcshelltests.py Bug 1678079 - Add PSM support and xpcshell tests for ECH. r=keeler,kershaw 2020-12-04 15:26:17 +00:00
runxpcshelltests.py Bug 1681096 - python3 - pylint --py3k - W1619: from __future__ import division r=marionette-reviewers,perftest-reviewers,gbrown 2020-12-11 16:05:25 +00:00
selftest.py Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
xpcshellcommandline.py Bug 1562642 - Add missing license headers r=mhoye,marionette-reviewers,webdriver-reviewers,perftest-reviewers,tarek 2020-11-17 02:06:54 +00:00

README

Simple xpcshell-based test harness

converted from netwerk/test/unit

Some documentation at http://developer.mozilla.org/en/docs/Writing_xpcshell-based_unit_tests
See also http://wiki.mozilla.org/SoftwareTesting:Tools:Simple_xpcshell_test_harness