Граф коммитов

54 Коммитов

Автор SHA1 Сообщение Дата
muthuraj90ec@gmail.com 502bc1193d Bug 1385476 - Synthesize dblclick MouseEvent when performing webdriver actions; r=maja_zf
MozReview-Commit-ID: 9u2mtolhjUq

--HG--
extra : rebase_source : 76b2e3fbd3cbb86f062227c779e88e61fefc1d8d
2017-11-24 15:53:57 -05:00
Alan Williams 950cd321a9 Bug 1393831 - pointerMove action calculates wrong default element centre point. r=maja_zf
--HG--
extra : rebase_source : 32b0fecfa011b8bba9e5926316f124b2811bcded
2017-11-28 14:36:18 -05:00
Andreas Tolfsen 7abd1cfb0b Bug 1414329 - Make WebDriver:ClickElement wait for click events r=jgraham,whimboo
This changes interaction.flushEventLoop from relying on the beforeunload
DOM event to determine when to bail in case the document navigates.
Instead, it now relies on the unload event which should not affect
bfcache.

It also changes flushEventLoop to append a click event listener to
the targetted element's container element.  Because this event will
be added last, the intention is that all preceding click evens will
have had time to fire and propagate before our listener spins the
event loop through setTimeout once.

Our listeners are added using the privileged mozSystemGroup option so
that a potential invocation of EventTarget.stopImmediatePropagation
does not prevent our listener from firing.

MozReview-Commit-ID: 2Ehxwg2p6Fo

--HG--
extra : rebase_source : 767bc955ba49152ff501ee8ff9c856fe204b25f4
2017-11-03 19:20:46 +00:00
Mark Banner 60e4a05b0d Bug 1411368 - Automatically fix spaced-comment issues raised when using ESLint 4. r=mossop
MozReview-Commit-ID: AOFFadV3JrV

--HG--
extra : rebase_source : e06da861796c79f118ac734ceebee22253c0485f
2017-10-26 12:00:05 +01:00
Andreas Tolfsen c8ef9c9e6b Bug 1400256 - Adapt actions for implicitly unmarshaled elements. r=automatedtester
Since web element references are now implicitly unmarshaled when
they are passed to the content frame script, there is no need for
the actions module to check that the element origin is a reference
and try to look it up from the known element store.

MozReview-Commit-ID: 3BGBIBQMtR3

--HG--
extra : rebase_source : 1505fe15b060f85ad34628f34f67cfe96aaaa9c1
2017-10-09 19:55:27 +01:00
Andreas Tolfsen b4fef406e1 Bug 1400256 - Remove element.isWebElementReference. r=whimboo
Remove element.isWebElementReference in favour of
WebElement.isReference.

MozReview-Commit-ID: IOqx7XMUfCu

--HG--
extra : rebase_source : e25b0f709d3c11a6a26b937e9a72ca861fe34730
2017-10-05 17:07:48 +01:00
Andreas Tolfsen 7974848c51 Bug 1408454 - Move error.pprint to format.pprint. r=whimboo
Pretty-printing an object belongs more naturally to the new format module.

MozReview-Commit-ID: AfXLMPAT5ar

--HG--
extra : rebase_source : 1074febec66df49745256fc9cd04b0fecd293919
2017-10-13 17:59:30 +01:00
Andreas Tolfsen d9dd4eae1b Bug 1405018 - Consider current browsing context on staleness check. r=whimboo
The element.isStale function does not take into account the current
browsing context when checking an element’s staleness.  This means,
for example, that an element in an <iframe> that gets retrieved, will
still be considered valid for as long as its associated document lives.

In WebDriver the expected behaviour is for the element reference to
only be valid for the current browsing context, meaning retrieving
the element reference when another browsing context is chosen should
return a stale element error.

Fixes: https://github.com/mozilla/geckodriver/issues/934
MozReview-Commit-ID: JpQVt78u5AN
2017-10-10 15:06:21 +01:00
Andreas Tolfsen 7b0b197759 Bug 1394849 - Export pprint separately. r=automatedtester
pprint is currently exposed twice: once on the error namespace and once
separately.  We only want to expose it once, and since there are only a
handful "error.pprint" usages left, we can go ahead and make this change.

When we move transition to use "require" in the future, like devtools
does, it will be possible to use both "error.pprint" and "pprint" styles
without export duplication.

MozReview-Commit-ID: CAnPDWn9Vr7

--HG--
extra : rebase_source : 05a05460d710eb96fa7b20cb94477be0282809de
2017-08-29 17:33:38 +01:00
Andreas Tolfsen 29f6ebe13f Bug 1394881 - Use Node.isConnected for web element staleness check. r=automatedtester
It turns out that Node.isConnected (described in
https://dom.spec.whatwg.org/#dom-node-isconnected) handles an element’s
shadow root, which element.isDisconnected tries to replicate.

element.isDisconnected and element.isStale are both long and error-prone
and can be removed entirely in favour of this web platform API.

The relevant change to the WebDriver specification landed in
32a477b023.

MozReview-Commit-ID: 5Q0gWLvw8KL

--HG--
extra : rebase_source : 773ab302df27cf11be6079f918a48d3730ceb5c1
2017-08-30 14:22:39 +01:00
Andreas Tolfsen f0f4363e58 Bug 1392318 - Use fromJSON convention in action module. r=automatedtester
The convention is to use fromJSON (instead of fromJson) because this
gives parity to toJSON which is supported by JSON.stringify.

MozReview-Commit-ID: 9dX14pFO2Bj

--HG--
extra : rebase_source : d0c1d657eee1f84d34e5a7116d8bb9ca579c8b51
2017-08-21 18:00:31 +01:00
Andreas Tolfsen b7180de1e8 Bug 1392323 - Correct use of pprint in action module. r=automatedtester
In certain places, the Marionette action module calls error.pprint as
if it is a function.  pprint is a ES6 string template and should be used
like pprint`${replacement}`.

MozReview-Commit-ID: 29UoCNxkKa7

--HG--
extra : rebase_source : f8fe408827353f78ee223175316d5b5f9b6a8df5
2017-08-21 18:09:40 +01:00
Andreas Tolfsen 34a091cffa Bug 1392339 - Fix misuse of nsIDOMWindow in API docs. r=automatedtester
nsIDOMWindow is the XPCOM interface and not what we mean in all these
cases.  We either want to refer to the ChromeWindow or to the WindowProxy,
depending on the context of the code.

MozReview-Commit-ID: 405po1XLXRi

--HG--
extra : rebase_source : 47a179f7caed76592dab28f8e10550cda5fe3d02
2017-08-21 18:52:18 +01:00
Andreas Tolfsen fca9551967 Bug 1392281 - Pass window global to action module instead of container. r=automatedtester
Various functions in the action module take a container object such as

	{frame: <WindowProxy global>, shadowRoot: <Element>}

when it in fact never uses the shadowRoot entry.  As part of the new
window tracking we will get rid of the container concept altogether.

Because the action module is sufficiently self-contained, we can start
with removing it from there already.

MozReview-Commit-ID: KeeNF08mqnX

--HG--
extra : rebase_source : 51eee50a648a994fab456adf4add46c91a6c82a3
2017-08-21 17:34:23 +01:00
Andreas Tolfsen 4e649b2c30 Bug 1388082 - Switch to async/await in action module. r=automatedtester
MozReview-Commit-ID: EREW0Hmmtb6

--HG--
extra : rebase_source : 6c9d6193e7031ee3f2d89042618f35cd36d303b1
2017-08-07 18:56:08 +01:00
muthuraj90ec 0d332730e8 Bug 1370403 - Synthesize contextmenu MouseEvent when performing webdriver actions; r=maja_zf
MozReview-Commit-ID: 85nQTsTRttF
2017-08-09 07:51:18 -04:00
Andreas Tolfsen dd7a57fd22 Bug 1384517 - Fix testing/marionette API docs; r=automatedtester
Various fixes to make the generated API documentation from
testing/marionette somewhat easier to read.

MozReview-Commit-ID: F9duuQoOYBt

--HG--
extra : rebase_source : 3ade69773ceba42826aedef05b1371240b51cf82
2017-07-26 13:11:53 +01:00
Andreas Tolfsen de001d80b7 Bug 1376128 - Lint testing/marionette; r=automatedtester
MozReview-Commit-ID: DY4yCSBEZrN

--HG--
extra : rebase_source : d4e25369418cc72a6ee9f78d44b050a87403391d
2017-06-29 16:40:24 -07:00
Andreas Tolfsen b8ac152de5 Bug 1376128 - Allow duplicated dictionary keys in action module; r=automatedtester
We duplicate many keys in the PUA key lookup tables.

MozReview-Commit-ID: 9X7mZh3A0Qb

--HG--
extra : rebase_source : 3d1a41488ea3a813d2880be332545f854695bb23
2017-06-28 11:06:42 -07:00
Andreas Tolfsen 54c2f296a7 Bug 1376128 - Use selective imports from error module; r=automatedtester
Instead of importing everything from the testing/marionette/error.js
module into the global scope, we need to be selective about what symbols
we want.

MozReview-Commit-ID: HZDAS0bs0GD

--HG--
extra : rebase_source : 14a300bb2cedc0716168d50846755a6faed83012
2017-06-28 11:01:49 -07:00
Maja Frydrychowicz 84b2b0814a Bug 1367430 - Set modifier-key properties for mouse action; r=ato
When synthesizing a MouseEvent for the performActions command,
set shiftKey, ctrlKey, etc., based on inputStateMap.

MozReview-Commit-ID: Knw3gxuAcSB

--HG--
extra : source : afcfa17be8acdd3d1b88b2bf8d6deffb53c52af1
2017-05-24 16:42:04 +02:00
Carsten "Tomcat" Book dc95c2f7ad Backed out changeset afcfa17be8ac (bug 1367430) for making bug 1365021 worse
--HG--
extra : rebase_source : e655ab964901f8fa3c4993ccf46b1c812b3957e7
2017-06-07 13:21:05 +02:00
Maja Frydrychowicz 149cdbbd02 Bug 1367430 - Set modifier-key properties for mouse action; r=ato
When synthesizing a MouseEvent for the performActions command,
set shiftKey, ctrlKey, etc., based on inputStateMap.

MozReview-Commit-ID: Knw3gxuAcSB

--HG--
extra : rebase_source : 499f6987fbc237662c925c7fedc83611e4de148b
2017-05-24 16:42:04 +02:00
Maja Frydrychowicz 0429c52c84 Bug 1345653 - Handle document unload when dispatching actions; r=ato
This fixes the reported hang that occurs after a pointer click
action resulting in navigation.

MozReview-Commit-ID: A9SBhextVLH

--HG--
extra : rebase_source : 7de7f06a1c05e0e52a03f1850187926aa13a4b08
2017-04-04 00:01:11 -04:00
Maja Frydrychowicz b3a4d2a5be Bug 1332279 - Include keyCode in KeyboardEvents synthesized for key actions; r=ato
The key dispatch functions now pass the raw key to event.js,
which determines the keyCode for the event.

Note the change in Normalized Key Value for Enter versus Return.
The browser throws an exception when the event key attribute is
set to "Return" and KEY_NON_PRINTABLE_KEY is set, which implies
that the key value isn't valid. Changing it to Enter fixes the
issue.

MozReview-Commit-ID: 831f4EcqI1P

--HG--
extra : rebase_source : 6045b6199c72bcc7a971907d6e1513687d8ed3f9
2017-04-01 02:37:30 -04:00
David Burns cf2ed65938 Bug 1347658: Allow negative integers for Marionette pointerMove. r=maja_zf
W3C WebDriver spec had incorrectly described that we could only have
positive integers when it should have been just Integers.

MozReview-Commit-ID: CttUFKiav7q

--HG--
extra : rebase_source : 0a3049ce25f38557b9f1218dde45ef37f2a1b245
2017-03-15 22:28:10 +00:00
Maja Frydrychowicz 13429c0338 Bug 1337133 - Move update of inputStateMap to action.Sequence.fromJson; r=ato+446296
This syncs the implementation of "process an input source action sequence"
with the Webdriver spec.

Previously, Marionette populated the input state table at dispatch time.

MozReview-Commit-ID: 8v1y5uVvrI5

--HG--
extra : rebase_source : b8dabf16baa85aa7b3af1882846055a0e260232e
2017-02-27 08:27:35 -05:00
Maja Frydrychowicz 4805fd0d60 Bug 1337133 - Dispatch pointerMove action for mouse; r=ato+446296,jgraham
MozReview-Commit-ID: 9CIGusZVz7w

--HG--
extra : rebase_source : 26a7495eb22b2db06cd9197564a19fe95de7dfef
2017-02-22 16:24:44 -05:00
Maja Frydrychowicz 36c442de86 Bug 1337133 - Dispatch pointerDown and pointerUp actions for mouse; r=ato+446296
MozReview-Commit-ID: FC0lF0S2Mzz

--HG--
extra : rebase_source : 1e956be81a3f0b757338bfaadf0cf8e257d3c2cf
2017-02-22 17:03:59 -05:00
Maja Frydrychowicz 1e1f032a63 Bug 1337133 - Fix creation of pointer InputState; r=ato+446296
Previously, the pointer input state was always being created
with an undefined subtype, which should actually be mouse, pen
or touch.

MozReview-Commit-ID: JcarsRRecQl

--HG--
extra : rebase_source : 4130d3e5cd0dc2d953fdf48e3591de7b0f53383e
2017-02-20 13:13:43 -05:00
Maja Frydrychowicz c5836d25cf Bug 1337133 - Replace element with origin for pointerMove actions; r=ato+446296
Sync processing of pointerMove with WebDriver spec.

MozReview-Commit-ID: DaHNipOffov

--HG--
extra : rebase_source : aa50717145b9e34a94a1a61c530522477062810c
2017-02-14 15:58:47 -05:00
Maja Frydrychowicz d7f6b20374 Bug 1337133 - Remove primary pointer attribute; r=ato+446296
Sync pointer parameters implementation with Webdriver spec.

MozReview-Commit-ID: 4DMoUxo648N

--HG--
extra : rebase_source : 37e4fb850f25b8fbdb7b48cde41abf9eb3beeab2
2017-02-06 14:40:13 -05:00
Maja Frydrychowicz 69ab8f6856 Bug 1341415 - Require action sequences to have an id; r=ato+446296
MozReview-Commit-ID: DjjhIdDJ8HI

--HG--
extra : rebase_source : e0474768ccc272392c97a58db541d27ad76ede1f
2017-02-21 15:08:09 -05:00
Maja Frydrychowicz 74f50780ba Bug 1335240 - actions.InputState does not record correct type for key and pointer; r=ato
MozReview-Commit-ID: 9RW0BretWU5

--HG--
extra : rebase_source : 22a542c35f01665cb2a4157df1fd0c6b96a6d980
2017-02-01 13:30:58 -05:00
Maja Frydrychowicz 259f6b6eda Bug 1328726 - Style fix ups in Marionette key actions implementation; r=ato
These are leftover from review of Bug 1320389. I must have forgotten to
re-push to MozReview.

MozReview-Commit-ID: ENTFdmCsv6I

--HG--
extra : rebase_source : 3c6961fb1826cb7cc00d1bd6048ed2c94c9a2f1a
2017-01-04 17:48:11 -05:00
Wes Kocher abd222ddc9 Backed out 8 changesets (bug 1328726) for webdriver bustage a=backout CLOSED TREE
Backed out changeset 1039c2ca90ee (bug 1328726)
Backed out changeset de5830f1b8ab (bug 1328726)
Backed out changeset c039479ce446 (bug 1328726)
Backed out changeset 6d9673eedd91 (bug 1328726)
Backed out changeset be79eb6f9d64 (bug 1328726)
Backed out changeset 6be0203f1a26 (bug 1328726)
Backed out changeset 4430151d0cb4 (bug 1328726)
Backed out changeset 2143f1aa8087 (bug 1328726)

MozReview-Commit-ID: GrWBTO2rhXm
2017-01-25 10:51:08 -08:00
Maja Frydrychowicz a09882ecfa Bug 1328726 - Style fix ups in Marionette key actions implementation; r=ato
These are leftover from review of Bug 1320389. I must have forgotten to
re-push to MozReview.

MozReview-Commit-ID: ENTFdmCsv6I

--HG--
extra : rebase_source : 3c6961fb1826cb7cc00d1bd6048ed2c94c9a2f1a
2017-01-04 17:48:11 -05:00
Wes Kocher 26b0e2ee32 Backed out 7 changesets (bug 1328726) for lint failures a=backout
Backed out changeset 93218dc2249f (bug 1328726)
Backed out changeset 0e6e8d3fccec (bug 1328726)
Backed out changeset 5606cc9b0654 (bug 1328726)
Backed out changeset 40fceb2644d7 (bug 1328726)
Backed out changeset 0c10680f0705 (bug 1328726)
Backed out changeset a2520d52c7cc (bug 1328726)
Backed out changeset ec1a2cd38ffe (bug 1328726)

MozReview-Commit-ID: KnktbcccJoR
2017-01-24 13:55:07 -08:00
Maja Frydrychowicz fea0cb5625 Bug 1328726 - Style fix ups in Marionette key actions implementation; r=ato
These are leftover from review of Bug 1320389. I must have forgotten to
re-push to MozReview.

MozReview-Commit-ID: ENTFdmCsv6I

--HG--
extra : rebase_source : 3c6961fb1826cb7cc00d1bd6048ed2c94c9a2f1a
2017-01-04 17:48:11 -05:00
Maja Frydrychowicz 5095f8b5b8 Bug 1320389 - Implement dispatch of key actions in content context; r=ato
MozReview-Commit-ID: AxHTFdDtXJN

--HG--
extra : rebase_source : 0d12a5f56bcd05d0eccb8aa794779002f555e62d
2016-12-13 18:29:48 -05:00
Thomas Charles acf2f9d4dd Bug 1316975 - Correct function definition style in Marionette components; r=ato
No functional changes.

MozReview-Commit-ID: 25cWAnpRB9H

--HG--
extra : rebase_source : c8b14bf47a476488568f54d3640b51bbeed5b04b
2016-12-04 12:42:52 +01:00
Andreas Tolfsen ecce373354 Bug 1313865 - Remove unused logger; r=maja_zf
MozReview-Commit-ID: H208URxkUkV

--HG--
extra : rebase_source : 5ddd46970365ab1ba37e67c8b52c07af0b53220a
2016-10-31 22:11:39 +00:00
Andreas Tolfsen 1b0af3460d Bug 1313865 - Employ common assertions in action module; r=maja_zf
MozReview-Commit-ID: 4WIc6QEjoEf

--HG--
extra : rebase_source : 2f98292d040046296279c65a8a3f6df0c452b6cc
2016-10-31 22:11:25 +00:00
Maja Frydrychowicz 6da8812934 Bug 1303234 - Implement extracting action chain from a request; r=ato,jgraham
MozReview-Commit-ID: JxNoGZog1om

--HG--
rename : testing/marionette/action.js => testing/marionette/legacyaction.js
extra : rebase_source : 91e9b1915e18362765804e3767dfb834394a35af
2016-10-26 13:04:48 -04:00
Andreas Tolfsen 6686a00fd4 Bug 1274274 - Rename element manager; r=automatedtester
Renames instances of `elementManager' to `seenEls' for brevity.  Also the
word "manager" does not really explain what purpose it fulfills.

MozReview-Commit-ID: 4EUN9utPoZS

--HG--
extra : rebase_source : 52bda0d83c50ffb96e72145ee54827c115596462
2016-05-20 16:49:19 +01:00
Andreas Tolfsen 76e7173ffa Bug 1274274 - Disassociate convertWrappedArguments from element store; r=automatedtester
Moved ElementManager#convertWrappedArguments to the
testing/marionette/element.js module scope and renamed it to fromJson.

MozReview-Commit-ID: JMTZcG0JSUE

--HG--
extra : rebase_source : 613faca6a8c81b1ff435c538b0a7347ae548c288
2016-05-20 16:16:56 +01:00
Andreas Tolfsen 0f872f6301 Bug 1274274 - Refactor seen element store; r=automatedtester
Renames ElementManager to element.Store, exposing it on the
testing/marionette/element.js module.  Shortens getKnownElement(uuid)
to get(uuid).  Introduces new method has(uuid) to replace some unnecessary
checks in testing/marionette/driver.js and testing/marionette/listener.js.

MozReview-Commit-ID: D5qAlqrIxi

--HG--
extra : rebase_source : 22fda922e4c5f7bfcd1a5bcbcec6ae1003411535
2016-05-20 15:07:21 +01:00
Andreas Tolfsen fadb4f79f3 Bug 1253244 - Use element.coordinates in action module; r=automatedtester
MozReview-Commit-ID: 2FJJImg4NsI

--HG--
extra : rebase_source : 6038343d9b8104c8f5b8b51f42794a42b6e8c752
2016-03-03 14:29:53 +00:00
Andreas Tolfsen 04268e1ed9 Bug 1242655 - Have ActionChain#dispatchActions return a promise; r=automatedtester
MozReview-Commit-ID: ITqAH4rVsHc

--HG--
extra : rebase_source : 678d4097585bedde7f12b646106a592cf42598d3
2016-02-22 13:18:13 +00:00
Andreas Tolfsen fddfa9ac45 Bug 1245153 - Rename actions.js to action.js; r=automatedtester
MozReview-Commit-ID: 58v7aMH2deS

--HG--
rename : testing/marionette/actions.js => testing/marionette/action.js
extra : histedit_source : ffe0d88ffcef11c8faf7fc7f3c3432044847afe4
extra : rebase_source : c4b890c3fbcd6952d1c4a63a321a7cf35c5cd1ee
extra : commitid : CvejXEffZ33
extra : source : 1be5f60393a02b47cc21cccd6cc73f5e5dd9bcc7
extra : intermediate-source : 9f3f1c358e47b0851a2789e627b1e385cfa61410
2016-02-03 19:25:28 +00:00