gecko-dev/testing/mochitest
Rob Wu 28d48c8abb Bug 1856464 - Include stack in Assert.rejects r=jmaher
Assert.rejects uses callbacks in a way that the stack no longer includes
the original caller in the stack when the stack is generated.
Consequently, when AssertionError tries to identify the caller, it is
unable to do so, resulting in a `null` stack.

This `null` stack is passed by the SpecialPowers glue to
`do_report_result` in xpcshell/head.js, which doesn't expect a `null`
stack, and consequently the following error is reported:
"TypeError: can't access property "filename", stack is null"

To fix this issue, we save the stack (including the caller) upon
entering `Assert.rejects`, and forward that to `AssertionError`.

Differential Revision: https://phabricator.services.mozilla.com/D189863
2023-10-26 09:59:26 +00:00
..
baselinecoverage Bug 1848994 Allow comments in manifestparser conditions. r=jmaher 2023-08-29 14:08:57 +00:00
BrowserTestUtils Bug 1859538 - Allow chrome stylesheets to be parsed in parallel. r=layout-reviewers,desktop-theme-reviewers,dao,Gijs,tlouw 2023-10-19 10:50:27 +00:00
chrome Bug 1848994 Allow comments in manifestparser conditions. r=jmaher 2023-08-29 14:08:57 +00:00
DoHServer
dynamic
embed
Http2Server
manifests
MochiKit
pywebsocket3 Bug 1858164 - Properly vendor pywebsocket3 r=jmaher,padenot 2023-10-18 07:58:09 +00:00
ssltunnel
static
tests Bug 1856464 - Include stack in Assert.rejects r=jmaher 2023-10-26 09:59:26 +00:00
__init__.py
api.js
bisection.py Bug 1786490 - reformat the tree using black 23.3.0 r=sylvestre,webdriver-reviewers,taskgraph-reviewers,whimboo,jmaher,ahal,perftest-reviewers,geckoview-reviewers,afinder,m_kato 2023-09-06 16:14:30 +00:00
browser-harness.xhtml
browser-test.js Bug 1692110 part 1: Perform automatic accessibility checks by capturing click events. r=ayeddi,Gijs 2023-10-09 18:20:11 +00:00
chrome-harness.js
chunkifyTests.js
document-builder.sjs
favicon.ico
harness.xhtml
ignorePrefs.json Bug 1839948 - Add browser.uiCustomization.state to ignorePrefs.json r=Gijs 2023-10-02 13:00:49 +00:00
leaks.py Bug 1765225 - sort leak data alphabetically for lsanleaks to help reduce duplicate bugs. r=mccr8 2023-10-11 21:38:13 +00:00
mach_commands.py Backed out changeset 7f8e4fcfcbfa (bug 1857516) for causing web platform test failures CLOSED TREE 2023-10-17 13:33:51 +03:00
mach_test_package_commands.py
manifest.json
manifest.webapp
manifestLibrary.js
mochitest_options.py
mochitest-e10s-utils.js
mochitestListingsUtils.js Backed out changeset b571d4eafa91 (bug 1858073) for causing failures on browser_ext_devtools_network.js. CLOSED TREE 2023-10-10 21:52:56 +03:00
moz.build Bug 1858164 - Properly vendor pywebsocket3 r=jmaher,padenot 2023-10-18 07:58:09 +00:00
pywebsocket_wrapper.py
README.txt
redirect.html
runjunit.py Bug 1786490 - reformat the tree using black 23.3.0 r=sylvestre,webdriver-reviewers,taskgraph-reviewers,whimboo,jmaher,ahal,perftest-reviewers,geckoview-reviewers,afinder,m_kato 2023-09-06 16:14:30 +00:00
runtests.py Bug 1715084 - Add directory to LeakSanitizer output. r=mccr8 2023-10-11 14:52:36 +00:00
runtestsremote.py
schema.json
server.js Backed out changeset b571d4eafa91 (bug 1858073) for causing failures on browser_ext_devtools_network.js. CLOSED TREE 2023-10-10 21:52:56 +03:00
shutdown-leaks-collector.js
ShutdownLeaksCollector.sys.mjs
start_desktop.js

See https://developer.mozilla.org/en/docs/Mochitest for detailed information on running and writing mochitests.