Commit Graph

3261 Commits

Author SHA1 Message Date
Matthew Noorenberghe
0dfb1ec446 Bug 1415692 - Don't enforce runByManifest for prefs in manifests on disabled tests. r=ahal
MozReview-Commit-ID: Fd9laiSVJwa

--HG--
extra : rebase_source : 4bf4dc02e6e16f1b2f68f1102c184fb0c4c399c9
2017-12-05 15:45:21 -08:00
Tooru Fujisawa
4f99c0530b Bug 1420310 - Part 1: Wait for the next event tick in ContentTaskUtils.waitForEvent r=felipe 2017-12-01 10:05:46 +09:00
Dorel Luca
be78e6ea9b Merge inbound to mozilla-central r=merge a=merge 2017-11-29 12:26:15 +02:00
Mike Hommey
2b2a874b47 Bug 1420355 - Statically link DMD. r=njn
--HG--
extra : rebase_source : 8e7cf975d096116b666532f3fe8aa5a7f61b5725
2017-11-28 08:10:48 +09:00
Mike Hommey
1e631092c5 Bug 1420355 - Don't initialize DMD if the DMD environment variable is not given. r=njn
This makes things slightly more inconvenient (having to set two
environment variables instead of one for the simplest case) until a few
patches down the line, when DMD is statically linked, at which point it
will get down to one environment variable every time.

--HG--
extra : rebase_source : 08dc3c05318b572ae1026227d0369fa8bf21b20f
2017-11-28 08:10:07 +09:00
Csoregi Natalia
4ce8d0124c Backed out 7 changesets (bug 1420355) for mass failures on OS X and Android. r=backout on a CLOSED TREE
Backed out changeset a7ed89e13a4c (bug 1420355)
Backed out changeset fd6702e6e0a0 (bug 1420355)
Backed out changeset 0479dda078a2 (bug 1420355)
Backed out changeset e69357ccca9e (bug 1420355)
Backed out changeset 3742a4b69ba2 (bug 1420355)
Backed out changeset 451cd087922f (bug 1420355)
Backed out changeset d80b5c4e1dd0 (bug 1420355)
2017-11-29 03:08:46 +02:00
Mike Hommey
7c62087a43 Bug 1420355 - Statically link DMD. r=njn
--HG--
extra : rebase_source : 46800c9c0c5006a5a32f11abc209da27e65ae0f5
2017-11-28 08:10:48 +09:00
Mike Hommey
0a3b6c9813 Bug 1420355 - Don't initialize DMD if the DMD environment variable is not given. r=njn
This makes things slightly more inconvenient (having to set two
environment variables instead of one for the simplest case) until a few
patches down the line, when DMD is statically linked, at which point it
will get down to one environment variable every time.

--HG--
extra : rebase_source : 08dc3c05318b572ae1026227d0369fa8bf21b20f
2017-11-28 08:10:07 +09:00
Geoff Brown
9b942019b1 Bug 1421295 - Always use process log to find children; r=jmaher
When psutil is available, use it, but also add any processes found in the
process log to the list of children. Hopefully this will ensure that all
browser children are successfully killed.
2017-11-28 14:34:27 -07:00
Tooru Fujisawa
395d6ae4b8 Bug 1416153 - Part 1: Wait for the next event tick before resolving promise in BrowserTestUtils.waitForNewTab. r=Gijs 2017-11-24 07:50:12 +09:00
Tooru Fujisawa
fb24556ece Backed out changeset 1eff507bf0f4 (bug 1416153) 2017-11-24 09:17:11 +09:00
Tooru Fujisawa
dfa2598b77 Bug 1416153 - Part 1: Wait for the next event tick before resolving promise in BrowserTestUtils.waitForNewTab. r=Gijs 2017-11-24 07:50:12 +09:00
Gabriele Svelto
5ff191810d Bug 1402519 - When the crash reporter code is disabled at configure time replace it with a dummy implementation; r=ted.mielczarek
MozReview-Commit-ID: F5QbaI1LlmZ

--HG--
extra : rebase_source : f05c929911d27dc1598bc040df54022cd90aa06a
2017-11-14 14:49:33 +01:00
Geoff Brown
0b9f96f2c6 Bug 1395935 - Include leaks in mochitest summary fail count; r=ahal 2017-11-23 10:02:22 -07:00
shindli
fb855aa7ba Backed out 16 changesets (bug 1402519) for conflicts during merge r=backout on a CLOSED TREE
Backed out changeset 07fcf163241a (bug 1402519)
Backed out changeset c6d2ad45d8e2 (bug 1402519)
Backed out changeset 8a3caca61294 (bug 1402519)
Backed out changeset 01425eae2c48 (bug 1402519)
Backed out changeset cf298d3815de (bug 1402519)
Backed out changeset e1964f4389cd (bug 1402519)
Backed out changeset f405337f3569 (bug 1402519)
Backed out changeset a76356fd3359 (bug 1402519)
Backed out changeset d3bb350d1c34 (bug 1402519)
Backed out changeset 9d3bfd9f932c (bug 1402519)
Backed out changeset e3dd6e5b073f (bug 1402519)
Backed out changeset e801b0c00134 (bug 1402519)
Backed out changeset 8a4139fa5dca (bug 1402519)
Backed out changeset 8d01c14ac1ca (bug 1402519)
Backed out changeset 24e0dcd01898 (bug 1402519)
Backed out changeset f8fdf450613f (bug 1402519)
2017-11-23 00:11:44 +02:00
Gabriele Svelto
014408d0f5 Bug 1402519 - When the crash reporter code is disabled at configure time replace it with a dummy implementation; r=ted.mielczarek
MozReview-Commit-ID: F5QbaI1LlmZ

--HG--
extra : rebase_source : 37aacdebc4307a21ff4f2ae27d1b031adc25737c
2017-11-14 14:49:33 +01:00
Joel Maher
074cea1610 Bug 1394757 - remove XenDPriv.exe from VM to remove clipboard interference. r=ahal 2017-11-22 14:08:16 -05:00
Tooru Fujisawa
50f5bf47cd Bug 1418739 - Part 2: Remove unused delayedStartup parameter from BrowserTestUtils.waitForNewWindow. r=smaug 2017-11-21 03:41:56 +09:00
Jan de Mooij
3a57a1a466 Bug 1417844 part 5 - Stop passing -v 170 to xpcshell. r=jmaher 2017-11-17 12:14:04 +01:00
Coroiu Cristina
6a04305b5d Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2017-11-14 12:31:45 +02:00
Csoregi Natalia
6232db29bd Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-11-14 01:00:48 +02:00
Geoff Brown
00ee6fdea3 Bug 1415290 - Check return codes in mozcrash kill_pid; r=jmaher 2017-11-13 13:12:05 -07:00
Geoff Brown
0fff13f929 Bug 1415247 - Warn if Firefox is running before mochitest starts Firefox; r=jmaher
When running mochitests in automation, we expect no more than 1 instance of
Firefox to be running at any time: the browser under test. In local testing
scenarios, additional browser instances might be running.

Warn when mochitests find additional 'firefox' instances running before launching
a browser for testing, to make it easier to detect anomalies in automation.
2017-11-13 13:12:02 -07:00
Gabriele Svelto
7134a83dc0 Bug 1416028 - Prevent browser_pluginCrashedCommentAndURL.js from leaking crash dump files; r=mconley
This patch also checks for I/O errors when deleting leftover crashdump files
in the test harness and reports them if the files couldn't be deleted. This
won't prevent tests from leaking crash dumps if they're not written correctly,
but it will make their presence visible and won't cause the harness to hang if
it cannot delete them.

MozReview-Commit-ID: FLvBJxEKkH5

--HG--
extra : rebase_source : 6a0242b670ceabc2307c5345b0ea7108857a10d2
extra : source : 95b1010395826d06cdc77cbf43faf7d8681504eb
2017-11-06 16:16:13 +01:00
Matthew Noorenberghe
beb2979a44 Bug 1415379 - Add the entire _tests directory to the sandbox whitelist. r=ahal,Alex_Gaynor
mochitests needs access to TESTING_JS_MODULES which are installed in $(OBJDIR)\_tests\modules\

MozReview-Commit-ID: CMgDlj4uKeP

--HG--
extra : rebase_source : 0a32b71db56bd68fc369d58117075dabf0465727
2017-11-13 13:37:41 -08:00
Geoff Brown
cbb956e0c3 Bug 1407679 - Merge nsIIOService and nsIIOService2; r=nwgh 2017-11-10 07:03:36 -07:00
Jan de Mooij
296194e65f Bug 1414340 part 1 - Remove non-standard array/generator comprehensions from browser code. r=mossop 2017-11-10 11:52:22 +01:00
Andrew McCreight
ee2fe89f35 Bug 1411259 - Reduce mochitest tab process leak threshold to 0 on non-Windows platforms. r=erahm
Also, reduce the leak threshold on Windows.

--HG--
extra : rebase_source : fa9ea7c4aa991bff8bbf74d125a5ef4551edd3cb
2017-11-10 01:48:49 +02:00
Andrew Halberstadt
a69182174e Bug 1414399 - [mozbuild/moztest] Move mozbuild.testing.TestResolver to moztest.resolve r=gps
The TestMetadata and TestResolver classes aren't technically part of the build
system. The only connection is that they consume some build system output.

The next patch in this series is going to be merging in a bunch of other test
resolving logic from other parts of the tree. Moving this out first allows us
to keep that extra logic out of mozbuild.

MozReview-Commit-ID: 1eq4SjFVCyW

--HG--
rename : python/mozbuild/mozbuild/test/test_testing.py => testing/mozbase/moztest/tests/test_resolve.py
extra : rebase_source : 7ff11f9ec455547533082d20cb5371845f7a4f21
2017-11-06 08:41:42 -05:00
Mark Banner
a008ea82c3 Bug 1402707 - Change BrowserTestUtils.waitForNewTab to allow waiting for tabs to open a new URL when the tab might not be the next one opened. r=mak
MozReview-Commit-ID: HNFEC6BuBit

--HG--
extra : rebase_source : 62bd418aef297a16a78f82b1c159947dd8ecdbd8
2017-09-24 19:34:34 +01:00
Dave Townsend
22d2555352 Bug 1376546 - Add instrumentation to browser-chrome tests to output the total set of elements in use in tests;r=bgrins
MozReview-Commit-ID: DOpig6v4mtt

--HG--
extra : rebase_source : 8b8267cb83c88132a67ae51b59fe287fd6b56184
2017-06-13 15:49:33 -07:00
Andrew Halberstadt
0a7a6c454b Bug 1414514 - [mochitest] Dump http status when failing to load test manifest, r=jmaher
MozReview-Commit-ID: 4yRSWa1m0Kt

--HG--
extra : rebase_source : 2c72544c993015793005e912bf221a9e5abb710a
2017-11-07 13:57:33 -05:00
Geoff Brown
8538ff6458 Bug 1414063 - Increase mochitest/reftest default output timeout to 370 seconds; r=jmaher 2017-11-03 12:08:29 -06:00
Paolo Amadini
dac52b86d6 Bug 1412282 - Allow calling Assert.jsm methods directly from other test-only modules. r=mikedeboer
This adds a global instance that can be used by invoking assertion methods directly on the imported Assert object. The test suites set the global reporter function to the one for the currently running test.

MozReview-Commit-ID: 8dksVc9o7r

--HG--
extra : rebase_source : 3e382c6d24c6019d29963811c37469cfc23b928f
2017-10-27 14:38:30 +01:00
Hiroyuki Ikezoe
2fa9a3a408 Bug 1379515 - Add another variant of sendWheelAndPaint but without flushing layout for obtaining target element position before sending the wheel event. r=smaug
MozReview-Commit-ID: 6jyYjVhHXjM

--HG--
extra : rebase_source : f924e0060b2a397b00a827d8f3a8365903982f9b
2017-10-30 09:43:20 +09:00
Henrik Skupin
e3c38148be Bug 1411913 - Enable Marionette trace log for mochitest/reftest by default. r=jmaher
MozReview-Commit-ID: 1cGy3YlJml1

--HG--
extra : rebase_source : 23106578640a64848c164121a96cdddebd13cad8
2017-10-26 13:05:17 +02:00
Attila Craciun
7bcf901c3b Merge inbound to mozilla-central r=merge a=merge 2017-10-25 12:30:28 +03:00
Geoff Brown
5facbdc255 Bug 1410714 - Help mach tests find adb when running Android tests; r=jmaher 2017-10-24 15:17:25 -06:00
Gabriele Svelto
a3d1d04f8d Bug 1410165 - Make the test harness properly listen to crash events when running a test more than once; r=mconley
MozReview-Commit-ID: C3PDtOfaz0v

--HG--
extra : rebase_source : 568387a2a53a55b19a03c6cc793125a01ebd3760
2017-10-20 15:21:46 +02:00
Sebastian Hengst
1ead0a96a9 Backed out changeset dab1c5badddb (bug 1407679) for failing server startup in mochitests on Android. r=backout on a CLOSED TREE
--HG--
extra : amend_source : 3dc4cb2bbaf55f3f6329687ce64d4e862fc3800b
2017-10-24 21:18:26 +02:00
Valentin Gosu
9dd47ebf50 Bug 1407679 - Merge nsIIOService and nsIIOService2 r=nwgh
Removes deprecated nsIIOService2.newChannelFromURIWithProxyFlags

MozReview-Commit-ID: Gr3nA25kcre

--HG--
extra : rebase_source : 3407b5ed0f8f7067523abee28c137db3cac86b14
2017-10-20 16:41:07 +02:00
Sebastian Hengst
24583b9443 merge mozilla-central to autoland. r=merge a=merge 2017-10-20 01:08:09 +02:00
Gabriele Svelto
84b68b502d Bug 1393800 - Have mochitests expecting crashes wait for the crashes to be recorded before clean up; r=mconley
This patch includes a bunch of somewhat related fixes, these are:

- Ensuring that when a mochitest calls SimpleTest.expectChildProcessCrash()
  the harness will wait for the crashes to be recorded before deleting the
  dump files. This involves a message round-trip between the content and
  parent process so to minimize its performance impact on all the non-crashing
  tests it is done only when required.
- As an additional optimization, the SimpleTest harness will not send a
  message to the content process anymore whenever it receives an
  ipc:content-shutdown event, instead it does it only for abnormal shutdowns.
- Manually fixing remaining mochitests causing crashes to wait for crashes to
  be recorded before finishing and deleting the dump files.
- Modifying BrowserTestUtils.crashBrowser() so that it optionally does not
  delete the dump files, this is useful for tests that submit their dumps and
  thus delete them on their own.


MozReview-Commit-ID: 4SLJ8BjJ18n

--HG--
extra : source : b5452a41bb962c6929292c5c538e19ac28d84fe7
2017-08-25 12:47:09 +02:00
Mark Banner
77fa87faaa Bug 1409769 - Properly disable idle-daily for mochitests, to avoid background interactions. r=jmaher
MozReview-Commit-ID: 6yS6zwFjphd

--HG--
extra : rebase_source : a3652de9807376a24f576cce6b627f10d014e337
2017-10-18 16:29:37 +01:00
Dan Minor
8583436ea5 Bug 1407203 - Wait for websocketProcessBridge to exit; r=jmaher
We are seeing failures starting websocketProcessBridge due to the port being
in use. It is most likely a previously started websocketProcessBridge process that
is using the port.

On Windows, mozprocess.kill() calls TerminateJobObject/TerminateProcess and
GetExitCodeProcess, but these are asynchronous and don't wait for the process to
actually exit. Adding a wait call should guarantee the process has exited before
continuing which will hopefully ensure the port is free by the time we start an
additional websocketProcessBridge.

MozReview-Commit-ID: HGyjEsy1Ons

--HG--
extra : rebase_source : f56034e1fc0febae07d9b2728eded0a48975baca
2017-10-16 15:47:58 -04:00
Sebastian Hengst
f9b5b9b40c merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 790IXj5MZ4f
2017-10-18 11:48:34 +02:00
Nick Alexander
af26e68984 Bug 1366644 - Part 3a: Update Android build-tools (25.0.3), Gradle (3.4.1), Android-Gradle (2.3.3). r=maliu
The goal is to use a newer Android-Gradle build plugin version (2.3.3
is latest stable).  That requires a modern Gradle (anything 3.3+, but
3.4.1 is the default from my Android Studio), and also a newer
build-tools (25.0.3 is latest stable).

The locations of lint output changed, and we want to use the standard
output location because it's difficult to accommodate variant details
in custom names.  We change the location of findbugs output to follow
suit.

This requires either:

- fixing lint errors
- adding to the lint whitelist
- using the new lint baseline

It's best to use the new lint baseline, which will happen in the next commit.

MozReview-Commit-ID: D19FzIDCJrE

--HG--
extra : rebase_source : 12d132c0c3e0dbe2b8873b31360ea96d612de44c
2017-10-16 15:09:15 -07:00
Andrew McCreight
031371eca5 Bug 1409075 - Reduce the tab process leak threshold to reflect the current state. r=erahm 2017-10-17 10:11:00 -04:00
Geoff Brown
3f04ade908 Bug 1409062 - Update mochitest and reftest harnesses for --verify on Android; r=jmaher 2017-10-17 08:00:52 -06:00
Brendan Dahl
95fd4f75d9 Bug 1399956 - Add headless flag for mochitests. r=jmaher
MozReview-Commit-ID: Kqk0sw4ykEm
2017-10-16 16:15:45 -07:00