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

298 Коммитов

Автор SHA1 Сообщение Дата
Andrew McCreight 1b0c3c5f57 Bug 1100635 - Fix strict warning in xpcshell/head.js. r=cmanchester+432261
MozReview-Commit-ID: 3KktUF0n5GB

--HG--
extra : rebase_source : 8a560a3ebc3ad56c6011c01c0b8df71184887af6
2017-06-16 15:30:47 -07:00
Nathan Froyd b28fcc5c4b Bug 1372670 - part 5 - add nsIThreadManager::spinEventLoopUntilEmpty; r=erahm,florian
A number of places in JS need to drain the current thread's event queue,
which cannot be done with nsIThreadManager::spinEventLoopUntil, since we
need to not wait for an incoming event when attempting to process one.
2017-06-21 12:59:28 -04:00
Nathan Froyd 27c58cf89f Bug 1372670 - part 3 - add spinEventLoopUntil to nsIThreadManager; r=erahm,florian 2017-06-21 12:59:28 -04:00
Geoff Brown 0da0034332 Bug 1367235 - Additional changes for eslint on testing/xpcshell; r=Standard8 2017-05-25 07:32:44 -06:00
Geoff Brown 6fe3dae59f Bug 1367235 - Enable eslint on testing/xpcshell - mechanical updates; r=Standard8 2017-05-25 07:32:42 -06:00
Mike Cooper 94879bdf84 Bug 1361578 - Remove SelfSupport, since it is obsoleted by shield-recipe-client. r=Gijs
MozReview-Commit-ID: 1FCqNa5wxZk

--HG--
extra : rebase_source : a7a20b4376ecaf2d4e91da27a7b7b32091f03dbd
2017-05-19 10:02:11 -07:00
Francois Marier 39b6d88744 Bug 1364959 - Clean up Safe Browsing preferences in tests. r=dimi
Remove the forbiddenURI pref which was removed in bug 1274893 as well
as browser.safebrowsing.enabled which got renamed in bug 1025965.

Set dummy URLs for all of the network endpoints.

MozReview-Commit-ID: Efk2fv6cC3g

--HG--
extra : rebase_source : 9fbb3eb0fa7f002fe24577a8a0870ec4d1b7cf31
2017-05-18 16:18:59 -07:00
Greg Mierzwinski 5d46e96825 Bug 1360667 - Change location of coverage collection in xpcshell. r=jmaher
MozReview-Commit-ID: EsA8hTKd15Y

--HG--
extra : rebase_source : 4f2e5bd8b2ecb6dee6b2b85f9687b62feb6c9531
2017-04-28 15:20:37 -04:00
Florian Queze 4c6a68d1c9 Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
Florian Queze f935ddc4b3 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze 37ff4fc7cc Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst 159215e6f4 Backed out changeset 18d45aa984d6 (bug 1355161) 2017-04-14 23:39:23 +02:00
Sebastian Hengst a07223d699 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Sebastian Hengst 738d097aae Backed out changeset 55f3df15eaa6 (bug 1356569) 2017-04-14 23:39:17 +02:00
Florian Queze 3c564a2b02 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze 95d4d20c17 Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Florian Queze a363fb8c8b Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02: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
Greg Mierzwinski d034427bd2 Bug 1301197 - Add xpcshell code coverage to linux64-jsdcov and the 'coverage' mozinfo flag. r=jmaher
This patch makes it possible to collect code coverage for xpcshell tests using the linux64-jsdcov build. It also enables the use of a 'coverage' flag to disable tests when they are instrumented with the js debugger for code coverage. Lastly, it uses the 'coverage' flag to disable certain tests.

MozReview-Commit-ID: 97VFkJmlwQn

--HG--
extra : rebase_source : 26c841f5a68f927889c0903e701bfde4b7ca84ac
2016-11-08 15:57:21 -05: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
Mythmon a443eb66e9 Bug 1308656 - Add shield-recipe-client as system add-on r=Gijs,rhelmer
MozReview-Commit-ID: KNTGKOFXDlH

--HG--
extra : rebase_source : 5b7ac9e5a1c004b1123b852e7b59729357a1dae8
2016-10-10 16:14:56 -07:00
Sebastian Hengst 2b7a18a819 Backed out changeset a53f5aa00347 (bug 1308656) for syntax error in browser_dbg_searchbox-parse.js (line cut off). r=backout 2016-12-21 09:44:17 +01:00
Mythmon 069756ae83 Bug 1308656 - Add shield-recipe-client as system add-on r=Gijs,rhelmer
MozReview-Commit-ID: KNTGKOFXDlH

--HG--
extra : rebase_source : 408eff9e6047ad03fa02a3b962c11835fc88c562
2016-10-10 16:14:56 -07:00
Dale Harvey b694c34086 Bug 1267495 - Fallback to local config for fresh GMP installs. r=mconley, r=rhelmer, feedback=ksteuber 2016-09-27 11:57:41 +01:00
Thomas Wisniewski 9ea1febf1c Bug 717566 - Remove use of parseFromStream in xpcshell head.js and android robocop_head.js. r=jmaher 2016-08-20 14:18:55 -04:00
Greg Mierzwinski 5a4b2e86e4 Bug 1282599 - Pass test path as a string to xpcshell coverage collector. r=chmanchester
The test file path is now recorded by the coverage collector as a string rather than a single element array.

MozReview-Commit-ID: 9qW0tAKmqMS

--HG--
extra : rebase_source : a03f8fe2a9736ec41c72cad083da6a6142d343ad
2016-06-27 18:17:41 -04:00
Greg Mierzwinski 5537afe36b Bug 1278649 - Add code coverage to xpcshell tests. r=chmanchester
This adds the ability to use the command line flag '--jscov-dir-prefix' to collect javascript code coverage from xpcshell tests and output it into the specified directory as a JSON file.

MozReview-Commit-ID: 3MZm73SNChL

--HG--
extra : transplant_source : c%9B%DE%A93w%E7%11%89%BE-%E8%D9%18%BC%12z%0A%0E%E4
2016-06-08 09:41:04 -04:00
Jan Varga 2d1e6d62c8 Bug 1246828 - Part 4: Rename profile-before-change2 to profile-before-change-qm and profile-before-change3 to profile-before-change-telemetry; r=asuth 2016-06-15 11:49:04 +01:00
Kyle Huey a43998c8bf Bug 1246828 - Part 2: Main changes, quota manager shutdown pushed back to profile-before-change2; r=asuth 2016-06-15 11:48:50 +01:00
Wes Kocher b899130873 Backed out changeset e28540fe266a (bug 1246828) for xpcshell failures in test_TelemetrySession.js CLOSED TREE
--HG--
extra : commitid : 8sSr108Ob73
2016-02-10 13:40:41 -08:00
Kyle Huey dd361add99 Bug 1246828: Push QuotaManager shutdown back to profile-before-change2 2016-02-10 10:53:26 -08: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
Marco Bonardo 00fe34957a Bug 1244723 - xpcshell should shutdown profile after all the registered cleanup functions, not before them. r=ted
--HG--
extra : commitid : 725U9rSPg8q
2016-02-03 12:35:07 +01: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
Philipp Kewisch 1f1671ee48 Bug 1192533 - Allow running only one test via add_task.only() or skipping via add_task.skip(). r=ted 2016-01-10 16:40:12 +01:00
J. Ryan Stinnett 84886db8e6 Bug 1231759 - Explain DevTools appdir issue when debugging xpcshell. r=Gijs
--HG--
extra : rebase_source : f8bb0a223fff0cf2555188700bccdb2f80b115f3
2015-12-15 10:14:31 -06:00
Alexandre Poirot 02e511006d Bug 1113865 - Replace all calls to dbg_assert with DevToolsUtils.assert. r=fitzgen 2015-11-16 07:22:49 -08:00
J. Ryan Stinnett 986f2a5cde Bug 1203159 - Rewrite DevTools resource URLs. r=ochameau 2015-10-21 12:48:53 -05:00
Shu-yu Guo 76da4d1112 Bug 1202902 - Support non-syntactic extensible lexical scopes. (r=billm) 2015-10-06 14:00:29 -07:00
Tooru Fujisawa c09bf851bf Bug 1207499 - Part 10: Remove use of expression closure from testing/. r=jmaher
--HG--
extra : commitid : JE0Z0vdpjeI
extra : rebase_source : 3aa4d858e141afceec370343630ebd1d6f2a0d52
2015-09-23 18:42:19 +09:00
Andrew Halberstadt 5330ac1f89 Bug 1042998 - Use StructuredLog.jsm for mochitest logging, r=chmanchester
--HG--
extra : commitid : 5hwiCNY4xAI
extra : rebase_source : 4f72ebe622669bb4f5df2c0be40d156e91c229f3
2015-09-04 14:37:32 -04:00
Dave Townsend 7c204151f3 Bug 1192924: Check for updated system add-ons and download and install them. r=rhelmer
This performs the update check for system add-ons. It runs as part of the daily
add-on update checks similar to hotfix checks. Currently no URL is set so builds
won't actually start checking yet.

I've taken a few shortcuts here by only staging updates and needing a restart to
install as well as always downloading updates rather than using existing local
copies. At least the latter probably needs fixing before turning this on but
it makes more sense to iterate on those in tree.

--HG--
rename : toolkit/mozapps/extensions/test/xpcshell/data/system_addons/app1/features/system1@tests.mozilla.org.xpi => toolkit/mozapps/extensions/test/xpcshell/data/system_addons/system1_1.xpi
rename : toolkit/mozapps/extensions/test/xpcshell/data/system_addons/app3/features/system1@tests.mozilla.org.xpi => toolkit/mozapps/extensions/test/xpcshell/data/system_addons/system1_1_badcert.xpi
rename : toolkit/mozapps/extensions/test/xpcshell/data/system_addons/app2/features/system1@tests.mozilla.org.xpi => toolkit/mozapps/extensions/test/xpcshell/data/system_addons/system1_2.xpi
rename : toolkit/mozapps/extensions/test/xpcshell/data/system_addons/app1/features/system2@tests.mozilla.org.xpi => toolkit/mozapps/extensions/test/xpcshell/data/system_addons/system2_1.xpi
rename : toolkit/mozapps/extensions/test/xpcshell/data/system_addons/app2/features/system3@tests.mozilla.org.xpi => toolkit/mozapps/extensions/test/xpcshell/data/system_addons/system3_1.xpi
extra : commitid : Ex9NNNduxhK
extra : rebase_source : 99088404019f53a8a76105c66edce404f2c7e454
2015-09-10 10:57:39 -07:00
Wes Kocher 468b697f04 Backed out 3 changesets (bug 1192924) for Android bustage CLOSED TREE
Backed out changeset 30d612836685 (bug 1192924)
Backed out changeset a6860f880e01 (bug 1192924)
Backed out changeset 10e1fa2cc23a (bug 1192924)

--HG--
rename : toolkit/mozapps/extensions/test/xpcshell/data/system_addons/system1_1.xpi => toolkit/mozapps/extensions/test/xpcshell/data/system_addons/app1/features/system1@tests.mozilla.org.xpi
rename : toolkit/mozapps/extensions/test/xpcshell/data/system_addons/system2_1.xpi => toolkit/mozapps/extensions/test/xpcshell/data/system_addons/app1/features/system2@tests.mozilla.org.xpi
rename : toolkit/mozapps/extensions/test/xpcshell/data/system_addons/system1_2.xpi => toolkit/mozapps/extensions/test/xpcshell/data/system_addons/app2/features/system1@tests.mozilla.org.xpi
rename : toolkit/mozapps/extensions/test/xpcshell/data/system_addons/system3_1.xpi => toolkit/mozapps/extensions/test/xpcshell/data/system_addons/app2/features/system3@tests.mozilla.org.xpi
rename : toolkit/mozapps/extensions/test/xpcshell/data/system_addons/system1_1_badcert.xpi => toolkit/mozapps/extensions/test/xpcshell/data/system_addons/app3/features/system1@tests.mozilla.org.xpi
2015-09-22 11:02:55 -07:00
Dave Townsend d039cf8d34 Bug 1192924: Check for updated system add-ons and download and install them. r=rhelmer
This performs the update check for system add-ons. It runs as part of the daily
add-on update checks similar to hotfix checks. Currently no URL is set so builds
won't actually start checking yet.

I've taken a few shortcuts here by only staging updates and needing a restart to
install as well as always downloading updates rather than using existing local
copies. At least the latter probably needs fixing before turning this on but
it makes more sense to iterate on those in tree.

--HG--
rename : toolkit/mozapps/extensions/test/xpcshell/data/system_addons/app1/features/system1@tests.mozilla.org.xpi => toolkit/mozapps/extensions/test/xpcshell/data/system_addons/system1_1.xpi
rename : toolkit/mozapps/extensions/test/xpcshell/data/system_addons/app3/features/system1@tests.mozilla.org.xpi => toolkit/mozapps/extensions/test/xpcshell/data/system_addons/system1_1_badcert.xpi
rename : toolkit/mozapps/extensions/test/xpcshell/data/system_addons/app2/features/system1@tests.mozilla.org.xpi => toolkit/mozapps/extensions/test/xpcshell/data/system_addons/system1_2.xpi
rename : toolkit/mozapps/extensions/test/xpcshell/data/system_addons/app1/features/system2@tests.mozilla.org.xpi => toolkit/mozapps/extensions/test/xpcshell/data/system_addons/system2_1.xpi
rename : toolkit/mozapps/extensions/test/xpcshell/data/system_addons/app2/features/system3@tests.mozilla.org.xpi => toolkit/mozapps/extensions/test/xpcshell/data/system_addons/system3_1.xpi
extra : commitid : CuRP3svf6aO
extra : rebase_source : 0a67da41a0a7b27ecb042875ebf13b7b69ec5c84
extra : histedit_source : e96ecd9a4a56e503b4df0e2a0ecd1ac82a716a66
2015-09-10 10:57:39 -07:00
J. Ryan Stinnett efe328f1b2 Bug 912121 - Rewrite require / import to match source tree. rs=devtools
In a following patch, all DevTools moz.build files will use DevToolsModules to
install JS modules at a path that corresponds directly to their source tree
location.  Here we rewrite all require and import calls to match the new
location that these files are installed to.

--HG--
extra : commitid : F2ItGm8ptRz
extra : rebase_source : b082fe4bf77e22e297e303fc601165ceff1c4cbc
2015-09-21 12:04:18 -05:00
Shu-yu Guo 64db2267cf Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Nick Fitzgerald 7af93cdc2a Bug 1200446 - Add a method for saving heap snapshots to MemoryActor; r=jryans 2015-09-04 18:36:52 -07:00
Gijs Kruitbosch 75c948317e Bug 1198716 - fix xpcshell --jsdebugger argument, r=jryans
--HG--
extra : commitid : JlmsELDMNm0
extra : rebase_source : cb9d862553b54adb24b53bc5b9fab9e669a20686
extra : histedit_source : 579669f9bb50f53237b8e08334b36ab39d9e34e0
2015-08-26 21:57:24 +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
Alexandre Poirot 9c0a24f39a Bug 1190452 - Always import toolkit/devtools/server/main.js as CommonJS module. r=jryans 2015-08-10 05:38:56 -07:00
Alessio Placitelli 5470b35b29 Bug 1168835 - Add test coverage for pending-pings quota. r=gfritzsche 2015-07-20 08:46:00 +02:00
Michael Layzell 143cb59a10 Bug 1173503 - Make do_check_true output include the passed message in xpcshell unit tests r=ted 2015-06-19 14:27:37 -07:00
Alessio Placitelli 61d2710314 Bug 1169159 - Make xpcshells run_test_in_child() and do_await_remote_message() return promises. r=ted,gfritzsche 2015-06-03 04:41:00 +02:00
Ryan VanderMeulen bc35b6ea2d Backed out changeset a3d6ad2faa3a (bug 996652) for checktest bustage. 2015-05-25 12:11:07 -04:00
Ravi Shankar 2c2f498405 Bug 996652 - Scope the private symbols of head.js. r=Yoric, r=Ted 2015-05-22 11:36:00 -04:00
ziyunfei e1db0f779e Bug 1102219 - Part 4: Replace `String.prototype.contains` with `String.prototype.includes` in chrome code. r=till 2015-04-30 00:32:05 +09: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
Georg Fritzsche 3dd8b71099 Bug 885389 - Make do_get_profile() optionally fire profile-after-change on completion. r=ted 2015-04-21 16:30:36 +02:00
Georg Fritzsche 3bb6a9ea3f Bug 1150134 - Part 3: Avoid hitting the network from Telemetry for xpcshell tests. r=yoric 2015-04-14 16:49:57 +02:00
Ted Mielczarek fb4b821e19 bug 1151407 - Remove _HTTPD_JS_PATH from xpcshell test harness. r=jmaher
Only the httpd.js unit tests actually rely on this. I tried to make them use Cu.import but they also rely on poking a bunch of stuff in httpd.js that's not exported, so instead I just made the test manifest copy httpd.js to the test directory and had them load it from there.

--HG--
extra : rebase_source : 24b04d619891ec95e5df23a2eb7f3277dd3206b2
extra : amend_source : 72139cecdcd695171e2fd0ce8ea7be91c1eebd1a
2015-04-03 08:20:32 -04:00
Krishnashish Gogoi a80b42da44 Bug 982852 - Make run_test() in xpcshell-tests optional; r=gps
As referenced in Bug 982852, this fix makes run_tests() optional.
Test cases can now consist of add_test() and add_task() calls
without the need to exclusively set up a run_test() just to call
run_next_test() inside it. If run_test() however is defined, it
will be called directly as usual, which should keep all older
tests working without breaking.

Since most run_test() calls right now are mostly boilerplate and
usually are of the form -- function run_test(){run_next_test();} --
this fix checks if run_test is defined by using the typeof operator
which should evaluate to "function" if it is defined. If defined,
it is called straight away, otherwise, run_next_test() is called,
which is what run_test() usually does when used as a set up to
call tests registered by add_test() and add_task().

--HG--
extra : rebase_source : 7cfbf30a67e3a8d088f8409edcdde8976f46b941
2015-04-02 22:32:18 +05:30
Brian Grinstead 9dbf84b0a5 Bug 1148996 - Remove selected lightweight theme for mochitest and xpcshell tests;r=jmaher
This is for aurora (dev edition) compatibility.  In this channel, there is a
selected lightweight theme by default.  Tests don't expect this to be the case
so this simply resets the relevant prefs for mochitests and xpcshell tests.
2015-03-31 20:01:04 -07:00
Eddy Bruël f965a63d67 Bug 1141507 - Some preliminary refactors;r=jlong 2015-03-26 20:15:36 +01:00
Eddy Bruël 9a0e51df00 Bug 1131646 - Clean up the breakpoint code;r=jlongster 2015-03-11 15:15:40 +01:00
Alexandre Poirot 2b002a6748 Bug 1059308 - Fix tests to support chrome actor. r=jryans 2015-02-26 03:56:00 +01:00
Alessio Placitelli deb826f3fb Bug 1111022 - Tests for the SelfSupport backend. r=gfritzsche 2015-01-09 11:18:00 +01:00
Chris Peterson ac2c208d22 Bug 1129336 - Remove nonstandard let blocks from testing/xpcshell. r=chmanchester 2015-01-24 23:34:40 -08:00
Chris Manchester 52c52854d6 Bug 1128584 - Only log valid status values when processing errors in xpcshell's head.js;r=ted 2015-02-02 13:32:49 -05:00
Eddy Bruël 399f1de8fb Bug 1126193 - setBreakpoint should not take a full location;r=fitzgen 2015-02-04 07:42:33 +01:00
J. Ryan Stinnett 9b3a983e79 Bug 1103120 - Part 8: Server: Use promises and results in allowConnection. r=past 2015-01-26 12:47:13 -06:00
J. Ryan Stinnett de60148114 Bug 1103120 - Part 6: Server: Move allowConnection to authenticator. r=past 2015-01-26 12:47:13 -06:00
Mark Hammond bee2d8a0f5 Bug 1116708 - xpcshell tests now log console messages. r=chmanchester 2015-01-09 10:00:05 +11:00
Mark Hammond 1738e10508 Backout 40b7a74be389 due to wrong bug number in commit message 2015-01-09 09:56:25 +11:00
Mark Hammond f19948b19d Bug 1117001 - xpcshell tests now log console messages. r=chmanchester 2015-01-09 09:53:34 +11:00
Mark Hammond f02be754db Bug 1109563 - fix xpshell-test debugging. r=past 2014-12-11 19:13:12 +11:00
J. Ryan Stinnett a0a3a60049 Bug 1059001 - Part 1b: Update openListener callsites. r=past 2014-12-10 20:55:51 -06:00
J. Ryan Stinnett 6bbfd73703 Bug 1058997 - Part 3b: Update non-trivial security prompts. r=past 2014-12-01 22:55:56 -08:00
Mark Hammond 6aaa535030 Bug 809561 - Integrate xpcshell test harness with chrome remote debugging. r=past/chmanchester 2014-11-29 10:40:58 +11: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
Boris Zbarsky 427f80e0de Bug 1082843. Don't import Promise.jsm into the global scope in xpcshell tests. r=yoric 2014-10-15 00:42:54 -04:00
David Rajchenbach-Teller 28e7ab4a33 Bug 1059329 - Remove spurious 'System JS : ERROR' in xpcshell. r=ted 2014-08-28 03:09:00 -04:00
Aseem Raj Baranwal 2bb668c702 Bug 1050877 - media.gmp-manager.url should mention GMP. r=jmaher 2014-08-26 01:53:47 +05:30
Georg Fritzsche 90fe4a3b19 Bug 1042161 - Set dummy URL for GMP addon updates for xpcshell tests. r=jmaher 2014-08-08 17:46:25 +02: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
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
Jim Blandy 7e20285e70 Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
David Rajchenbach-Teller 38b5a3bdca Bug 1010518 - Activate Task.Debugging.maintainStack on test suites. r=ted 2014-06-09 14:43:00 +02:00
Alexandre Poirot d322d65c3d Bug 1019244 - Do not throw on exception handling during xpcshell tests. r=ted 2014-06-02 15:09:00 -04:00
Mike de Boer c33a84f89e Bug 1014482: make Assert.jsm methods globally available and deprecate XPCShell-test's custom assert methods. This changes `do_check_matches()` semantics significantly. r=gps 2014-05-30 16:26:42 +02:00
David Rajchenbach-Teller 2545781ef1 Bug 976205 - Make uncaught Promise errors fatal in xpcshell. r=ted 2014-05-28 12:11:00 -04:00
Eddy Bruel 40ef38722e Bug 1003095 - Fix strict errors in the debugger server;r=past 2014-05-15 16:36:03 +02:00
David Rajchenbach-Teller d6f5da42b5 Bug 994951 - Activate OS.File xpcshell tests on B2G. r=froydnj 2014-05-05 06:53:00 -04:00
David Rajchenbach-Teller c24ec93083 Bug 995198 - Make uncaught async errors cause KNOWN-FAIL in xpcshell. r=ted 2014-04-15 12:51:20 -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 a0a4ade497 Bug 875562 - Part 8: Write crash events for main process crashes; r=bsmedberg
This patch makes the crash reporter crash event directory aware and
writes main process crash event files at crash time.

--HG--
extra : rebase_source : 1d6a817ae401230b3fe8fcd236468ceb3e309a10
2014-02-18 15:58:03 -08: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
Geoff Brown 75d46e2b13 Bug 938706 - (2) Put Android xpcshell minidumps in a separate directory; r=ted 2013-11-21 10:22:18 -07:00
Josh Matthews 2de3a805b5 Bug 934066 - Add a simple parent/child synchronization mechanism for xpcshell tests. r=ted 2013-11-02 09:37:46 -04:00
Mike de Boer d6e74811ad Bug 873126: integrate Assert.jsm into XPCShell-test. r=gps 2013-11-19 13:53:20 +01:00
Mike de Boer 8df0f8d1aa Bug 873126: introduce a common JS Assert library. r=gps,Unfocused 2013-11-19 13:53:18 +01:00
Jim Blandy c0a631fad9 Bug 892114: Add support for Unix domain sockets to nsIServerSocket.idl and @mozilla.org/network/server-socket;1. r=mayhemer 2013-09-06 08:06:23 -07:00
Jim Blandy 58ad28120e Bug 899757: Make nsServerSocket::InitWithAddress provide more detailed error results. r=mayhemer, r=ted
I looked through the NSPR socket creation functions that InitWithAddress
uses to see which errors they could return, and placed appropriate comments
in ErrorAccordingToNSPR.

The test coverage is not great; in particular, I wasn't able to find a way
to elicit "address in use" errors from Windows (although I could from
Linux); the web says that Windows is much more relaxed about binding
listening sockets than Unix derivatives. I'm interested in suggestions.
2013-09-06 08:06:22 -07:00
Jim Blandy 842f97fdb7 Bug 909142: Fix xpcshell test harness regexp matching JS stack frames. But to what end? r=ted 2013-09-02 08:58:37 -07: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
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
Ted Mielczarek ca9a717499 bug 842728 - init Breakpad from C++ in xpcshell, remove ability to init from script. r=bholley,gps 2013-08-15 14:48:12 -04: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
aceman 2662cdbba8 Bug 896738 - Declare msg variable in testing/xpcshell/head.js. r=ted 2013-08-01 10:39:18 +01:00
Mark Banner aab0797734 Bug 896756 - Fix strict warnings in xpcshell's head.js. r=jmaher 2013-07-23 18:31:30 +01:00
Mihnea Dobrescu-Balaur e67903f544 Bug 889076 - Use the profile dir to store minidumps in the crashreporter xpcshell tests. r=ted 2013-07-10 14:10:04 -07:00
Mihnea Dobrescu-Balaur c58af80dce Bug 892021 - Add a do_get_tempdir function to head.js. r=ted, r=gbrown 2013-07-16 09:38:35 -07:00
Irving Reid 15151ee4fd Bug 887799: More reliable way of getting stack traces for xpcshell test errors, r=ted.mielczarek 2013-07-02 10:41:42 -04:00
Guilherme Gonçalves 9f334eec26 Bug 874587 - Add CoreLocation geolocation provider. r=dougt, r=gps, r=smichaud 2013-07-01 09:43:17 -04:00
Mark Banner 01309a4ba6 Bug 886263 - Make places be enabled by default in all xpcshell-tests to avoid having to set it in lots of places (so that tests work with apps where places is disabled by default). r=mak 2013-06-26 14:56:11 +01:00
Ed Morley 695f4e1643 Backed out changeset b1dba904d5c8 (bug 886263) for xpcshell orange 2013-06-26 11:20:46 +01:00
Mark Banner 11769462ee Bug 886263 - Make places be enabled by default in all xpcshell-tests to avoid having to set it in lots of places (so that tests work with apps where places is disabled by default). r=mak 2013-06-26 10:06:30 +01:00
Jared Wein 207b857630 Bug 880573 - Remove duplication between do_report_result and _do_check_neq. r=ted 2013-06-07 12:44:00 -04:00
Jared Wein 09d94a7460 Bug 880568 - _do_check_eq/_do_check_neq/do_print should put double-quotes around argument if the typeof argument is 'string'. r=ted 2013-06-07 12:43:48 -04:00
Josh Matthews 976a997386 Bug 869638 - Remove xpcshell timeout timers. r=ted 2013-05-10 10:50:33 -04:00
aceman 760f49a500 Bug 533315 - Show the stack trace of 'e' in do_thow(e) if 'e' is already an exception object. r=ted 2013-05-07 22:37:49 -04:00
Irving Reid 9acf052282 Bug 863311: Include test function name in test pending / test finished messages. r=ted.mielczarek 2013-05-03 12:08:30 -04:00
Paolo Amadini b55d4bd0d8 Bug 859065 - Avoid "command timed out: 1200 seconds without output, attempting to kill" by providing an inner xpcshell timeout of 5 minutes. r=jmaher 2013-04-16 20:35:09 +02:00
Jim Blandy be9cbe79ed Bug 857715: In testing/xpcshell/head.js, use 'uneval' to quote values passed to the child process. r=ted 2013-04-14 17:49:40 -07:00
Jim Blandy 5371b82be9 Bug 808791: Add some xpcshell testing functions handy for matching JSON packets. r=jmaher 2013-01-14 16:15:58 -08:00
Mounir Lamouri 34cfc76054 Bug 827050 - Ignore do_get_profile() calls when made from a content process in xpcshell tests. r=jmaher 2013-01-08 15:13:44 +00:00
Josh Matthews 8658387d97 Bug 815523. patches stolen from 782542 Parts 1,2,3: Necko IPC security pref, and disable for xpcshell tests, r=ted,jdm 2012-12-07 17:12:02 -05:00
Ed Morley f41c087da9 Backout 3e4e600adc3b (bug 782542) for crashtest-ipc timeouts 2012-12-16 18:09:39 +00:00
Josh Matthews 4d20bfdcc1 Bug 782542 - Secure necko IPDL usage. r=ted,jduell
* * *
Bug 782542 - Disable network.ipc security for certain mochitests r=ted
* * *
Bug 782542.  Disable some more tests that use mozbrowser w/o app r?ted
* * *
Bug 782542 : yet another test needs tweaking. r?ted
2012-12-12 10:40:33 -05: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
David Rajchenbach-Teller f0a0fc99a0 Bug 810543 - Testing the behavior of OS.Constants.Path.profileDir;r=froydnj 2012-12-11 15:12:59 -08:00
Ed Morley 7e37f21a17 Backout fac650c31656 & 907a846d368f (bug 819033) for xpcshell failures 2012-12-11 20:29:18 +00:00
Ehsan Akhgari 367b53417c Backed out changeset 34c9ccee8058 (bug 782542) for mochitest failures 2012-12-11 15:04:11 -05: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
Josh Matthews 4e012f139b Bug 782542 - Secure necko IPDL usage. r=ted,jduell 2012-12-07 17:12:02 -05:00
Mark Capella daef2756b5 Bug 772272 - Remove do_load_httpd_js from xpcshell tests, Final, r=ted
Remove last three references, final cleanup
2012-08-23 08:16:44 -04:00
Gregory Szorc 0bd4aaec66 Bug 762837 - Try to find modules directory if not defined; r=ted
This is a workaround to enable modules to be found on the buildbot test
runners.
2012-06-29 13:27:11 -07:00
Gregory Szorc 320b9ff14e Bug 760576 - Define do_check_null test helper for xpcshell tests; r=ted
--HG--
extra : rebase_source : 533f5e85bf6d1f9f074fee227b60dde08a7baf17
2012-06-01 19:23:31 +02:00
Gervase Markham 82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Gregory Szorc ed07fb4037 Bug 754436 - Move xpcshell protocol handler registration into standalone function; r=ted 2012-05-15 09:53:28 -07:00
Gregory Szorc cef8c5bb2e Bug 748490 - Part 3: Followups to part 2; r=ted
Previous patch was submitted prematurely by accident. This addresses
nits from review.
2012-05-10 10:19:16 -07:00