Граф коммитов

54 Коммитов

Автор SHA1 Сообщение Дата
Till Schneidereit b0d2250794 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 4872952e02 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 7b1faa29bc bug 1255479 - make `mach python-tests` use TestResolver for discovery, make `mach test` work for python tests. r=nalexander
MozReview-Commit-ID: CK2Vh6gdnb0

--HG--
extra : rebase_source : 2b1b05224ade41ad500dc66116beb3b091db9cde
extra : amend_source : 349f7cc876383d873acb1c73c0118d394f39284d
extra : histedit_source : 6d1d44188bb3a4fc69da2900e8118ce2a88a5fd7
2016-03-10 12:30:10 -05:00
Ted Mielczarek ea6f9a1958 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

--HG--
rename : toolkit/crashreporter/google-breakpad/src/common/pathname_stripper.h => toolkit/crashreporter/google-breakpad/src/processor/pathname_stripper.h
rename : toolkit/crashreporter/google-breakpad/src/common/pathname_stripper_unittest.cc => toolkit/crashreporter/google-breakpad/src/processor/pathname_stripper_unittest.cc
extra : histedit_source : 43e65f5432657f548cac5aa7936461e58454c3b6%2C7b56ccc79d9d58ebde0583d920f3593e25212621
extra : rebase_source : f6dbfb8fb2ba5b27e63b26d57c404962679c7a76
extra : commitid : DMQlXPms868
extra : source : 09fd4f3ab6e764016fe073efb226f03b5969af59
extra : intermediate-source : 16f9d3a6d2ef6a6efd088e3b8eff0a4723daef8f
2016-01-27 09:39:53 -05:00
Paolo Amadini 8b8676204b Bug 989960 - Unhandled rejections in DOM Promises should cause xpcshell tests to fail. r=Yoric
--HG--
extra : commitid : yWjnDGhk9j
extra : rebase_source : 24228660defd6971a621d52eee0b79be823c6926
extra : amend_source : ef8de24265fa9026b0f764a63453b816442f7232
extra : source : 3958782fe187026cbc3755ad6eae6920e67fa7d2
2016-02-03 12:58:03 +00:00
Wes Kocher 1b65a8ee2f Backed out changeset e8148cda7d85 (bug 989960) for xpcshell bustage
--HG--
extra : commitid : Bxwy5tzArNN
extra : rebase_source : a15513777534e54d05fda5037f24e15ac089b313
2016-02-01 08:25:19 -08:00
Paolo Amadini ecd744bdef Bug 989960 - Unhandled rejections in DOM Promises should cause xpcshell tests to fail. r=Yoric
--HG--
extra : commitid : 6aGIHyyYqSo
extra : rebase_source : 38fbf5e49d06970555a088c5ea3f8379e2064767
extra : source : 3958782fe187026cbc3755ad6eae6920e67fa7d2
2016-01-30 18:53:56 +00:00
Phil Ringnalda d42eb10039 Back out 3958782fe187 (bug 989960) for Android crashes in test_watchdog_default.js 2016-01-29 20:12:44 -08:00
Paolo Amadini aceee7aafc Bug 989960 - Unhandled rejections in DOM Promises should cause xpcshell tests to fail. r=Yoric
--HG--
extra : commitid : IkcxJUamV6B
extra : rebase_source : 07255457ec607c45037f832ca44a01f17a00da78
2016-01-29 13:19:53 +00:00
James Graham 39b6367572 Bug 1193224 - Remove vestigial --tests-root-dir option from xpcshell tests, r=ahal 2015-09-17 10:51:00 +01:00
Hiroyuki Ikezoe d0b622ad0f Bug 1150818 - Part 2: Load mozinfo.json into xpcshell tests. r=ted 2015-08-20 16:06:00 -04:00
Chris Manchester ba2b70542e Bug 487494 - Pipe xpcshell's output through a stack fixer.;r=ted
--HG--
extra : commitid : CqKC3uLqzB
2015-06-11 11:21:13 -07:00
Chris Manchester cdcbf20157 Bug 487494 - Add an xpcshell selftest for readable stacks from assertions.;r=ted
--HG--
extra : commitid : HBFkFrdYLoe
2015-06-11 11:21:12 -07:00
Hiroyuki Ikezoe fc6e6e9d62 Bug 1150822 - Need ability to skip each test on a given conditions. r=ted 2015-04-27 20:39:00 +02:00
Mark Hammond 1a137f9914 Bug 1074014 - allow verbose=true in xpcshell test manifests. r=ted 2015-04-13 10:32:55 +10:00
Krishnashish Gogoi e4c0a72b3f 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.

--HG--
extra : rebase_source : f6617259056db7ac7a658a89063694f51408b8ce
2015-04-03 02:24:24 +05:30
Krishnashish Gogoi 969ba3e8a7 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.

--HG--
extra : rebase_source : a1ef9a7b9e8274fe981864c5e021c80d2d66f7ec
2015-04-03 02:12:30 +05:30
Krishnashish Gogoi bf13167dea 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.

--HG--
extra : rebase_source : 48d055680ba8108816ecbe07008496c5281f46cc
2015-04-03 01:43:54 +05:30
Andrew McCreight c0b02a0607 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 986e870090 Bug 1098121 - Disable xpcshell selftest for timeouts due to intermittent timeouts. r=ted 2014-11-13 12:15:41 -05:00
Chris Manchester 733221f8b6 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 08900914f0 Bug 1033126 - Convert xpcshell tests to use mozlog.structured format for logging.;r=ted 2014-10-22 15:53:42 -04:00
Stephen Pohl 579061de7c 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 880e17ce86 Bug 1036557 - Fix 'make check' with no MOZ_OBJDIR; r=glandium 2014-07-07 19:55:51 -04:00
Chris Manchester e56d4ffed3 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 455a63e73c Backed out changeset c33ec815962f (bug 1036639) for windows checktest failures. 2014-07-09 21:51:07 -04:00
Chris Manchester f5c5f6ebf6 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
Mike Hommey bc0709dc9e Bug 762358 - Re-run configure when mozconfig changed in a significant way. r=gps
This adds a format option to mach environment and uses it in client.mk to
create a .mozconfig.json in the objdir, containing all the relevant data
from mozconfig. If the mozconfig doesn't change in a way that alters that
data, we still skip configure.

At the same time, use mach environment in place of mozconfig2configure and
mozconfig2client-mk, which makes us now have only one mozconfig reader.

Also, in the mozconfig reader, keep track of environment variables (as
opposed to shell variables), so that changes such as a variable that was
exported not being exported anymore is spotted. At the opposite, in order
for irrelevant environment variable changes not to incur in re-running
configure, only a set of environment variables are stored when they are
unmodified. Otherwise, changes such as using a different terminal window,
or even rebooting, would trigger reconfigures.

Finally, make mach environment emit both MOZ_OBJDIR and OBJDIR for
client.mk, and cleanup some objdir-related things in client.mk..
At the same time, make the mozconfig reader take MOZ_OBJDIR from the
environment if it is defined there and not in the mozconfig.
2014-07-03 07:15:31 +09:00
David Rajchenbach-Teller 70287d27d7 Bug 1023787 - Make Task.jsm stack rewriting play nicely with xpcshell and mochi tests. r=paolo, r=mikedeboer 2014-06-20 14:23:00 -04:00
Paolo Amadini 935a3ba73e Bug 991750 - Convert remaining legacy uses of promise.js to Promise.jsm. rs=Yoric 2014-04-07 16:18:43 +02:00
Ted Mielczarek 5ba7b3d366 bug 990266 - use mozinfo in xpcshell selftests r=jmaher 2014-04-01 16:02:58 -04:00
David Rajchenbach-Teller ce63e5f311 Bug 988844 - do_register_cleanup now accepts asynchronous cleanup functions. r=ted 2014-03-31 04:36:00 +02:00
Gregory Szorc 7b9f6f570a Bug 972093 - Detect run_next_test() during add_task(); r=ted, rnewman
If an xpcshell test called run_next_test() from inside an add_task(),
bad things would happen. This patch detects that behavior and aborts the
test immediately with an actionable error message.

--HG--
extra : rebase_source : c5cf11070421b95a6fcf476d0a86289a3d0ba73a
extra : amend_source : cec6ad2a751bba01e7d4ecbff0735b39e3326efb
2014-02-12 16:47:29 -08:00
Mark Hammond e833b2dcf1 Bug 937370 - Errors loading xpcshell test file may be silently discarded. r=ted 2013-11-22 17:36:16 +11:00
Mark Hammond f0dce08e31 Bug 937412 - Syntax errors in xpcshell tests don't report the error. r=ted 2013-11-22 17:32:28 +11:00
Chris Manchester c034a8f7e5 Bug 896087 - Output structured messages in head.js, interpret them in runxpcshelltests.py; r=ted 2013-07-22 19:44:25 -07:00
Chris Manchester f87e885a4d Bug 896087 - self tests exercising behavior of current log parsing; r=ted 2013-07-19 16:20:07 -07:00
Ryan VanderMeulen 13f6ac3ccb Backed out changesets 57fc6c256d1f and a6bb570b7f41 (bug 896087) checktest failures on a CLOSED TREE. 2013-08-22 15:55:54 -04:00
Chris Manchester 936729c545 Bug 896087 - Output structured messages in head.js, interpret them in runxpcshelltests.py. r=ted 2013-07-22 19:44:25 -07:00
Chris Manchester 4357bc2659 Bug 896087 - Self tests exercising behavior of current log parsing. r=ted 2013-07-19 16:20:07 -07:00
Mihnea Dobrescu-Balaur bfdce106f0 Bug 887054 - Part 1: Refactor xpcshell test harness to support parallel test runs, disabled in automation. r=ahal, r=ted 2013-07-19 19:27:14 -07:00
Irving Reid 57871baf8f Bug 890555 - Handle case of non-Object argument to do_throw; r=ted 2013-07-13 12:37:13 -04:00
Dave Townsend cd10174200 Bug 793928: Switch users of the promise library to the new location and move tests files. r=gavin
--HG--
rename : toolkit/addon-sdk/test/Makefile.in => addon-sdk/test/Makefile.in
rename : toolkit/addon-sdk/test/unit/head.js => addon-sdk/test/unit/head.js
rename : toolkit/addon-sdk/test/unit/test_promise.js => addon-sdk/test/unit/test_promise.js
rename : toolkit/addon-sdk/test/unit/xpcshell.ini => addon-sdk/test/unit/xpcshell.ini
2013-02-01 11:43:15 -08:00
Gregory Szorc c773cbcbec Bug 819033 - Part 1: Add add_task() to xpcshell runner; r=ted
You can now register generator functions containing Task.spawn friendly
tests. This makes writing unit tests for promise-based APIs much easier.
2012-12-11 10:53:43 -08:00
Ed Morley 7e37f21a17 Backout fac650c31656 & 907a846d368f (bug 819033) for xpcshell failures 2012-12-11 20:29:18 +00:00
Gregory Szorc 5fe455e8e0 Bug 819033 - Part 1: Add add_task() to xpcshell runner; r=ted
You can now register generator functions containing Task.spawn friendly
tests. This makes writing unit tests for promise-based APIs much easier.
2012-12-11 10:53:43 -08:00
Gregory Szorc 5bdd6a6a7c Bug 739753 - Fatal handling of invalid head and tail files in xpcshell test runner; r=ted 2012-03-28 16:05:22 -07:00
Gregory Szorc 2d6be22456 Bug 729098 - Part 1.01/2 - Fix xpcshell test bustage; r=bustage 2012-03-06 16:27:22 -08:00
Gregory Szorc 5507290050 Bug 725478 - Support for generating xUnit result files from xpcshell tests; r=Waldo 2012-02-27 19:53:00 -08:00
Ed Morley 3662f3e0c7 Backout 88d02a07d390, 5f903f5a84a8 & 3539be41fa6b (bug 725478) for make-check failures 2012-02-28 01:04:35 +00:00