Commit Graph

84 Commits

Author SHA1 Message Date
Ross Kirsling
3e9d056826 Bug 1556818 - Throw early SyntaxError instead of ReferenceError for 0 = 0 r=khyperia,jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D35298

--HG--
extra : moz-landing-system : lando
2019-07-01 22:14:47 +00:00
Csoregi Natalia
67226aab44 Backed out changeset 789bacca1219 (bug 1556818) for web platform failures on module-error-reporting.html. 2019-06-29 12:11:33 +03:00
Ross Kirsling
f2daecfc95 Bug 1556818 - Throw early SyntaxError instead of ReferenceError for 0 = 0 r=khyperia
Differential Revision: https://phabricator.services.mozilla.com/D35298

--HG--
extra : moz-landing-system : lando
2019-06-28 03:04:45 +00:00
Chris Manchester
7aa9cc7dff Bug 1087144 - Log crashes in xpcshell via log_crashes rather than checkForCrashes r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D33721

--HG--
extra : moz-landing-system : lando
2019-06-05 18:41:54 +00:00
Cosmin Sabou
b9727014e5 Backed out changeset 23858ba6c81b (bug 1087144) for asan build bustages. CLOSED TREE 2019-06-05 20:41:34 +03:00
Chris Manchester
cdbf481434 Bug 1087144 - Log crashes in xpcshell via log_crashes rather than checkForCrashes r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D33721

--HG--
extra : moz-landing-system : lando
2019-06-05 16:44:49 +00:00
Valentin Gosu
61469f926e Bug 1527316 - Setup MOZ_NODE_PATH as part of bootstrapping r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D24301

--HG--
extra : moz-landing-system : lando
2019-03-22 12:44:52 +00:00
Kris Maglione
a8c19b9f5a Bug 1455176: Follow-up: Fix build bustage from xpcshell self-test. r=bustage CLOSED TREE
MozReview-Commit-ID: AZzLJyxyUxl

--HG--
extra : rebase_source : c30426843bd35f84db9e447fe708da3c74c3456e
2018-04-19 15:11:15 -07:00
Kris Maglione
e827feb4a4 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
c09b0c1a99 Bug 1446833: Part 2 - Stop using Task.jsm in xpcshell/head.js. r=florian
MozReview-Commit-ID: 6vSpwih9Fnr

--HG--
extra : rebase_source : 9ca452486f144a35514f00742722b6a59efadacd
extra : histedit_source : af6cc6fef47116a4c98113fcd4fd157217a75106
2018-03-18 15:27:04 -07:00
Florian Quèze
db57009a12 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
7dcab2c656 Bug 1421992 - Remove obsolete do_check_* implementations, r=Gijs. 2017-12-21 11:08:21 +01:00
Marco Castelluccio
618a85ccf0 Bug 1414962 - Increase timeout for xpcshell selftest in code coverage builds. r=jmaher
--HG--
extra : rebase_source : bedb98138381a2239070a5197582511807ae348b
2017-11-09 11:33:31 +01:00
Steve Armand
5d8117b9de Bug 1397852 - Enable flake8 linter on testing/xpcshell. r=ahal
MozReview-Commit-ID: CvZVXQPx8jF

--HG--
extra : rebase_source : 359f148397ef5584028e343080c6774407f74db6
2017-09-14 09:51:27 -04:00
Steve Armand
5934392346 Bug 1397855 - Enable py2 and py3 linter on testing/xpcshell. r=ahal
MozReview-Commit-ID: CsfIcI1ma7J

--HG--
extra : rebase_source : 53658c33432927f72ddce0999f18c2b7df261f6d
2017-09-07 21:15:35 -04:00
Sebastian Hengst
69de1aac47 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
d4bfc7402c Bug 1397855 - Enable py2 and py3 linter on testing/xpcshell. r=ahal
MozReview-Commit-ID: CsfIcI1ma7J

--HG--
extra : rebase_source : 1cdb7a848813a4a4872005095550b74c13ebecdf
2017-09-07 21:15:35 -04:00
Geoff Brown
e4e2fc78d1 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
f7fb96c7e5 Bug 1390106 - Stop using versioned scripts in tests. r=jmaher
MozReview-Commit-ID: ErqU4M1f7Oj

--HG--
extra : rebase_source : 968490c3f787949324c44ba75b6daf5c346f54c3
2017-08-14 20:46:55 +09:00
Mike de Boer
9b07b832b3 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

--HG--
extra : rebase_source : 9fe671baa357882258e1e94e47981185f37e246a
2017-07-18 15:07:38 +02:00
Chris Manchester
dcb8101430 Bug 1337667 - Un-skip xpcshell selftests for stylo now that they're passing. r=jryans
MozReview-Commit-ID: JwvIhSkgNa4

--HG--
extra : rebase_source : cb19f6ae5bb4bb16b622e1f02e2efc22ea1686d4
2017-05-17 12:58:49 -07:00
Gregory Szorc
1629445d45 Bug 1337679 - stylo: Disable currently crashing xpcshell tests; r=ted
MozReview-Commit-ID: K99exhH1S8j

--HG--
extra : amend_source : 3a0cbe18446e45f51e5e393c70b06a2a71385a37
2017-02-10 17:59:43 -08:00
Marco Bonardo
1009bebc90 Bug 1332295 - do_register_cleanup should support generators and async functions. r=ted
MozReview-Commit-ID: BPCwPlWQ8G0

--HG--
extra : rebase_source : db1099f2f1c681e30ca35367b9098d9c28cd1ae1
2017-01-19 16:07:46 +01:00
Phil Ringnalda
f5077ad52f 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
6fb7192a8a Bug 1332295 - do_register_cleanup should support generators and async functions. r=ted
MozReview-Commit-ID: BPCwPlWQ8G0

--HG--
extra : rebase_source : db1099f2f1c681e30ca35367b9098d9c28cd1ae1
2017-01-19 16:07:46 +01:00
Mark Banner
9d595b6142 Bug 503613 - Remove the tail file functionality from xpcshell; r=gps
MozReview-Commit-ID: JcglhFl89DX

--HG--
extra : rebase_source : e268c51b9124cebdc7dd39999bc5ac9ad466b1d8
extra : histedit_source : ee311347d6ce83466f926662392f63b3089a103c
2017-01-17 15:27:55 +00:00
Jeff Walden
e72e3de588 Bug 1296814 - Remove Parser::reportBadReturn and report simpler errors that don't use the offset of a node as location. r=arai
--HG--
extra : rebase_source : bb602d66d581b46a5b321137013d05e09ce60350
2016-11-13 00:11:39 -08:00
Andrew Halberstadt
41caba1673 Bug 1316408 - Remove all b2g related code from testing/xpcshell, r=jmaher
MozReview-Commit-ID: KF5Pw5WBleX

--HG--
extra : rebase_source : 2c071bac76d26527337acc0b0593cd3c6202afc4
2016-11-09 14:50:45 -05:00
Sebastian Hengst
cdcc9e20da 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
126dd3756f Bug 1303804 - Fix Promise test that relies on non-release feature (async stacks), r=froydnj
MozReview-Commit-ID: A9qEg11NOt

--HG--
extra : source : b1d6c8c73516bf74a36807bfb4595a57f5276571
extra : amend_source : f985ac3c5b6a59f02751ced11071d6e9ef3dee94
2016-09-19 15:21:25 -07:00
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