19212 Commits

Author SHA1 Message Date
Attila Craciun
e6692a3a7e merge from central to autoland r=merge a=merge on a CLOSED TREE 2017-11-02 11:55:50 +02:00
Henrik Skupin
2b24952fe1 Bug 1413821 - Skip final assertion in test_inclusive_descendant for Android. r=test-fix a=test-fix
MozReview-Commit-ID: 7fadvwbofPb
2017-11-02 08:43:26 +01:00
Henrik Skupin
7479ef0258 Bug 1321516 - Switch to WebDriver conformant interactability checks. r=ato
This change will cause Marionette to use the webdriver conformant
clickElement method instead of the legacy one by default. It means
that additional checks will be performed to ensure that the element
to click onto is visible, and not obscured by other elements. Also
it will be scrolled into view in case it is located outside of the
current view port.

Even it is used by default, the behavior can be controlled with the
"moz:webdriverClick" capability. Setting to to 'false' when creating
a new session, will cause a fallback to legacy clickElement.

MozReview-Commit-ID: E560k62Q2J9

--HG--
extra : rebase_source : 1d4d120822c6ae13a319c6c5d33e5b77b86cfdb6
2017-11-01 22:18:39 +01:00
Sebastian Hengst
ca88e3c4c5 Merge mozilla-central to autoland. r=merge a=merge 2017-11-01 22:58:44 +01:00
Sebastian Hengst
4ff29d14f8 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: GSDYk9wLOAM

--HG--
rename : browser/base/content/test/general/browser_bug561636.js => browser/modules/test/browser/formValidation/browser_form_validation.js
rename : browser/base/content/test/general/browser_bug595507.js => browser/modules/test/browser/formValidation/browser_validation_iframe.js
rename : browser/modules/test/browser/browser_bug1319078.js => browser/modules/test/browser/formValidation/browser_validation_invisible.js
2017-11-01 22:55:12 +01:00
Gregory Szorc
a76f5a4c0b Bug 1412356 - Invoke mach build for multi locale builds; r=chmanchester
This should be functionally identical to `make -f client.mk`.

MozReview-Commit-ID: GfKHtezLBNL

--HG--
extra : rebase_source : e7965718b16d22055abdab2838e97cae63330ce9
2017-10-27 10:10:14 -07:00
Gregory Szorc
be33077ff5 Bug 1412356 - Don't invoke client.mk from mobile l10n automation; r=chmanchester
The old code was simply running configure and manually invoking some
make targets via client.mk. These can both be done via `mach`.

As part of the change, the build targets have been consolidated. There
is still an abstraction leak here. But at least we aren't using client.mk.

MozReview-Commit-ID: 7oMXPWPZS6V

--HG--
extra : rebase_source : 6d632dc086d79a17e577da66336c77003d963f67
2017-10-27 10:07:52 -07:00
Ryan VanderMeulen
a090aa11cd Backed out changeset ee243422ed36 (bug 1413619) for test failures. 2017-11-01 17:29:10 -04:00
alex
40f03f9f5e Bug 1393788 - Compress all JSDcov artifacts (.json files) into zip files after all tests are completed. r=gmierz,jmaher.
Building with "Linux x64 JSDCov", each suite of tests will produce a list of JSDCov artifacts (.json). This patch compresses all JSDCov artifacts into 1 zip file for each suite upon tests completion.
MozReview-Commit-ID: DaNLOQuW2lc

--HG--
extra : rebase_source : cceb912d0fe16f9921e1d13fe85d53af2abcb29c
2017-10-26 17:01:12 -04:00
Andreas Tolfsen
ea7bdb1cbb Bug 1410796 - Add basic evaluate.toJSON tests. r=whimboo
MozReview-Commit-ID: EvtsPhiq6sd

--HG--
extra : rebase_source : 8c6fcb49f9373c9a3be2567111f935a3c9d4b7c7
2017-10-31 20:02:07 +00:00
Andreas Tolfsen
20f23db957 Bug 1410796 - Test element retrieval from XHTML namespace. r=maja_zf
Finding elements in the XHTML namespace will fail unless
element.isDOMElement is fixed so that it does not look at a
particular namespaceURI.

It is worth noting that, generally, the WPT element retrieval tests
are pretty awful and the new tests don't exactly match the style of
the preceding tests.  This intended, because the other tests are bad.
This should be addessed individually.

MozReview-Commit-ID: 8I3VwhJirSb

--HG--
extra : rebase_source : 2de08ec68dbf8b4768708bdb733965634ac4feda
2017-10-31 20:01:53 +00:00
Andreas Tolfsen
34669663f4 Bug 1410796 - Add nodeType existence check. r=whimboo
If the node variable is an object that is not null, and nodeType is
not an own property of it, node.nodeType === node.ELEMENT_NODE might be
evaluated as undefined === undefined if ELEMENT_NODE is also missing.
This will pass the condition, which is an unintended consequence.

To remedy this, we first check that nodeType indeed exists on node
before proceding.

MozReview-Commit-ID: G0eaRvwm5mv

--HG--
extra : rebase_source : 8c08e0363f26095cf672d2b11699431b1fb4ef9f
2017-10-31 19:59:41 +00:00
Andreas Tolfsen
e944eb5cdb Bug 1410796 - Drop element.isSVGElement. r=whimboo
This drops the now-superfluous element.isSVGElement.  SVG elements
are matched with element.isDOMElement because there is no special
need to distinguish them from other elements, apart from chrome elements.

MozReview-Commit-ID: 3AgEtyaAsPU

--HG--
extra : rebase_source : 7ec52aa9a7b7404eff5b6daf8ebe8259f06265da
2017-10-31 19:57:40 +00:00
Andreas Tolfsen
b91e906a0c Bug 1410796 - element.isDOMElement to match any non-XUL element. r=whimboo
This patch makes element.isDOMElement match any non-XUL element,
meaning it will henceforth match both SVG elements as well as any
custom XML namespaced element.

In the bug 1410796, Marionette does find the element, but is unable
to add it to the known web element store.  This is a result of the
changes made in bug 1400256, where I introduced a set of functions
for element type recognition needed for determining which web
element abstraction to use for an element.

We use element.isDOMElement to distinguish content elements from chrome
elements, and this change consequently makes element.isSVGElement
superfluous.

MozReview-Commit-ID: AkEHm6zroKz

--HG--
extra : rebase_source : c6f101e12839241f60c8c1b3908df3a3e4a89a51
2017-10-31 19:55:49 +00:00
Vedant Chakravadhanula
72dd3218a3 Bug 1218554 - Handled the error while attaching the DMG(macOS). r=whimboo
Variable appDir was being referenced before assignment. Changed the try-except-finally blocks to handle the error.

MozReview-Commit-ID: AHEeVhmPfQI

--HG--
extra : rebase_source : b0dd78f3895bb34c4e916bc0441dd9ae5e643dfc
2017-10-27 22:16:55 +05:30
Andreas Tolfsen
ea4dbaf7a9 Bug 1413292 - Remove backtrace crate dependency from geckodriver. r=jgraham
Made this a separate commit from that which actually removes the
in-tree vendored dependencies to make it easier to review.

MozReview-Commit-ID: 9xbkM0EfOOL

--HG--
extra : rebase_source : 6686dc07a25df1a820914eb715fb733778f092cb
2017-10-31 20:31:53 +00:00
Andreas Tolfsen
a1b7e2cd46 Bug 1413292 - Stop sending geckodriver backtrace with errors. r=jgraham
The Rust backtrace from geckodriver is  not useful since any error
we actually return is by-definition handled by the code, and we
can probably get more information just by looking at the error type
and string.

At the same time, it runs the risk of confusing users into thinking
there was a bug in the driver when actually it's perfectly normal
handling of invalid input.

MozReview-Commit-ID: 9S5IaioA5AA

--HG--
extra : rebase_source : 0d98188c263d51402c2330a6b730752487dcc7fc
2017-10-31 20:30:18 +00:00
Dão Gottwald
3ccaa127b0 Bug 1398103 - Adjust toolbar and toolbar button spacing to match photon spec. r=daleharvey
MozReview-Commit-ID: 4Pcqahw2Mwu

--HG--
extra : rebase_source : 72cb970d7e9c50f17fd829c330e0604842c2c602
2017-11-01 11:17:50 +01:00
Csoregi Natalia
423b2522c4 Merge inbound to mozilla-central r=merge a=merge 2017-11-01 12:14:00 +02:00
Sebastian Hengst
2181970726 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-11-01 00:39:58 +01:00
Sebastian Hengst
7a0f790c30 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4CDH6A5NT2U
2017-11-01 00:36:12 +01:00
Joel Maher
a225135c30 Bug 1407383 - Disable /webdriver/tests/actions/key.py on linux for frequent failures. r=me, a=testonly 2017-10-31 08:46:32 -04:00
Margareta Eliza Balazs
a63fdbeabb Merge inbound to mozilla-central r=merge a=merge 2017-10-31 12:46:19 +02:00
Samael Wang
752dc4bc75 Bug 1397512 - Part 2: Add wpt test of form submission inside an onload handler. r=smaug
MozReview-Commit-ID: HearVphzHsG

--HG--
extra : rebase_source : 0388aa650a7a56e69b908d7ae389377d2e51744d
2017-10-26 17:26:53 +08:00
Phil Ringnalda
046d7cd77a Backed out changeset 349b9517cb9b (bug 1403131) for wpt, talos, android, and marionette failures
CLOSED TREE

MozReview-Commit-ID: GEyvPM0mvkR
2017-10-30 20:55:37 -07:00
Geoff Brown
85c3bc0188 Bug 1413005 - Update e10s mozinfo properties for test-verification; r=jmaher 2017-10-31 15:58:28 -06:00
Andreas Tolfsen
66fd7fce78 NO BUG - Fix link in geckodriver README r=me
DONTBUILD
CLOSED TREE

MozReview-Commit-ID: FcXMuLkOwto
2017-10-31 21:14:18 +00:00
Andreas Tolfsen
74b973dc73 NO BUG - Include geckodriver doc intro r=me
DONTBUILD
CLOSED TREE

MozReview-Commit-ID: 30BkwloZGFM
2017-10-31 21:14:10 +00:00
Andreas Tolfsen
94a08e665f NO BUG - Skip annotated tags when releasing geckodriver r=me
DONTBUILD

MozReview-Commit-ID: CIX5O9P11Xz
2017-10-31 19:10:15 +00:00
Andreas Tolfsen
6e21a62e34 NO BUG - Clarify commit instructions for releasing geckodriver r=me
DONTBUILD

MozReview-Commit-ID: 6tsAfJ8WRDE
2017-10-31 19:09:22 +00:00
David Anderson
5853a1cb55 Add a Talos test for displaylist mutation. (bug 1411804, r=jmaher, r=mattwoodrow) 2017-10-30 10:11:45 -07:00
Paolo Amadini
98b8fb39b7 Bug 1411979 - Share the getTempFile function in xpcshell and browser tests. r=mak
MozReview-Commit-ID: 5hshgOrFqws

--HG--
extra : rebase_source : c7b173f7c2685c9522ef0626b74819273352a373
extra : source : 68e85782bbcab3c06e729551643bdc602cf8de71
2017-10-31 13:25:45 +00:00
Joel Maher
34110f34d0 Bug 1412904 - fill in missing bugzilla_components in testing/webdriver. r=ato 2017-10-31 12:27:48 -04:00
Nicolas Chevobbe
7c358c7180 Bug 1391688 - Add damp test to track opening the console with messages in the cache; r=bgrins.
This adds a test that measure the time it takes to open the console
on a page with 100 logged messages and show something meaningful to the user.

MozReview-Commit-ID: FMx9QRKvpfl

--HG--
extra : rebase_source : d587d8258c66457a5a4cb65882c8aacaaebfa68c
2017-10-24 09:28:03 +02:00
Sebastian Hengst
2470a9a87b merge mozilla-central to autoland. r=merge a=merge 2017-11-01 00:38:25 +01:00
Andreas Tolfsen
707c28df99 Bug 1410652 - Let WebDriver:SwitchToFrame take a web element. r=whimboo
The "element" field on the WebDriver:SwitchToFrame command request's
body takes a string web element reference UUID as input.  This patch
changes it so that it can also take a web element JSON Object.

The old behaviour can be removed with Firefox 60.

MozReview-Commit-ID: JcTD3MRxjOe

--HG--
extra : rebase_source : f313349121787e8f68137132cac49aecebee5ba1
2017-10-21 19:30:27 +01:00
Andreas Tolfsen
089e754126 Bug 1410652 - Use invalid argument error for web element deserialisation. r=whimboo
For user input we will want to return the appropriate invalid
argument error.  For internal input using TypeError is fine.

MozReview-Commit-ID: AlOnZuhaczN

--HG--
extra : rebase_source : f16aa13b6fc53da6261594dab0c9df34d6c3df6e
2017-10-24 17:42:32 +01:00
Andreas Tolfsen
f9a44482f3 Bug 1410652 - Fix various API documentation in element module. r=whimboo
MozReview-Commit-ID: AaGnolglX5n

--HG--
extra : rebase_source : 5fccbd53ab96849df2aece2679db2df84aced804
2017-10-24 17:38:55 +01:00
Andreas Tolfsen
405edbbbd0 Bug 1410652 - Fix API docs of assert functions. r=whimboo
MozReview-Commit-ID: HktgnHoCGZV

--HG--
extra : rebase_source : fbd1dbc73ad4ebfb3b06196eed2d17ea0c4b00f4
2017-10-24 17:32:26 +01:00
Steve Armand
bb8ebfb3dd Bug 1403131 - Run linters against mozharness scripts and configs. r=rail
MozReview-Commit-ID: vCOGNkXdEB

--HG--
extra : rebase_source : ae13f1a7db351173a2ffebad5695706711bc0217
extra : amend_source : 17c34ccb9e603b5219ec898c5ef767ab541ca6f7
2017-10-28 22:43:19 -04:00
Joel Maher
ede9d9fd21 Bug 1412916 - fill in missing bugzilla_components. r=gps 2017-10-30 19:07:20 -04:00
Joel Maher
ab5f3e7d54 Bug 1411980 - annotate newer directories with bugzilla compoents. r=overholt 2017-10-30 19:07:17 -04:00
Sebastian Hengst
2c835e29c4 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-31 00:00:54 +01:00
Sebastian Hengst
f07fc93141 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4PW6ESqLL73
2017-10-30 23:52:23 +01:00
Geoff Brown
2d0571a567 Bug 1412526 - Only verify first 10 modified tests in test-verify; r=jmaher
Trying to verify an unlimited number of tests will likely run out of time
or log space, so give up once 10 tests are verified.
2017-10-30 15:13:42 -06:00
Christoph Kerschbaumer
652d8d1b48 Bug 1302667 - Update wpt tests for worker-src. r=dveditz,mckinley 2017-10-30 18:46:51 +01:00
Sebastian Hengst
7bf9eb161a Backed out 2 changesets (bug 1411979) for failing xpcshell's toolkit/components/jsdownloads/test/unit/test_PrivateTemp.js. r=backout on a CLOSED TREE
Backed out changeset 7a4f33d16b9e (bug 1411979)
***
Backed out changeset 68e85782bbca (bug 1411979)

--HG--
extra : histedit_source : 0226bf9f95762ef7fe4e57aee97b96ae5deff496%2C066dd55855dbcbd146642acd72bcd4e5d8044a2f
2017-10-30 19:19:45 +01:00
Paolo Amadini
7e4a6c3456 Bug 1411979 - Share the getTempFile function in xpcshell and browser tests. r=mak
MozReview-Commit-ID: 5hshgOrFqws

--HG--
extra : rebase_source : 9377484a4416829e0bfbe30c70d434b331e7301c
2017-10-30 16:53:22 +00:00
Sebastian Hengst
7eb270c395 Backed out 4 changesets (bug 1410652) for eslint failure at testing/marionette/element.js: Line 1456 exceeds the maximum line length of 78. r=backout
Backed out changeset 97031d4ea2bd (bug 1410652)
Backed out changeset 66754caa4c52 (bug 1410652)
Backed out changeset 48048929bb17 (bug 1410652)
Backed out changeset 265a168b4e37 (bug 1410652)
2017-10-30 19:32:43 +01: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