Commit Graph
1079 Commits
Author SHA1 Message Date
Geoff Brown a3b66ddfb8 Bug 1569053 - Define MOZ_ANDROID_DATA_DIR for android xpcshell tests; r=snorp
Effectively avoids an assertion in many geckoview xpcshell tests.

Differential Revision: https://phabricator.services.mozilla.com/D39428
2019-07-29 15:47:35 +00:00
Kershaw Chang df861c4185 Bug 1563824 - New error NS_ERROR_TOO_MANY_REQUESTS for 429 response r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D37140
2019-07-06 21:46:00 +00:00
Victor Porof 7293693683 Bug 1561435 - Fix linting errors for testing/, r=standard8
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35963
2019-06-27 17:27:33 +02:00
Victor Porof 5a4a810e4d Bug 1561435 - Format testing/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35962
2019-07-05 11:01:24 +02:00
Ross Kirsling e254a56a81 Bug 1556818 - Throw early SyntaxError instead of ReferenceError for 0 = 0 r=khyperia,jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D35298
2019-07-01 22:14:47 +00:00
Kartikaya Gupta 01568c032d Bug 1558598 - Ensure mozinfo correctly detects WebRender. r=ahal
I don't know if this covers all the things that use mozinfo (probably not)
but it covers all the suites that use mozinfo and have webrender conditions
in the test manifests (i.e. mochitest and wpt variants).

Differential Revision: https://phabricator.services.mozilla.com/D35869
2019-06-29 09:51:14 +00:00
Kartikaya Gupta fc9f8d2d77 Bug 1558598 - Force WebRender on or off in the xpcshell harness. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D35860
2019-06-29 09:50:20 +00:00
Csoregi Natalia d4b4fa4806 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 087b015ade Bug 1556818 - Throw early SyntaxError instead of ReferenceError for 0 = 0 r=khyperia
Differential Revision: https://phabricator.services.mozilla.com/D35298
2019-06-28 03:04:45 +00:00
Nicholas Hurley 48d5c25e0f Bug 1502555 - Match oppsec .wk format to rfc. r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D35136
2019-06-26 11:44:36 +00:00
Valentin Gosu 0eb9874105 Bug 1558495 - Make sure we retry the TRR connection if it fails r=agrover
This patch adds:
* tests that we restart the TRR connection if it gets abnormally shut down
* a way to terminate the TRR connection when attempting to resolve closeme.com
* makes sure that resolving excluded domains with the DISABLE_TRR flag does
  not fail. Before this we would return an error code without checking the
  excluded domains first.

Differential Revision: https://phabricator.services.mozilla.com/D35076
2019-06-14 21:49:10 +00:00
Chris Manchester 7886c40a30 Bug 1087144 - Log crashes in xpcshell via log_crashes rather than checkForCrashes r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D33721
2019-06-05 18:41:54 +00:00
Cosmin Sabou 40a7f25e29 Backed out changeset 23858ba6c81b (bug 1087144) for asan build bustages. CLOSED TREE 2019-06-05 20:41:34 +03:00
Chris Manchester acdebe55a2 Bug 1087144 - Log crashes in xpcshell via log_crashes rather than checkForCrashes r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D33721
2019-06-05 16:44:49 +00:00
Valentin Gosu 6f0691be08 Bug 1542561 - Test that a IPv4 NXDOMAIN still uses the IPv6 response, regardless which one comes back first r=dragana
This test uses prefs added in Bug 1518730, but the pref is ignored when it
doesn't exist, so the test is still valid.

Depends on D33471

Differential Revision: https://phabricator.services.mozilla.com/D33473
2019-06-03 21:20:39 +00:00
Mark Banner ab30bb3a96 Bug 1291486 - Add an option (--verbose-if-fails) to mach's xpcshell-test to output test log if it fails when it will be retried. r=ahal
When running xpcshell-tests, if a test fails when run in parallel, and then passes when re-run sequentially, the log cannot be seen. Verbose mode is not good enough as that interweaves all the logs.

This adds an option that allows printing only the log of the test that fails.

Differential Revision: https://phabricator.services.mozilla.com/D33149
2019-05-31 15:54:58 +00:00
Honza Bambas 1a97d6c800 Bug 1545421 - New nsresult error codes for 407, 502 and 504 http response codes returned by proxies + test, r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D32817
2019-05-31 17:29:53 +00:00
Valentin Gosu a7f74eea95 Bug 1552886 - Modernize test_trr.js (part 2) r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D31801
2019-05-29 21:40:11 +00:00
Andrew Halberstadt ea126af29d Bug 1553527 - [testing] Add 'fission' to test manifest context r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D32210
2019-05-24 18:41:14 +00:00
Nick Alexander 1578397a11 Bug 1533051 - Package greprefs.js and geckoview-prefs.js at architecture-specific paths for Android fat AAR/GeckoView multi-architecture builds. r=glandium
Bug 1533425 makes Gecko try to load from $ARCH/greprefs.js, etc on
Android.  This patch teaches the packager to put certain preferences
into those architecture-specific locations for that code to find.

Differential Revision: https://phabricator.services.mozilla.com/D24984
2019-05-22 18:27:11 +00:00
Valentin Gosu 2edb174c9e Bug 1540656 - Use dns-packet node module in test_trr.js r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D25671
2019-05-16 06:22:06 +00:00
Geoff Brown a02c47946a Bug 1548597 - Relax requirements for fennec in android xpcshell harness; r=jmaher
The android harness had accumulated some unnecessary and contradictory option handling.
Today, libraries must be extracted from an apk: options.localAPK is required, and
options.localLibs is unused. Cleaning up this code also removes some fennec-isms.
Additionally, this patch relaxes the requirement to find package-name.txt in the apk,
clearing the way for running against a geckoview apk (I may generalize that further
in a follow-up, but not sure what is needed yet).

Differential Revision: https://phabricator.services.mozilla.com/D29709
2019-05-02 17:38:07 +00:00
Geoff Brown a08eb27192 Bug 1547103 - Simplify android xpcshell minidump handling; r=jmaher
setupMinidumpDir is no longer called from anywhere.
The check for a crash directory makes sense for browser tests, but not
for xpcshell: in xpcshell, crash reporter does not create the directory --
the harness does.

Differential Revision: https://phabricator.services.mozilla.com/D28902
2019-04-25 21:52:34 +00:00
Dorel Luca 3e2f92defa Backed out changeset 471b2063c817 (bug 1540656) for XPCShell failures in dom/push/test/xpcshell/test_register_success_http2.js 2019-04-08 15:49:10 +03:00
Valentin Gosu 1ddeebd2af Bug 1540656 - Use dns-packet node module in test_trr.js r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D25671
2019-04-08 10:42:34 +00:00
Valentin Gosu f71bf350be Bug 1540656 - Add dns-packet and node-ip modules r=dragana
These modules are MIT licensed and they're to be used in xpcshell-tests for TRR.
They allow us to make moz-http2.js act like a true DoH server - more specifically to answer DNS queries that have actually been asked, not just a dumb character buffer.

Differential Revision: https://phabricator.services.mozilla.com/D25672
2019-04-04 15:32:21 +00:00
Cosmin Sabou aa6143d956 Backed out 3 changesets (bug 1540656) for xpcshell failures on test_immutable.js. CLOSED TREE
Backed out changeset 70a90b960aef (bug 1540656)
Backed out changeset 631a1aae6fb0 (bug 1540656)
Backed out changeset 408104f784ef (bug 1540656)
2019-04-04 13:34:35 +03:00
Valentin Gosu cc63ee3881 Bug 1540656 - Add dns-packet and node-ip modules r=dragana
These modules are MIT licensed and they're to be used in xpcshell-tests for TRR.
They allow us to make moz-http2.js act like a true DoH server - more specifically to answer DNS queries that have actually been asked, not just a dumb character buffer.

Differential Revision: https://phabricator.services.mozilla.com/D25672
2019-04-04 09:32:11 +00:00
Valentin Gosu 0b4bfae1a8 Bug 1540656 - Use dns-packet node module in test_trr.js r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D25671
2019-04-04 09:30:44 +00:00
Kris Maglione 3546843e77 Bug 1540856: Part 1 - Remove useless references to lightweightThemes preferences. r=aswan,dao
Differential Revision: https://phabricator.services.mozilla.com/D25677
2019-04-01 15:22:20 -07:00
Mark Banner d5029e0dae Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D23850
2019-03-28 09:38:14 +00:00
Mark Banner 330c125649 Bug 1415265 - Implement a central configuration for setting ESLint environments for test directories. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D23849
2019-03-28 09:38:02 +00:00
Valentin Gosu aad7f2469a Bug 1527316 - Setup MOZ_NODE_PATH as part of bootstrapping r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D24301
2019-03-22 12:44:52 +00:00
Oana Pop Rus 19cd52fb47 Backed out changeset e3c771005557 (bug 1527316) for timeout build bustages on a CLOSED TREE 2019-03-22 02:38:32 +02:00
Valentin Gosu 8bae826599 Bug 1527316 - Setup MOZ_NODE_PATH as part of bootstrapping r=gbrown
Depends on D24291

Differential Revision: https://phabricator.services.mozilla.com/D24301
2019-03-21 16:19:15 +00:00
Valentin Gosu af203799ad Bug 1450893 - Add pref for list of domains excluded from TRR r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D24291
2019-03-21 12:41:41 +00:00
Geoff Brown 5430611576 Bug 1526654 - Use xpcshell sequential mode consistently when running a single test; r=bc
In the harness, sequential mode is set when self.singleFile is set. self.singleFile has
been set correctly when a single test is specified as a test_path (mach xpcshell-test <test>)
but it has not been set correctly if a single test is specified in a manifest (mach test <test);
this patch corrects for that by setting self.singleFile after all test specifications have
set self.alltests.

An unintended consequence of the code rearrangement is that the chunk_by_slice filter is
now used even when self.singleFile would be set -- but only if totalChunks > 1; this
situation seems very unlikely, and the consequences minimal.

Differential Revision: https://phabricator.services.mozilla.com/D23253
2019-03-13 06:14:52 +00:00
Dana Keeler d25bb0b05f bug 1531958 - make http2 test certificates more consistent with existing test certificate infrastructure r=dragana
This patch uses the existing xpcshell test certificate infrastructure
(pycert/pykey) to manage the http2 test certificates (and gets rid of some uses
of nsIBadCertListener2 as a bonus).

Differential Revision: https://phabricator.services.mozilla.com/D21814
2019-03-04 15:42:07 +00:00
Kris Maglione ff71cb208e Bug 1524687: Part 10 - Convert Windows widget module to static registration. r=erahm 2019-01-25 15:20:36 -08:00
arthur.iakab 26670b522e Backed out 5 changesets (bug 1524687) for causing build bustages on platform.h CLOSED TREE
Backed out changeset 0f06a6b51bfe (bug 1524687)
Backed out changeset 7a1ef487a9e7 (bug 1524687)
Backed out changeset accad7b4cbc7 (bug 1524687)
Backed out changeset eb33f7e6467c (bug 1524687)
Backed out changeset 86cf09db340b (bug 1524687)
2019-02-21 02:04:02 +02:00
Kris Maglione 2cd0c0cc35 Bug 1524687: Part 10 - Convert Windows widget module to static registration. r=erahm 2019-01-25 15:20:36 -08:00
Geoff Brown 153c23c298 Bug 1522689 - Update command line help for several android test commands; r=bc 2019-02-01 07:18:05 -07:00
Kris Maglione 7e656ab833 Bug 1478124: Part 1 - Update component mocks to replace and restore components sanely. r=froydnj
For static components, I don't intend to allow removing or replacing CID
entries, only contract ID entries. And I would generally prefer, when
restoring overrides of those classes, to not create a new dynamic factory
entry for the contract ID.

We already have the ability to mock components without either of those issues,
but registering a new CID entry for the mock (without unregistering the
original), and then restoring the original by calling `registerFactory` with a
null factory object.

This patch updates our existing mocks to behave that way, and paves the way
for the rest of the patches.

Differential Revision: https://phabricator.services.mozilla.com/D15031
2018-12-19 15:49:48 -08:00
arthur.iakab 127fb281ff Backed out 16 changesets (bug 1478124) for failing android geckoview-junit CLOSED TREE
Backed out changeset fce62c77a56b (bug 1478124)
Backed out changeset eb2fa3b5edf7 (bug 1478124)
Backed out changeset 8dacce59fcc0 (bug 1478124)
Backed out changeset 012fd0107204 (bug 1478124)
Backed out changeset 496aaf774697 (bug 1478124)
Backed out changeset 21f4fda03159 (bug 1478124)
Backed out changeset b0444e0bc801 (bug 1478124)
Backed out changeset d94039b19943 (bug 1478124)
Backed out changeset 5d85deac61c2 (bug 1478124)
Backed out changeset 929fd654c9df (bug 1478124)
Backed out changeset 1ddd80d9e91a (bug 1478124)
Backed out changeset b8d2dfdfc324 (bug 1478124)
Backed out changeset f500020a273a (bug 1478124)
Backed out changeset dd00365ebb55 (bug 1478124)
Backed out changeset 538e40c5ee13 (bug 1478124)
Backed out changeset bedaa9c437ad (bug 1478124)
2019-01-29 10:03:06 +02:00
Kris Maglione 32ff5b0b8e Bug 1478124: Part 1 - Update component mocks to replace and restore components sanely. r=froydnj
For static components, I don't intend to allow removing or replacing CID
entries, only contract ID entries. And I would generally prefer, when
restoring overrides of those classes, to not create a new dynamic factory
entry for the contract ID.

We already have the ability to mock components without either of those issues,
but registering a new CID entry for the mock (without unregistering the
original), and then restoring the original by calling `registerFactory` with a
null factory object.

This patch updates our existing mocks to behave that way, and paves the way
for the rest of the patches.

Differential Revision: https://phabricator.services.mozilla.com/D15031
2018-12-19 15:49:48 -08:00
Kris Maglione 856fa07b17 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16750
2019-01-17 10:18:31 -08:00
Geoff Brown e226e74b52 Bug 1519477 - Try to detect networking connectivity problems before running local tests on android; r=bc 2019-01-16 14:59:35 -07:00
Mark Banner 4fb1bad37c Bug 1517456 - Make Task.jsm a test-only module. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D15647
2019-01-04 08:41:58 +00:00
Razvan Maries 521c2bbb44 Merge mozilla-inbound to mozilla-central a=merge 2018-12-20 07:04:06 +02:00
Geoff Brown 2700dbe863 Bug 1515189 - Consolidate ADBDevice and ADBAndroid classes; r=bc 2018-12-19 14:04:02 -07:00