Commit Graph

3611 Commits

Author SHA1 Message Date
Ciure Andrei
d1376bd7ec Merge inbound to mozilla-central. a=merge 2018-09-01 01:40:48 +03:00
Ciure Andrei
b85e12536f Backed out 1 changesets (bug 1487358) for causing a regression in Selenium a=backout
Backed out changeset baa98a473b15 (bug 1487358)
2018-08-31 22:07:52 +03:00
Henrik Skupin
ffab64c8e6 Bug 1422583 - [marionette] Reset double click tracker when releasing actions. r=ato
Given that all internal states for the virtual devices are getting
cleared when releasing actions, also the timer for double click
event detection has to be canceled.

--HG--
extra : rebase_source : c555ce65f2abb96ad7e91323e309f2114a743a77
2018-08-30 11:35:04 +02:00
Henrik Skupin
76c84025d2 Bug 1487358 - [marionette] "Accept Alert" and "Dismiss Alert" should check for remaining user prompts. r=ato
Workaround until we have a sane dynamic user prompt implementation
(see bug 1477977). At least for now this patch will give us the
opportunity to handle multiple open user prompts.

--HG--
extra : rebase_source : 4a242daef46287051fc6be4c4d9353046d0f6559
2018-08-30 15:06:47 +02:00
Dave Townsend
e1f6637191 Bug 1487246: Remove uses of comma sequences in linted code. r=Standard8
Two cases were hiding permanently failing tests. I've commented those out and
filed bug 1487431.

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

--HG--
extra : rebase_source : 232fa6173de8844a9c47d59926ec8e39d0640ecd
2018-08-29 16:12:55 -07:00
Vangelis Katsikaros
bcbf245786 Bug 1213008 - Add Marionette client option to save screenshot to a file. r=ato 2018-08-31 13:33:17 +01:00
Henrik Skupin
7bbf465896 Bug 1487124 - [marionette] Skip test_capture_vertical_bounds on Android. r=whimboo
--HG--
extra : rebase_source : 456889d44a7fa46f12a0c0bdf55787b9b9197ec4
2018-08-29 20:58:36 +02:00
Cosmin Sabou
55bf096f3d Merge mozilla-inbound to mozilla-central. a=merge 2018-08-29 20:34:13 +03:00
James Graham
8dbce11d8b Bug 1485668 - Fix reftest chain comparisons in marionette reftest implementation, r=ato
We were previously using the original test url as the lhs for each
comparison after the top level, rather than the previous rhs url as
expected.

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

--HG--
extra : moz-landing-system : lando
2018-08-28 12:29:02 +00:00
Henrik Skupin
65c9584a67 Bug 1485730 - [marionette] Limit width and height of created canvas to 32767 pixels. r=ato
The Skia GFX backend limits the dimension of canvases to a maximum
of 32767 for the width and height.

--HG--
extra : rebase_source : b0e1f60cc2f0c1b83e7cb7551216323983cb3407
2018-08-28 13:40:11 +02:00
Henrik Skupin
844af6be05 Bug 1486572 - [marionette] Always return false for "Is Element Enabled" command and XML documents.
--HG--
extra : rebase_source : 0105a079c80191c0b82ac50d5ee90541b74ea879
2018-08-28 09:14:31 +02:00
Henrik Skupin
38c57edd5b Bug 1486485 - [marionette] Replace and not append text for "WebDriver:SendAlertText". r=jgraham
--HG--
extra : rebase_source : f2a07d425f099ea4f7bd8dae75f41369ba531228
2018-08-27 17:37:20 +02:00
Henrik Skupin
fe48ee7ee8 Bug 1479368 - [marionette] Wait for tab modal dialog to disappear.
Both "WebDriver:AcceptAlert" and "WebDriver:DismissAlert" have to
wait until the tab modal dialog has been closed.

--HG--
extra : rebase_source : 64742b03faa900fe301a684a17666e3366322f5b
2018-08-22 22:24:39 +02:00
Henrik Skupin
e78d02deee Bug 1485580 - [marionette] Update unit tests for invalid timeout values. r=jgraham
--HG--
extra : rebase_source : a2e43c040f05673437b34114193e5c8997452d4e
2018-08-23 15:58:27 +02:00
Kris Maglione
3a5c05e76f Bug 1484496: Part 5e - Convert remaining nsISimpleEnumerator users to use JS iteration. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D3733

--HG--
extra : rebase_source : c0fac176d7b3d840c4dbb14f8d95ccfc7f83a5a8
extra : histedit_source : a92c40117d0808a3ad68c972f622a7a42c9ae8ba
2018-08-18 18:13:14 -07:00
Henrik Skupin
c5d3bd801c Bug 1484909 - [marionette] Fix handling of InvalidSessionException.
The Marionette client raises a custom MarionetteException
instead of passing through the InvalidSessionIdException as
returned by the Marionette server.

--HG--
extra : rebase_source : 99fd02062e858f31e25d2ca0fb80940586772fb2
2018-08-21 08:07:23 +02:00
Andreas Tolfsen
f812951fbb Bug 1484153 - Drop duplicate outerWindowID logging in listener.js. r=whimboo
When receiving observer notifications during navigation, we log the
outerWindowID:

	logger.debug(`Received observer notification ${topic} for ${winID}`);

This is no longer necessary as
https://bugzilla.mozilla.org/show_bug.cgi?id=1464469 introduced the
outerWindowID as a prefix to all log messages originating from this
frame script.
2018-08-17 13:01:08 +01:00
Andreas Tolfsen
719b4c5e30 Bug 1482829 - Track Marionette logger verbosity with Log#manageLevelFromPref. r=whimboo
This patch adopts Logger#managerLevelFromPref from Log.jsm to set
and keep track of the Marionette logger's verbosity.

This has the advantage that we do not have to roll separate
implementations of Log for the child- and parent processes.  It also
has the upside that the log level will be reflected when changed
at runtime through the use of an observer.
2018-08-17 12:55:33 +01:00
Andreas Tolfsen
fb6205b6e2 Bug 1484161 - Replace nsITimer with Sleep for dispatchPause. r=whimboo 2018-08-17 11:57:29 +01:00
Tiberius Oros
246f2b4fab Merge inbound to mozilla-central. a=merge 2018-08-17 00:32:50 +03:00
Andreas Tolfsen
1b22ea64c9 Bug 1483805 - Update links to tools-marionette@ archive. r=me 2018-08-16 10:48:33 +01:00
Kris Maglione
e890d39c82 Bug 1480244: Part 4 - Make child message managers non-global objects. r=bz
This is mostly self-explanatory. However, the patch also contains some minor
changes to frame scripts which expect to be able to call message manager
methods with a null target object, which stops working when they stop being
global objects.

MozReview-Commit-ID: HDT2RvK3F3L

--HG--
extra : rebase_source : bb3ce8861a261ff1bc28a28b3ff88ba0deaef552
2018-08-10 14:03:18 -07:00
Panos Astithas
6a01b19a19 Bug 1257478 - Turn mercurial-setup into vcs-setup and add git support. r=gps
MozReview-Commit-ID: AD6gLqFm8Nn

--HG--
extra : rebase_source : 0214cdc6f6acaaf0621e25f30cb0a2c81849063e
2018-07-04 21:48:42 +03:00
Brian Grinstead
357480ec96 Bug 1479125 - Update marionette driver to access tabBrowser.tabs as an iterable;r=ato
MozReview-Commit-ID: 5CLK6V3u0iG

--HG--
extra : rebase_source : 2a21683e6b5f5dce7841e01d2687963820a3d32a
2018-08-08 15:22:39 -07:00
Andreas Tolfsen
7845f72f27 Bug 1473614 - Expose API docs for MessageManagerDestroyedPromise and Sleep. r=automatedtester 2018-08-07 18:06:30 +01:00
Andreas Tolfsen
11b3b40466 Bug 1473614 - Fix exported symbols in sync. r=automatedtester
The "exported" keyword is no longer needed.
2018-08-07 18:06:29 +01:00
Andreas Tolfsen
edf1ffefc1 Bug 1473614 - Add sync function Sleep for pausing async functions. r=automatedtester
This adds a new public API to the Marionette sync module that can
"pause" async functions for an arbitrary amount of hardcoded time.
This can be useful for debugging purposes.
2018-08-07 18:06:28 +01:00
Andreas Tolfsen
475e6da1d9 Bug 1473614 - Add type checks to PollPromise and TimedPromise. r=automatedtester
This patch introduces stricted type checks for the sync module's
PollPromise and TimedPromise.  This may seem excessive, but we have
had real and severe bugs in this area before.
2018-08-07 18:06:28 +01:00
Venkatesh Pitta
ea42facc77 Bug 1478094 - [marionette] Update crash unit tests to make use of about:crashparent and about:crashcontent r=whimboo
MozReview-Commit-ID: H9LBBD7t9vL

--HG--
extra : rebase_source : 51e5db7dbcb76a708969b19c32f74654f1c46c8d
2018-08-04 00:45:53 +10:00
Narcis Beleuzu
80eb8550ef Backed out 4 changesets (bug 1473614) for xpcshell failures on test_sync.js. CLOSED TREE
Backed out changeset 027922b5ef04 (bug 1473614)
Backed out changeset 1d28e128807c (bug 1473614)
Backed out changeset 1ee58097b141 (bug 1473614)
Backed out changeset 87a0ebcd004f (bug 1473614)
2018-08-05 18:17:36 +03:00
Andreas Tolfsen
9c611e01aa Bug 1480810 - Drop PREF_COMPLEX from Marionette prefs module. r=automatedtester
A warning appears in the console when you run xpcshell tests that
the PREF_COMPLEX type is no longer, and we should therefore remove
it from Marionette as well.
2018-08-05 14:19:01 +01:00
Andreas Tolfsen
05027287d5 Bug 1473614 - Expose API docs for MessageManagerDestroyedPromise and Sleep. r=automatedtester 2018-08-05 14:18:19 +01:00
Andreas Tolfsen
7bc5323eef Bug 1473614 - Fix exported symbols in sync. r=automatedtester
The "exported" keyword is no longer needed.
2018-08-05 14:18:19 +01:00
Andreas Tolfsen
8c4a505d2b Bug 1473614 - Add sync function Sleep for pausing async functions. r=automatedtester
This adds a new public API to the Marionette sync module that can
"pause" async functions for an arbitrary amount of hardcoded time.
This can be useful for debugging purposes.
2018-08-05 14:18:18 +01:00
Andreas Tolfsen
c0d695e9cc Bug 1473614 - Add type checks to PollPromise and TimedPromise. r=automatedtester
This patch introduces stricted type checks for the sync module's
PollPromise and TimedPromise.  This may seem excessive, but we have
had real and severe bugs in this area before.
2018-08-05 14:18:18 +01:00
Brian Grinstead
b0b2b901d0 Bug 1470910 - Migrate input-box and input-box-spell to a Custom Element;r=paolo
Instead of `<xul:hbox class="textbox-input-box">`, consumers now should use
`<xul:moz-input-box />`. This covers the normal case and also handles
[spellcheck=true] while sharing much of the code within one class.

MozReview-Commit-ID: DjvT8sFq3SQ

--HG--
rename : toolkit/content/widgets/textbox.xml => toolkit/content/widgets/textbox.js
2018-08-02 20:53:59 -07:00
Noemi Erli
048f87627e Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-02 12:03:09 +03:00
vinicius
6cac0b2a79 Bug 1480105 - Using WebDriver:AcceptAlert instead of WebDriver:AcceptDialog in Marionette. r=whimboo
MozReview-Commit-ID: 1lZYKHlhhpn

--HG--
extra : rebase_source : 2e0488883840338f357d32339df898066986cade
2018-08-01 19:04:26 -03:00
dvarga
956d57e7f2 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-08-02 01:26:29 +03:00
Andreas Tolfsen
42d2cf5275 Bug 1470659 - Add setWindowRect capability to Marionette. r=whimboo
The setWindowRect capability is mandated by the WebDriver standard
and is an indication whether the driver supports manipulating the
window dimensions and position.

This will always be true for Firefox and always false for Fennec.
2018-08-01 18:31:25 +01:00
Andreas Tolfsen
2dee10d7b9 Bug 1470659 - Simplify Marionette capability parsing. r=whimboo
Change the switch-statement to only do assertions, and replace the
v variable with any parsed values before writing it to the matched
set of capabilities in one location.
2018-08-01 18:31:24 +01:00
Henrik Skupin
ad47be0ed3 Bug 1337899 - [marionette] - Fix construction of script src. r=ato
Marionette builds the final javascript source to execute by
using the specified body, and wrapping it into an anonymouse
function.

Because all of this happens in a single line, a comment in
the last line of the script body will cause the source only
half-wise constructed, and the post-wrapping code assumed
as comment too.

MozReview-Commit-ID: CXtUKfr8jKO

--HG--
extra : rebase_source : 8f5e7bce8cb2bcd2d32409212003f9369f2f5a30
2018-08-01 16:48:02 +02:00
Cosmin Sabou
b1ef7da4b4 Backed out 2 changesets (bug 1337899) for linting opt failure on web-platform/meta/MANIFEST.json
Backed out changeset 998c36eeb67e (bug 1337899)
Backed out changeset 22c54c6cc370 (bug 1337899)
2018-08-02 10:06:18 +03:00
Henrik Skupin
1a0094134a Bug 1337899 - [marionette] - Fix construction of script src. r=ato
Marionette builds the final javascript source to execute by
using the specified body, and wrapping it into an anonymouse
function.

Because all of this happens in a single line, a comment in
the last line of the script body will cause the source only
half-wise constructed, and the post-wrapping code assumed
as comment too.

MozReview-Commit-ID: CXtUKfr8jKO

--HG--
extra : rebase_source : 931f1452202de6c8f441bbca0c217ce820189cf0
2018-08-01 16:48:02 +02:00
Mark Banner
e6cf2a84d1 Bug 1478305 - Remove unnecessary ChromeUtils.import calls in testing/. r=mossop
MozReview-Commit-ID: AGwzWcQ7aWM

--HG--
extra : rebase_source : b575847ac13955f3cab75bb8900b6dae9fd693d5
2018-07-30 10:40:22 +01:00
Chris AtLee
182e3f8445 Bug 733530: Use .tar.gz for test archives r=gps
Differential Revision: https://phabricator.services.mozilla.com/D1743

--HG--
extra : moz-landing-system : lando
2018-08-01 16:00:03 +00:00
Venkatesh Pitta
f7b3601012 Bug 1451725 - Remove deprecated WebDriver Commands r=whimboo
MozReview-Commit-ID: 7PXrlwyiFvN

--HG--
extra : rebase_source : cfcc1d235ea3325bd7d15242c24c8cf8362d2647
2018-07-27 11:27:22 +10:00
Petru Gurita
5341019c70 Bug 1319793 - [marionette harness tests] Default to not swallow stdout from pytest. r=whimboo
Added the flag 'capture --no' to the harness_unit tests. Stdout is now displayed by default.

MozReview-Commit-ID: HZj3vntLcKI

--HG--
extra : rebase_source : 4de9697cf8cae7ed1707049609812de6f6e22387
2018-07-25 09:00:42 +03:00
Bogdan Tara
9c44097a0d Merge inbound to mozilla-central. a=merge 2018-08-01 00:58:55 +03:00
Andrew Swan
ad31645d25 Bug 1451513 Part 3: Make loading the mochitest extension more robust r=kmag
A couple of changes to ensure that the mochitest harness doesn't try to
start executing changes before the mochitest extension is loaded:
1. Fix the marionette driver to wait for an installed extension to
   be started before returning from Addon:install
2. Wait for extension API onStartup() handlers to finish before
   considering a webextension started.

MozReview-Commit-ID: 8YEdNn6s5qh

--HG--
extra : rebase_source : 67e9abadcda82d55ac73c33367ec65cdbf7b823d
2018-07-30 17:03:27 -07:00