Commit Graph

77 Commits

Author SHA1 Message Date
Kris Maglione
d164995d7f Bug 1455176: Follow-up: Fix build bustage from xpcshell self-test. r=bustage CLOSED TREE
MozReview-Commit-ID: AZzLJyxyUxl
2018-04-19 15:11:15 -07:00
Kris Maglione
5b8a50a5bf Bug 1453881: Fix xpcshell self-test failure. r=bustage CLOSED TREE
MozReview-Commit-ID: CZBYSWjeVt9
2018-04-17 15:53:29 -07:00
Kris Maglione
d1edd69157 Bug 1446833: Part 2 - Stop using Task.jsm in xpcshell/head.js. r=florian
MozReview-Commit-ID: 6vSpwih9Fnr
2018-03-18 15:27:04 -07:00
Florian Quèze
a6871fc4a5 Bug 1421992 - Rename do_execute_soon, do_print and do_register_cleanup to executeSoon, info and registerCleanupFunction to match mochitest names, r=Gijs. 2017-12-21 11:08:23 +01:00
Florian Quèze
64424fda4b Bug 1421992 - Remove obsolete do_check_* implementations, r=Gijs. 2017-12-21 11:08:21 +01:00
Marco Castelluccio
385c71de52 Bug 1414962 - Increase timeout for xpcshell selftest in code coverage builds. r=jmaher 2017-11-09 11:33:31 +01:00
Steve Armand
7d1ce50630 Bug 1397852 - Enable flake8 linter on testing/xpcshell. r=ahal
MozReview-Commit-ID: CvZVXQPx8jF
2017-09-14 09:51:27 -04:00
Steve Armand
07ba3db5a9 Bug 1397855 - Enable py2 and py3 linter on testing/xpcshell. r=ahal
MozReview-Commit-ID: CsfIcI1ma7J
2017-09-07 21:15:35 -04:00
Sebastian Hengst
ee91a101d1 Backed out changeset ec61b7a902c2 (bug 1397855) for XPCshell bustage, at least on Android. r=backout on a CLOSED TREE 2017-09-12 21:42:12 +02:00
Steve Armand
fdf89b0329 Bug 1397855 - Enable py2 and py3 linter on testing/xpcshell. r=ahal
MozReview-Commit-ID: CsfIcI1ma7J
2017-09-07 21:15:35 -04:00
Geoff Brown
76461d9283 Bug 1390599 - 1. Simplify argument passing in xpcshell test harness; r=jmaher
The complexity of the xpcshell test harness has grown over time. I am reluctant
to make it more complex without first trying to simplify it. Here I consolidate
some of the argument passing between functions in an attempt to simplify some
important interfaces. Changes are strictly structural and should result in no
change in behavior.
2017-08-15 09:06:16 -06:00
Masatoshi Kimura
cbbc2b20e1 Bug 1390106 - Stop using versioned scripts in tests. r=jmaher
MozReview-Commit-ID: ErqU4M1f7Oj
2017-08-14 20:46:55 +09:00
Mike de Boer
3a739114d7 Bug 1380470 - Part 3 - Add add_task().skip() and add_task().only() for XPCShell unit tests. r=ahal
This suite already had `add_task.skip(aTask)` and `add_task.only(aTask)`
implemented, which required quite a bit more boilerplate code to get them right.
I removed this API in favor of `add_task(aTask).skip()` and `add_task(aTask).only()`
so that it's the same signature as Mochitest-browser and Mochitest-chrome.
I also noticed that `add_task` was defined twice, right above the other, which
was of course the latest version. I removed the latter.

MozReview-Commit-ID: BSCCXorzSlC
2017-07-18 15:07:38 +02:00
Chris Manchester
f119a83cfb Bug 1337667 - Un-skip xpcshell selftests for stylo now that they're passing. r=jryans
MozReview-Commit-ID: JwvIhSkgNa4
2017-05-17 12:58:49 -07:00
Gregory Szorc
7f37f5a0eb Bug 1337679 - stylo: Disable currently crashing xpcshell tests; r=ted
MozReview-Commit-ID: K99exhH1S8j
2017-02-10 17:59:43 -08:00
Marco Bonardo
56b7adb200 Bug 1332295 - do_register_cleanup should support generators and async functions. r=ted
MozReview-Commit-ID: BPCwPlWQ8G0
2017-01-19 16:07:46 +01:00
Phil Ringnalda
70924b035a Backed out changeset c13c36e04303 (bug 1332295) for extremely frequent Linux32 debug failures in test_be_conservative.js 2017-02-05 18:18:09 -08:00
Marco Bonardo
e09a568ade Bug 1332295 - do_register_cleanup should support generators and async functions. r=ted
MozReview-Commit-ID: BPCwPlWQ8G0
2017-01-19 16:07:46 +01:00
Mark Banner
ee78c2e613 Bug 503613 - Remove the tail file functionality from xpcshell; r=gps
MozReview-Commit-ID: JcglhFl89DX
2017-01-17 15:27:55 +00:00
Jeff Walden
e44db07070 Bug 1296814 - Remove Parser::reportBadReturn and report simpler errors that don't use the offset of a node as location. r=arai 2016-11-13 00:11:39 -08:00
Andrew Halberstadt
b5202cebb3 Bug 1316408 - Remove all b2g related code from testing/xpcshell, r=jmaher
MozReview-Commit-ID: KF5Pw5WBleX
2016-11-09 14:50:45 -05:00
Sebastian Hengst
faa4e03c25 Bug 1304829 - rename RELEASE_BUILD to RELEASE_OR_BETA: main part. r=ted,Mossop
MozReview-Commit-ID: 1lCt0xTMV5O
2016-10-08 11:14:49 +02:00
Steve Fink
eaa280d0ab Bug 1303804 - Fix Promise test that relies on non-release feature (async stacks), r=froydnj
MozReview-Commit-ID: A9qEg11NOt
2016-09-19 15:21:25 -07:00
Till Schneidereit
4f5be3e505 Bug 911216 - Part 24: Use promise rejection tracking to report unhandled rejections to the console. r=bz,Paolo 2016-03-22 16:22:24 +01:00
Nathan Froyd
76926a97e5 Bug 1265156 - always pass symbolsPath during xpcshell self tests; r=ted.mielczarek
If we botch things in libxul badly enough that startup cache
precompilation works, but xpcshell self tests fail, it's nice to get
understandable stacks for asserts or crashes inside libxul.
2016-04-18 13:20:35 -04:00
Ted Mielczarek
e44beeede9 bug 1255479 - make mach python-tests use TestResolver for discovery, make mach test work for python tests. r=nalexander
MozReview-Commit-ID: CK2Vh6gdnb0
2016-03-10 12:30:10 -05:00
Ted Mielczarek
ed5c22bc25 bug 1069556 - sync to Breakpad c53ed143108948eb7e2d7ee77dc8c0d92050ce7c. r=glandium, benwa
This commit contains a few things:
* Update our copy of google-breakpad to upstream c53ed143108948eb7e2d7ee77dc8c0d92050ce7c
* Get rid of all but one local patch, fold a few related local patches into one
* Misc build fixup to sync with upstream--adding a few new moz.build files,
  source files
* The final bits of unhooking Breakpad from the profiler:
** Revert to only building toolkit/crashreporter if MOZ_CRASHREPORTER.
** Stop building bits of Breakpad that we only needed for the profiler.
** Remove a few bits of profiler code that were used to interface with Breakpad.
** Remove toolkit/crashreporter/breakpad-logging, which was only used to
   suppress Breakpad logging for the in-process stackwalker.
* Upstream removed their Android-compat sys/ucontext.h because the Android NDK
  added it, but the bionic we're using for Gonk builds is too old, so add a
  copy of the previous version of those files to
  toolkit/crashreporter/gonk-include to keep Gonk building.
* Consolidate moz.build files under toolkit/crashreporter/google-breakpad/client/linux
2016-01-27 09:39:53 -05:00
Paolo Amadini
ed28d1b8f2 Bug 989960 - Unhandled rejections in DOM Promises should cause xpcshell tests to fail. r=Yoric 2016-02-03 12:58:03 +00:00
Wes Kocher
c8dce5079f Backed out changeset e8148cda7d85 (bug 989960) for xpcshell bustage 2016-02-01 08:25:19 -08:00
Paolo Amadini
743e1ad1ea Bug 989960 - Unhandled rejections in DOM Promises should cause xpcshell tests to fail. r=Yoric 2016-01-30 18:53:56 +00:00
Phil Ringnalda
2f2864cc29 Back out 3958782fe187 (bug 989960) for Android crashes in test_watchdog_default.js 2016-01-29 20:12:44 -08:00
Paolo Amadini
4aac6813ea Bug 989960 - Unhandled rejections in DOM Promises should cause xpcshell tests to fail. r=Yoric 2016-01-29 13:19:53 +00:00
James Graham
1e629f9bf0 Bug 1193224 - Remove vestigial --tests-root-dir option from xpcshell tests, r=ahal 2015-09-17 10:51:00 +01:00
Hiroyuki Ikezoe
ef939ac4ca Bug 1150818 - Part 2: Load mozinfo.json into xpcshell tests. r=ted 2015-08-20 16:06:00 -04:00
Chris Manchester
aa30a01aa0 Bug 487494 - Pipe xpcshell's output through a stack fixer.;r=ted 2015-06-11 11:21:13 -07:00
Chris Manchester
0e4c4a9b01 Bug 487494 - Add an xpcshell selftest for readable stacks from assertions.;r=ted 2015-06-11 11:21:12 -07:00
Hiroyuki Ikezoe
398b012fba Bug 1150822 - Need ability to skip each test on a given conditions. r=ted 2015-04-27 20:39:00 +02:00
Mark Hammond
ff13ce8179 Bug 1074014 - allow verbose=true in xpcshell test manifests. r=ted 2015-04-13 10:32:55 +10:00
Krishnashish Gogoi
44528888a9 Bug 982852 - Added a test case for checking multiple add_task() tests without run_test(); r=gps
There's a test for add_task() in selftest.py called ADD_TASK_MULTIPLE, which tests if
multiple add_task() tests are working. The test added in this commit does the exact same
except without run_test(). Since the original tests included this, I thought it would make
a good case for checking if the removal of run_test() is working as expected. Please remove
if this is unnecessary.
2015-04-03 02:24:24 +05:30
Krishnashish Gogoi
91ab0e8e44 Bug 982852 - Add failing cases to selftest.py when run_test() is not present; r=gps
Since the simple test cases before this bug had cases for both passing and
failing, it would be a good idea to follow suit and add similar failing tests
for when run_test() is omitted.

Like the other simple tests defined in selftest.py, SIMPLE_FAILING_TEST,
ADD_TEST_FAILING, etc., it follows a similar pattern except these are done
without run_test() defined.
2015-04-03 02:12:30 +05:30
Krishnashish Gogoi
c9cdeeae65 Bug 982852 - Add cases to check that tests without run_test() work; r=gps
Four new test cases have been added to testing/xpcshell/selftest.py.
These new tests check that tests where run_test() is not defined
work properly.

The test cases check the following cases:
1. when only add_test() is used.
2. when only add_task() is used.
3. when both add_task() and add_test() is used.
4. when a test file is empty, i.e. contains no add_test(), add_task() or
  run_test().

Test bodies only consist of do_check_true(true) calls to make up a minimal
test without run_test() in the same vein as the other simple tests defined
previously.

Also, broke a comment up that was too long.
2015-04-03 01:43:54 +05:30
Andrew McCreight
37194d8f00 Bug 1100695 - Wait for child to finish in test_child_assert XPCShell unit test. r=chmanchester 2014-11-24 11:34:03 -08:00
Chris Manchester
df3fd4e4d2 Bug 1098121 - Disable xpcshell selftest for timeouts due to intermittent timeouts. r=ted 2014-11-13 12:15:41 -05:00
Chris Manchester
79e58e8dea Bug 1093834 - Ensure _TEST_NAME is passed to the child process in xpcshell's head.js. r=ted 2014-11-04 20:02:13 -05:00
Chris Manchester
417bb77650 Bug 1033126 - Convert xpcshell tests to use mozlog.structured format for logging.;r=ted 2014-10-22 15:53:42 -04:00
Stephen Pohl
1088e58cd4 Mac v2 signing - Bug 1060562 - Update xpcshell-tests for the new v2 bundle structure on OSX. r=jmaher 2014-09-29 11:51:29 -07:00
Mike Shal
b17e0d8736 Bug 1036557 - Fix 'make check' with no MOZ_OBJDIR; r=glandium 2014-07-07 19:55:51 -04:00
Chris Manchester
2b35336516 Bug 1036639 - Report correct filename from xpcshell/head.js when using do_check_* assertion functions.;r=gps 2014-07-09 20:24:59 -04:00
Chris Manchester
be7bf54e23 Backed out changeset c33ec815962f (bug 1036639) for windows checktest failures. 2014-07-09 21:51:07 -04:00
Chris Manchester
e4262b2a4c Bug 1036639 - Report correct filename from xpcshell/head.js when using do_check_* assertion functions.;r=gps 2014-07-09 20:39:18 -04:00