Commit Graph

1403 Commits

Author SHA1 Message Date
Shu-yu Guo
d06b6030f6 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Shu-yu Guo
52e365bb7b Bug 1202902 - Fix the world. (r=ato for marionette, rs=Mossop for rest) 2015-10-06 14:00:30 -07:00
Wes Kocher
20fcea1fca Backed out changeset 443dc9a9c21c (bug 1202663) for hidden-2 Wr bustage CLOSED TREE 2015-10-05 10:36:54 -07:00
Andreas Tolfsen
377f1872e1 Bug 1202663: Use dispatcher for screen capture command in listener
r=dburns

--HG--
extra : commitid : APsoNBRciI8
extra : rebase_source : 1b7c525798c861f2eb958b2026d25ac1d1cb28fd
2015-09-08 15:26:19 +01:00
Yura Zenevich
2849b41c74 Bug 1210022 - adding missing actionable roles to marionette a11y checks. r=automatedtester 2015-10-02 09:31:40 -04:00
Ting-Yu Lin
bbd3b85333 Bug 1209841 - Improve move_caret_by_offset() in selection.py. r=automatedtester
* Incorporate the for-loop in python into javascript so that we only
  need to call execute_script() once.
* Add documentation for parameters.

--HG--
extra : commitid : 88Mi3beYfSI
extra : rebase_source : bcf949c8a6055cf6ccaf541f8005fe88256555be
2015-09-30 18:29:34 +08:00
David Burns
a7d8cd3acc Bug 1209698: Bump version numbers for Marionette packages; r=jgriffin
The version numbers have been moved to be major.minor.patch to allow
better versioning moving forward.

--HG--
extra : commitid : Lm21l6zZmge
extra : rebase_source : 432a27f8727106a78114b745aca019771f254e93
2015-09-30 13:23:50 +01:00
Ting-Yu Lin
9a643f53d9 Bug 1164124 - Add using_prefs context manager. r=jgriffin
Add get_pref(), set_pref(), set_prefs() to make manipulate preferences
easier.

enforce_gecko_prefs() did the similar job as set_prefs(), but it will
restart the browser if a preference to be set are different from what is
already set in the system. Not all gecko preferences require a restart
to work. Using set_prefs() should make testing faster. See bug 1048554.

--HG--
extra : commitid : 8zY9oaHkSW1
extra : rebase_source : 787114d94f50e9f132fb7d5898cecf104e281700
2015-09-30 16:26:58 +08:00
Carsten "Tomcat" Book
191ce6efd0 Merge mozilla-central to fx-team 2015-09-29 12:41:12 +02:00
Alexandre Poirot
0896aa8eee Bug 1208018 - Improve marionette stack info and dump it when executeJSScript throws. r=jgriffin 2015-09-29 03:02:48 -07:00
David Burns
9959a7982f Bug 1201036: Bump marionette client and marionette driver for releases; r=jgriffin
--HG--
extra : commitid : 4hSlrLSpGRV
extra : rebase_source : 6afc9e3eb9807927a25837644a09547f1c1f9c2f
2015-09-28 21:20:29 +01:00
Chris Manchester
3846a2d8c8 Bug 1184507 - Disable TestAboutPages:test_type_to_non_remote_tab for being racy. r=ato
This test sends keys to the urlbar causing a page navigation, then waits on
the current url to confirm the navigation is reflected. Because the navigation
changes remoteness, the url check and loading the content listener in the
new process race. When the url check wins, it causes a hang by sending a
message before the frame script to receive it loads.

This is a very specific scenario that only impacts tests that need to cause
navigation to in-process pages with key events. If these sort of tests
become a priority, this will need to be revisited.

--HG--
extra : commitid : LRu93romh31
2015-09-25 07:33:11 -07:00
Chris Manchester
cc73ee6143 Bug 1185486 - Part 2: Prevent message listeners from a failed command from causing an out of order response when a content command hangs. r=ato
--HG--
extra : commitid : 9x2P0ubHLCZ
2015-09-25 07:33:11 -07:00
Chris Manchester
7c2c936f02 Bug 1185486 - Part 1: Use a timeout when waiting on the browser process after a timed out command. r=jgriffin
--HG--
extra : commitid : BisQq4gzA18
2015-09-25 07:33:11 -07:00
Carsten "Tomcat" Book
651a168616 merge mozilla-inbound to mozilla-central a=merge
--HG--
rename : toolkit/devtools/server/actors/styleeditor.js => devtools/server/actors/styleeditor.js
rename : toolkit/devtools/server/actors/stylesheets.js => devtools/server/actors/stylesheets.js
rename : toolkit/devtools/gcli/commands/screenshot.js => devtools/shared/gcli/commands/screenshot.js
2015-09-22 12:35:13 +02:00
J. Ryan Stinnett
efe328f1b2 Bug 912121 - Rewrite require / import to match source tree. rs=devtools
In a following patch, all DevTools moz.build files will use DevToolsModules to
install JS modules at a path that corresponds directly to their source tree
location.  Here we rewrite all require and import calls to match the new
location that these files are installed to.

--HG--
extra : commitid : F2ItGm8ptRz
extra : rebase_source : b082fe4bf77e22e297e303fc601165ceff1c4cbc
2015-09-21 12:04:18 -05:00
David Burns
87f6a90707 Bug 1141519: if we try call marionette calls in the teardown and they don't work we should just carry on; r=jgriffin
--HG--
extra : commitid : 92srjBSkvhe
extra : rebase_source : 33569e134ffb89036ee18651c9f8d37bec43a489
2015-09-16 20:58:28 +01:00
David Burns
4dda200aaf Bug 1141519: error if we are going to try send a message to a frame that we know doesnt exist; r=jgriffin
--HG--
extra : commitid : HT9JmxPxSRk
extra : rebase_source : 3354f9f476612c773c22262ff9ec1b455356780b
2015-09-16 20:54:46 +01:00
David Burns
6a79407a30 Bug 1141519: added test that puts marionette into a position that can cause hangs when in content scope; r=jgriffin
--HG--
extra : commitid : GrvcthCmHw1
extra : rebase_source : 1bc3fe4b2e6b1c839503f431955c5681e4edcc61
2015-09-18 21:39:01 +01:00
David Burns
bea16e0d33 Bug 1141519: Don't switch to content scope for logging the test end; r=jgriffin
--HG--
extra : commitid : IC9y6Vij4Fj
extra : rebase_source : b54d233528ffd1713bef0e2c6bae2c5b484b04fc
2015-09-16 18:43:23 +01:00
Wes Kocher
100b3d6563 Backed out 4 changesets (bug 1141519) for likely breaking Windows marionette tests
Backed out changeset 4f0cd3e94c0a (bug 1141519)
Backed out changeset 2c319ee6609b (bug 1141519)
Backed out changeset 2101909374c0 (bug 1141519)
Backed out changeset 5e3cbd7c84fa (bug 1141519)
2015-09-18 12:08:58 -07:00
David Burns
12164be1f8 Bug 1141519: if we try call marionette calls in the teardown and they don't work we should just carry on; r=jgriffin
--HG--
extra : commitid : 6jEuBpccJtr
extra : rebase_source : 1912ef892d4192d20ac2281b973adebfcbef049a
extra : histedit_source : 3198c32a0e71fc2e5aca5296dccd5b91ddcdf2ac
2015-09-16 20:58:28 +01:00
David Burns
8f50c7e4f8 Bug 1141519: error if we are going to try send a message to a frame that we know doesnt exist; r=jgriffin
--HG--
extra : commitid : 6NtHFBNNkwf
extra : rebase_source : 03b60b416ed4ef774ccb6c323664cf3e79790809
extra : histedit_source : dccc1cc2506cdc810df9c490d92218345a1c873d
2015-09-16 20:54:46 +01:00
David Burns
d547839f25 Bug 1141519: added test that puts marionette into a position that can cause hangs when in content scope; r=jgriffin
--HG--
extra : commitid : 6PEzFtjWUX5
extra : rebase_source : 97208b7c534d42de524f909522033bac21d33cd2
extra : histedit_source : 69324b771a638af18fba2384f47956cd23bd07c1
2015-09-16 20:42:37 +01:00
David Burns
bdfa7d4a04 Bug 1141519: Don't switch to content scope for logging the test end; r=jgriffin
--HG--
extra : commitid : 8LATsmo22RL
extra : rebase_source : b962b45093372f7d08ac8d033ce4c47b40522a37
extra : histedit_source : e21555f77fe507d225ed2514ed022a78eeec3895
2015-09-16 18:43:23 +01:00
Andreas Tolfsen
7e04695f88 Bug 1205638: Remove findChildElement and findChildElements commands
The findChildElement and findChildElements commands were originally
added to provide Selenium compatibility because it sends an "id" field
in the body.

They are both unneeded now that we have wires which extracts the element
ID from the URI template and sets the "element" field that the normal
findElement and findElements commands use.

r=dburns

--HG--
extra : commitid : 9UOUJoukHH1
extra : rebase_source : 2f848ebbfa69b82b03d718340b8203d9183083d6
2015-09-17 14:05:51 +01:00
David Burns
cf7ee31873 Bug 1204496: When searching by link text start from the startNode and not the rootNode; r=ato
--HG--
extra : commitid : B41EB2spDLA
extra : rebase_source : 19077dc84eefe0b11d862c04dc1f8bbc595cca82
2015-09-17 22:22:38 +01:00
Andreas Tolfsen
9355c18c57 Backed out changeset 820865a790e4 (bug 1202663)
CLOSED TREE

--HG--
extra : commitid : D1PsvakkyZm
2015-09-17 17:12:29 +01:00
Andreas Tolfsen
aac49c7749 Bug 1202663: Use dispatcher for screen capture command in listener
r=dburns

--HG--
extra : commitid : 2B70dNWKSym
extra : rebase_source : 7ae9c5365a87619d18be8fd2e245c27d379e65ff
2015-09-08 15:26:19 +01:00
David Burns
15c1a2284a Bug 1137972: Return W3C and WebDriver id keys from Marionette; r=jgriffin
--HG--
extra : commitid : 7zk0mE7mqH4
extra : rebase_source : d49cd88f02319c6e7135288448f9bde3e4b874a3
2015-09-14 13:42:38 +01:00
David Burns
f804a7c499 Bug 1137972: Send W3C Element Key to Marionette Server from python client; r=jgriffin
--HG--
extra : commitid : ANe5Qu0dCA8
extra : rebase_source : 29b7a460cc3ed201caf963a10756430b79dbd5c5
2015-09-15 20:45:39 +01:00
David Burns
ff2b265ba1 Bug 1137972: Centralize unwrapping the response from marionette; r=jgriffin
--HG--
extra : commitid : 94hIuseVTZ7
extra : rebase_source : 15d3704629e1caccd483ed075e7ede0ce63d6203
2015-09-11 23:55:59 +01:00
Andreas Tolfsen
4ad9555dd3 Bug 1203074: Move caret to end of textual input field before sending keys
When a TEXTAREA element is focused it returns the cursor to the last
position was at, or places it last.  INPUT @type="text" (or any other
textual input element) places the caret at the beginning.  Because of
this we move the caret to the end of the input field.  The next time
the element is focussed, the cursor should move to the end.

The layout touch caret tests relied on the caret being left in its
previous position.  This patch addresses that by using the advanced user
interaction API for these test cases.

r=jgriffin

--HG--
extra : commitid : 7tchyrqIp00
extra : rebase_source : 5f164dc051183056c92a2da7fb6e601fff748b29
2015-09-09 14:53:53 +01:00
Shu-yu Guo
64db2267cf Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Edgar Chen
20e08cfa9e Bug 1203037 - Disable Tethering/NFC marionette-webapi tests on emulator-x86-kk first. r=dimi,henry 2015-09-11 15:12:40 +08:00
David Burns
66a6d11c68 Bug 850686: Remove dead tests from Marionette; r=jgriffin
--HG--
extra : commitid : 96izeG4iJ0N
extra : rebase_source : 104c454002371c529748534d9a7d646816799f46
extra : histedit_source : 8dbba451436b8bc57273537bcf5e4ca871841654
2015-09-12 00:19:42 +01:00
Yura Zenevich
47268649ef Bug 1201595 - improving a11y checks reliability and error messaging. r=ato 2015-09-11 08:33:04 -04:00
Phil Ringnalda
9565dedf7d Merge m-c to m-i
CLOSED TREE
2015-09-10 15:30:31 -07:00
Edgar Chen
394f49b16f Bug 1203022 - Fix marionette-webapi busted, JavaScript Error: "TypeError: this.sendResponse is not a function". r=ato 2015-09-09 15:09:01 +08:00
Andreas Tolfsen
b62463c664 Bug 1202707: Remove emulator commands from simpletest harness
We attach the emulator commands outside of the simpletest harness.
Removing this makes testing/marionette/simpletest.js less dependent
on Marionette.

r=dburns

--HG--
extra : commitid : 8jVQBdufXQg
extra : rebase_source : 5ea9660825fd76504d0cc7fdbc1bebba947836f5
2015-09-08 17:12:18 +01:00
Andreas Tolfsen
cc041bab79 Bug 1202710: Remove size, location, and position commands
getElementSize, getElementLocation, and getElementPosition are all
deprecated.  They are not used by the client bindings.

r=dburns

--HG--
extra : commitid : FkXJjFafLDR
extra : rebase_source : 4d9f4a1b3ee461ad593854ec543c9ef26277377b
2015-09-08 17:22:06 +01:00
John Dai
113aa0d693 Bug 1179143 - Detect android_version for marionette-webapi tests. r=ato 2015-09-07 23:49:00 +02:00
Shing Lyu
90f04daf1c Bug 1166239 - Free result_modifiers so the MarionetteTestResult object will not leak. r=ato 2015-09-07 15:12:35 +08:00
Carsten "Tomcat" Book
3550bd37cb Backed out 1 changesets (bug 1203074) for marionette test failures
Backed out changeset 0e4476d49a82 (bug 1203074)
2015-09-10 16:48:41 +02:00
Andreas Tolfsen
065ed7d032 Bug 1203074: Move caret to end of textual input field before sending keys
When a TEXTAREA element is focused it returns the cursor to the last
position was at, or places it last.  INPUT @type="text" (or any other
textual input element) places the caret at the beginning.  Because of
this we move the caret to the end of the input field.  The next time
the element is focussed, the cursor should move to the end.

r=jgriffin

--HG--
extra : commitid : 56D5Oqfl8Nh
extra : rebase_source : e13a68395fdfe59fa93c45b2b5ccca28283f11e2
2015-09-09 14:53:53 +01:00
Yura Zenevich
bc9a71944a Bug 1203166 - ensuring that B2G and a11y flags are passed when listener is registring. r=ato 2015-09-10 08:33:07 -04:00
David Burns
f6bcf02594 Bug 1200973 - Remove unneeded app cache code from Marionette; r=jgriffin
--HG--
extra : commitid : Dp3kNOM1zkn
extra : rebase_source : 51284534f8ce437ab9e69e00a91fc92da46bae4f
extra : histedit_source : 6f5f30baa51b19577eb1a298b5b6a87bf599683c
2015-09-04 21:49:39 +01:00
Andreas Tolfsen
1fe3c441c1 Bug 1153822: Adjust Marionette responses to match WebDriver protocol
Introduce protocol version levels in the Marionette server.
On establishing a connection to a local end, the remote will return a
`marionetteProtocol` field indicating which level it speaks.

The protocol level can be used by local ends to either fall into
compatibility mode or warn the user that the local end is incompatible
with the remote.

The protocol is currently also more expressive than it needs to be and
this expressiveness has previously resulted in subtle inconsistencies
in the fields returned.

This patch reduces the amount of superfluous fields, reducing the
amount of data sent.  Aligning the protocol closer to the WebDriver
specification's expectations will also reduce the amount of
post-processing required in the httpd.

Previous to this patch, this is a value response:

    {"from":"0","value":null,"status":0,"sessionId":"{6b6d68d2-4ac9-4308-9f07-d2e72519c407}"}

And this for ok responses:

    {"from":"0","ok":true}

And this for errors:

    {"from":"0","status":21,"sessionId":"{6b6d68d2-4ac9-4308-9f07-d2e72519c407}","error":{"message":"Error loading page, timed out (onDOMContentLoaded)","stacktrace":null,"status":21}}

This patch drops the `from` and `sessionId` fields, and the `status`
field from non-error responses.  It also drops the `ok` field in non-value
responses and flattens the error response to a simple dictionary with the
`error` (previously `status`), `message`, and `stacktrace` properties,
which are now all required.

r=jgriffin

--HG--
extra : commitid : FbEkv70rxl9
extra : rebase_source : 3116110a0d197289cc95eba8748be0a33566c5a5
2015-05-21 11:26:58 +01:00
Andreas Tolfsen
de80bc12fe Bug 1162515: Remove FrameSendFailureError and FrameNotInitializedError
Removes FrameSendFailureError and FrameNotInitializedError from the
Marionette Python client.

r=davehunt

--HG--
extra : commitid : GUUlKplFtOH
extra : rebase_source : 8d4d135f8a0adee8491b0af2b8c65861adc712ca
2015-05-07 17:18:05 +01:00
Vaibhav Agrawal
a3060365b9 Bug 1163797 - Removing CommandArguments decorators from marionette-test mach command and making it use argparse from test harness. r=ahal
--HG--
extra : transplant_source : %3A%21%E4KF%0F%25%1Ey%A0v%DBs%EDU%DF%E2%EC%90%B1
2015-09-02 15:57:25 -07:00