Commit Graph

3444 Commits

Author SHA1 Message Date
Chris Manchester
37ba0f60c9 Bug 1466958 - Fix mochitests when run locally against an android build. r=gbrown
MozReview-Commit-ID: Ie6665xeD53

--HG--
extra : rebase_source : f3d97973dc7770980c76ceb3bd799fb24a5252c0
2018-06-05 17:09:54 -05:00
Chris Manchester
508b393aa6 Bug 1462489 - Put packaged test addons in the test package with the test packager rather than Makefile.in r=mshal
MozReview-Commit-ID: 56Ah9HQc9TT

--HG--
extra : rebase_source : d1af6d7c92aece08932e93e7a1f1b43a78292410
2018-05-30 15:24:09 -07:00
Chris Manchester
4690df6ce9 Bug 1462489 - Use test addons from dist/xpi-stage when running mochitests locally. r=ahal
MozReview-Commit-ID: IoaxxjtJLhX

--HG--
extra : rebase_source : 39c461649eca73f104b7f7954aa9420048818d58
2018-05-30 15:21:39 -07:00
Dorel Luca
308f075972 Backed out 4 changesets (bug 1462489) for breaking mochitest on testing/mochitest/tests/python/test_basic_mochitest_plain.py
Backed out changeset 41cf0d53a95c (bug 1462489)
Backed out changeset daa33716b140 (bug 1462489)
Backed out changeset 3cd6a8ee8f66 (bug 1462489)
Backed out changeset dfed23857cea (bug 1462489)
2018-05-31 02:51:41 +03:00
Chris Manchester
adac97a0fe Bug 1462489 - Put packaged test addons in the test package with the test packager rather than Makefile.in r=mshal
MozReview-Commit-ID: 56Ah9HQc9TT

--HG--
extra : rebase_source : cc74b4e385cc98036d24e120732cf4c30e73f962
2018-05-30 15:24:09 -07:00
Chris Manchester
e266d11623 Bug 1462489 - Use test addons from dist/xpi-stage when running mochitests locally. r=ahal
MozReview-Commit-ID: IoaxxjtJLhX

--HG--
extra : rebase_source : 2e0534bc3acc38df2c887c75ca9148866d83a22d
2018-05-30 15:21:39 -07:00
Emilio Cobos Álvarez
e799f668c4 Bug 1465107: Remove stylo mentions from the mochitest runner. r=xidorn
MozReview-Commit-ID: B430ssKhJbz
2018-05-30 10:04:09 +02:00
Johann Hofmann
35166c8f08 Bug 1462468 - Add a tracking protection option to the hamburger menu. r=mikedeboer
MozReview-Commit-ID: HxRljbdsRau

--HG--
extra : rebase_source : 3f3aae722ca2e1b6a28a29a5116d66bf40aa8092
2018-05-22 16:26:55 +02:00
Kris Maglione
e6d77f8270 Bug 1460610: Fix content process whitelist for profile extensions when none are present at startup. r=aswan
Also removes the stub workerbootstrap extensions, which previously allowed
this to work for Mochitest extensions.

MozReview-Commit-ID: LPlk8qIgJmr

--HG--
extra : rebase_source : 329f7fe11dde7a2713652591ac735b0d745070c8
extra : amend_source : 125481f030980c610217a9a1f6e51d592bda3c65
2018-05-19 17:23:01 -07:00
Dorel Luca
047df7a932 Merge mozilla-inbound to mozilla-central. a=merge 2018-05-26 07:09:39 +03:00
Chris AtLee
6ced44821e Bug 1237182: Fix python unitests r=bustage on a CLOSED TREE
--HG--
extra : rebase_source : 1e118ab5aed8251dfff28f6c3c4f885e1de24a04
extra : histedit_source : 635a7aa2a4fb47ff1b3b28f0ce099948d6f1101a
2018-05-25 13:42:58 -04:00
Jared Wein
e76681c5a2 Bug 1464102 - Add support for todo_is within ContentTask. r=Gijs
MozReview-Commit-ID: 9GUJIMpylBb

--HG--
extra : rebase_source : d0cecc5abad7168d4749fe6c6b547a19faca9e52
2018-05-24 12:06:36 -04:00
Jared Wein
e04caaa29a Bug 1464102 - Add message listener for content-task:test-todo so todo from within ContentTask will work. r=Gijs
MozReview-Commit-ID: EuWX8eMl8hY

--HG--
extra : rebase_source : 2d12cc6a91b18c327622f03508e760d1903bd9ef
2018-05-24 12:00:09 -04:00
Narcis Beleuzu
d072e49483 Backed out 3 changesets (bug 1464102) for browser-chrome failures on siteData/browser_siteData.js. CLOSED TREE
Backed out changeset 460cd874757f (bug 1464102)
Backed out changeset 3c227d911b2f (bug 1464102)
Backed out changeset 43b864db2e34 (bug 1464102)
2018-05-25 01:42:37 +03:00
Jared Wein
7561f9cb33 Bug 1464102 - Add support for todo_is within ContentTask. r=Gijs
MozReview-Commit-ID: 9GUJIMpylBb

--HG--
extra : rebase_source : 597dff9afa61f281b890ad157d85f117a24f082f
2018-05-24 12:06:36 -04:00
Jared Wein
4caaac5191 Bug 1464102 - Add message listener for content-task:test-todo so todo from within ContentTask will work. r=Gijs
MozReview-Commit-ID: EuWX8eMl8hY

--HG--
extra : rebase_source : 9124f486e4676410fb2fe0009eefc13c28695628
2018-05-24 12:00:09 -04:00
Kris Maglione
6b12d08f7d Bug 1462937: Update callers to use nsIFile::GetDirectoryEntries as a nsIDirectoryEnumerator. r=froydnj
MozReview-Commit-ID: Iv4T1MVAF5

--HG--
extra : rebase_source : 1c518883d082884db7f9323a5acc20361228c26b
extra : histedit_source : 70a73c23d1199d3bfbb5379c78930401166c094b
2018-05-19 20:17:45 -07:00
Kris Maglione
f8aeb3dbfc Bug 1462223: Remove unnecessary/unused bootstrap scope setup code. r=aswan
This also removes the workerbootstrap test extension, which is no longer used,
and contains the last references to the Worker and ChromeWorker bootstrap
globals.

MozReview-Commit-ID: 8YWReXMqX5W

--HG--
extra : rebase_source : b0aa59b2b5e6a08f4be803e828bd507f894e4a19
2018-05-19 14:03:50 -07:00
Paolo Amadini
c476bfba8e Bug 1459927 - Traverse nsIStackFrame async callers when reporting browser-chrome test harness failures. r=jmaher
MozReview-Commit-ID: BZ1bt1amerq

--HG--
extra : rebase_source : 7fa5e81be720f24f0dedf0390f53b2b1102d2ac5
2018-05-08 15:10:01 +01:00
Geoff Brown
02e2a58e26 Bug 1462182 - Dump less device info during Android test-verify; r=jmaher 2018-05-17 16:19:02 -06:00
Gregory Mierzwinski
8eb9e2c317 Bug 1455401 - Generate baseline code coverage reports. r=jmaher,marco
The tests added in this patch will be used as a baseline for coverage that is common to all tests. They are added to each chunk being run in the test-coverage suite only if a test with an associated baseline type exists.

MozReview-Commit-ID: 1CrRZ1Ev2Mz

--HG--
extra : rebase_source : e2e4f9a51c82c637c8892dd8a5dbd84704b67b54
2018-04-25 15:22:28 -04:00
Kris Maglione
01c298aca6 Bug 1460092: Add ESLint rule to enforce use of ChromeUtils.generateQI. r=Gijs
Also fixes existing code which fails the rule.

MozReview-Commit-ID: CkLFgsspGMU

--HG--
extra : rebase_source : 86a43837659aa2ad83a87eab53b7aa8d39ccf55b
2018-05-08 18:36:22 -07:00
Andrew Halberstadt
ac08b89a81 Bug 1459598 - Use profiles.json file to map test suites to the base profiles they use, r=jgraham
This serves two purposes:

1) It makes web-platform-tests pref downloading/handling a little more robust. When
run externally, it now downloads the entire testing/profiles directory. When loading
prefs it will look for both prefs_general.js (to support older versions of Firefox)
and profiles.json (for support moving forward).

This way we can add/remove/rename pref files under these directories without needing
to worry about breaking upstream wpt.

2) It provides developers an overview of which harnesses are using which base profiles.
Instead of hunting through test harness code to find this information, they can glance
at profiles.json.

MozReview-Commit-ID: AMzdnD8aGA2

--HG--
extra : rebase_source : 6fa0a802680417e49fcef99f3d03de7458a8fcba
2018-05-07 09:43:12 -04:00
Milan Sreckovic
87da3c52e9 Bug 1318947: More diagnostic information when snapshot comparison fails. r=jwatt
--HG--
extra : rebase_source : c6cf33a8d23c1d6fec4898b847767a3c4b4b7cdc
2018-05-04 09:42:00 +03:00
Joel Maher
91721cfdc5 Bug 1455316 - sometimes when test-verify finds a failure, all future tests are marked as failing also. r=gbrown 2018-05-01 14:04:24 -04:00
Andrew Halberstadt
89a1cd8a45 Bug 1451159 - [mochitest] Load profile data from testing/profiles/common r=gbrown
This makes mochitest use mozprofile's new 'merge' feature instead of
explicitly loading the user.js preference file.

This means that any extensions that get dropped into
testing/profiles/common/extensions, will automatically run as part of the
mochitest run. This can be useful for testing how extensions impact tests
locally or on try.

In the near future, all our other test harnesses will also start using this
profile directory.

MozReview-Commit-ID: 34aSqdnkHqx

--HG--
extra : rebase_source : 977b0eb6404648e387428004ec3f3085af6f86fd
2018-04-19 16:12:49 -04:00
Andrew Halberstadt
c9bdbe0a32 Bug 1451159 - [testing/profiles] Use 'format' for interpolation instead of %s r=gbrown
MozReview-Commit-ID: EbDS1fYDe1X

--HG--
extra : rebase_source : e8e179f97fb3df492b2fcc690616157254e49fdd
extra : source : 03f43cb6ab42e55f475c6f6a99c7da547b0aa6f8
2018-04-20 11:03:38 -04:00
Andrew Halberstadt
ee69aa133e Bug 1451159 - [testing/profiles] Store profile data in actual profile look alike folders r=gbrown
This moves testing/profiles/prefs_general.js to
testing/profiles/common/user.js. It also adds an 'extensions' folder to the
common profile. Dropping extension files here will get them installed in all
test harnesses (useful for testing on try).

The idea is that all test harnesses will eventually use this 'common' profile.
We'll also create some new per harness profiles, e.g testing/profiles/mochitest
and testing/profiles/reftest. This way there will be a single location
developers can go to set preferences, both for a specific harness, and across
all harnesses.

MozReview-Commit-ID: 8sqBqLiypgU

--HG--
rename : testing/profiles/prefs_general.js => testing/profiles/common/user.js
extra : rebase_source : 72a4a4b691e93c77479c7e70647b0ca373862c51
2018-04-19 16:12:26 -04:00
Geoff Brown
84a800ebe9 Bug 1458656 - Do not try to use non-existent robocop apk; r=nalexander 2018-05-03 13:34:00 -06:00
Mark Banner
d19d88da30 Bug 1457835 - Enable ESLint for testing/mochitest (manual changes). r=jmaher
MozReview-Commit-ID: BoGnB1aQxm8

--HG--
extra : rebase_source : 3014c44fb75c24616da5ca35b4e0addaf9982d9e
2018-04-30 11:03:44 +01:00
Mark Banner
7953526ea2 Bug 1457835 - Enable ESLint for testing/mochitest (automatic changes). r=jmaher
MozReview-Commit-ID: 4Et3MAxcEQl

--HG--
extra : rebase_source : b6456aa9dd18df77cfb7fbb5012de33bd6fed681
2018-01-26 21:32:30 +00:00
Chris Manchester
22900f8fb9 Bug 1372381 - Generate automation.py with GENERATED_FILES rather than Makefile.in r=mshal
This commit also removes "DEFAULT_APP", which is unused.

MozReview-Commit-ID: 5YYaC5LJqUn

--HG--
extra : rebase_source : 45f0f8f11698890fae0dcca71174f88dbdb412c8
2018-04-30 11:08:59 -07:00
Geoff Brown
aebd334d65 Bug 1457971 - Support test chunks in runjunit.py and run geckoview-junit in 3 chunks on debug builds; r=me,a=test-only 2018-04-30 17:58:27 -06:00
Kris Maglione
a259026c9d Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY

--HG--
extra : rebase_source : a29c07530586dc18ba040f19215475ac20fcfb3b
2018-04-22 20:55:06 -07:00
Geoff Brown
b7021e6fbe Bug 1445716 - Support profile locations in geckoview-junit; r=jmaher 2018-04-25 09:10:26 -06:00
Geoff Brown
e7c02e67e3 Bug 1445716 - Process more geckoview-junit status codes; r=jmaher 2018-04-25 09:10:26 -06:00
J.C. Jones
6fad8e3ff1 Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus
(This also fixes Bug 879740 and Bug 1204543.)

build/pgo/certs contains an NSS database set that has a bunch of hand-generated
certificates, and many of these hand-generated certificates are specifically
depended upon for a variety of unit tests. This patch changes all of these to
use the "pycert.py" and "pykey.py" utilities that produce deterministic keys
and certificates.

The naming convention here is new, and defined in the README. It is based on
the mochitest runtest.py naming convention that imports .ca and .client
PEM-encoded certificates.

Unfortunately, the updates to build/pgo/genpgocert.py to generate these files
depends on OpenSSL in order to produce PKCS12 archives for pk11tool to import
into NSS. This could be done with pure-NSS tooling, but it'd require some new
command line functionality, which is out-of-scope for this change.

Note that build/pgo/genpgocert.py no longer takes arguments when run. It's not
run automatically anywhere that I can see, but could (reasonably) be, now.

Differential Revision: https://phabricator.services.mozilla.com/D971

--HG--
extra : amend_source : bc389b9b0a807a4889feb14db439daa28635dfe9
2018-04-23 11:14:17 +02:00
Kris Maglione
219ed0cc06 Bug 1454813: Part 2b - Rename SpawnTask.js to AddTask.js. r=florian
The old name no longer makes sense, since it no longer exports an spawn_task
symbol, and add_task is what we really care about.

MozReview-Commit-ID: IE7B8Czv8DH

--HG--
rename : testing/mochitest/tests/SimpleTest/SpawnTask.js => testing/mochitest/tests/SimpleTest/AddTask.js
extra : rebase_source : 03bca5aa69a7625a49b4455a6c96ce4c59de3a5a
2018-04-18 11:43:45 -07:00
Kris Maglione
2744972833 Bug 1454813: Part 2a - Remove spawn_task support in plain/chrome mochitests. r=florian
MozReview-Commit-ID: DbGBt6tH6Vo

--HG--
extra : rebase_source : c99351319eefb8e6454e80e0d354ef650e672ddf
2018-04-17 16:01:10 -07:00
Kris Maglione
f1f4e87948 Bug 1454813: Part 1b - Stop automatically exposing Task singleton to browser tests. r=florian
Now that Task.jsm is deprecated and add_task no longer accepts generators, it
doesn't make sense to continue making this automatically available in test
scopes.

MozReview-Commit-ID: AckO5nnFngG

--HG--
extra : rebase_source : 826b7cce67d9ab000d6385663c543bc72eef174b
2018-04-19 14:52:47 -07:00
Kris Maglione
dfd8eb706c Bug 1454813: Part 1a - Remove Tasks.jsm support in browser tests. r=florian
MozReview-Commit-ID: IxwtdywNt8Z

--HG--
extra : rebase_source : 770c017d6da0cc0feb21fbf7d1db84e48f74be6a
2018-04-18 11:47:45 -07:00
Geoff Brown
fbc5b83b58 Bug 1445716 - Add Android mach command 'geckoview-junit'; r=jmaher 2018-04-18 14:43:35 -06:00
Geoff Brown
1705c7946a Bug 1445716 - Add runjunit.py, a test harness for junit tests on Android devices; r=jmaher 2018-04-18 14:43:33 -06:00
Kris Maglione
682fa8cd83 Bug 1453881: Part 1b - Manually fix tests that await generators in async functions. r=ochameau
MozReview-Commit-ID: 2oetVEj7yF

--HG--
extra : rebase_source : 153055141df20e1f9f88064ff4be788e74408bef
extra : histedit_source : 41fd082a6dd44bba88d1a503de6b2dd8daebd4e4
2018-04-15 00:30:04 -07:00
Kris Maglione
0f40271841 Bug 1453881: Part 1a - Automatically write add_task(function*) to add_task(async function) r=ochameau
This was done using the script at:

bc5629735d/processors/add-task-async.jsm

MozReview-Commit-ID: KxuS9Cen87

--HG--
extra : rebase_source : c0028e0cd55ba1643610cd30c55c6f4bca7d6e58
extra : histedit_source : ebc84fdec9c2db6176632d62de4e7bdad2a7829d
2018-04-12 21:10:04 -07:00
Alexander Surkov
b59a2588ee Bug 1446671 - convert mochitest/textcaret/test_browserui.xul test into a browser test, r=yzen, gijs 2018-04-11 16:13:30 -04:00
Geoff Brown
ca43a015dc Bug 1454404 - Pass adb path from Android mach commands to test harnesses; r=jmaher 2018-04-16 14:05:32 -06:00
Henrik Skupin
e5f31f5f9e Bug 1453596 - [mochitest] Throw errors instead of strings to get line numbers. r=gbrown
Without using "new Error()" there will always be line 0 referenced
in the exception message.

MozReview-Commit-ID: KGzVDShiLTW

--HG--
extra : rebase_source : e677730f0dcde896157681925f169da529939cf8
2018-04-12 12:10:26 +02:00
Henrik Skupin
e5298628bf Bug 1453596 - [mochitest] Throw exception if path for server alive file doesn't exist. r=gbrown
MozReview-Commit-ID: AjjNbeOjTyr

--HG--
extra : rebase_source : f75377b4d34edb3026794f99557e19eddb2af459
2018-04-12 12:06:34 +02:00
Bob Clary
cc77040a96 Bug 1440714 - make sure to use root=True with chmod /sdcard/tests/, r=gbrown. 2018-04-10 23:12:28 -07:00