Commit Graph

1392 Commits

Author SHA1 Message Date
Chris Manchester
21068850e7 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.
2015-09-25 07:33:11 -07:00
Chris Manchester
47ba0b20fb 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 2015-09-25 07:33:11 -07:00
Chris Manchester
4294cf4998 Bug 1185486 - Part 1: Use a timeout when waiting on the browser process after a timed out command. r=jgriffin 2015-09-25 07:33:11 -07:00
Carsten "Tomcat" Book
a0734f4564 merge mozilla-inbound to mozilla-central a=merge 2015-09-22 12:35:13 +02:00
J. Ryan Stinnett
9494d02df8 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.
2015-09-21 12:04:18 -05:00
David Burns
a401fc8f8e Bug 1141519: if we try call marionette calls in the teardown and they don't work we should just carry on; r=jgriffin 2015-09-16 20:58:28 +01:00
David Burns
a5c4a88518 Bug 1141519: error if we are going to try send a message to a frame that we know doesnt exist; r=jgriffin 2015-09-16 20:54:46 +01:00
David Burns
e6ac9e1ad4 Bug 1141519: added test that puts marionette into a position that can cause hangs when in content scope; r=jgriffin 2015-09-18 21:39:01 +01:00
David Burns
3406f80d12 Bug 1141519: Don't switch to content scope for logging the test end; r=jgriffin 2015-09-16 18:43:23 +01:00
Wes Kocher
81b5574551 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
d9f4dfbbb5 Bug 1141519: if we try call marionette calls in the teardown and they don't work we should just carry on; r=jgriffin 2015-09-16 20:58:28 +01:00
David Burns
c3073e172c Bug 1141519: error if we are going to try send a message to a frame that we know doesnt exist; r=jgriffin 2015-09-16 20:54:46 +01:00
David Burns
050fcc376b Bug 1141519: added test that puts marionette into a position that can cause hangs when in content scope; r=jgriffin 2015-09-16 20:42:37 +01:00
David Burns
2116368ff7 Bug 1141519: Don't switch to content scope for logging the test end; r=jgriffin 2015-09-16 18:43:23 +01:00
Andreas Tolfsen
aab6dfb651 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
2015-09-17 14:05:51 +01:00
David Burns
46ea4aa259 Bug 1204496: When searching by link text start from the startNode and not the rootNode; r=ato 2015-09-17 22:22:38 +01:00
Andreas Tolfsen
a959b56acf Backed out changeset 820865a790e4 (bug 1202663)
CLOSED TREE
2015-09-17 17:12:29 +01:00
Andreas Tolfsen
921ddc7b28 Bug 1202663: Use dispatcher for screen capture command in listener
r=dburns
2015-09-08 15:26:19 +01:00
David Burns
a9101ff4e7 Bug 1137972: Return W3C and WebDriver id keys from Marionette; r=jgriffin 2015-09-14 13:42:38 +01:00
David Burns
90d901e87d Bug 1137972: Send W3C Element Key to Marionette Server from python client; r=jgriffin 2015-09-15 20:45:39 +01:00
David Burns
dc270e48e6 Bug 1137972: Centralize unwrapping the response from marionette; r=jgriffin 2015-09-11 23:55:59 +01:00
Andreas Tolfsen
688c48fefe 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
2015-09-09 14:53:53 +01:00
Shu-yu Guo
d8faa01cea 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
1a0a4dc47f 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
b95ddb0681 Bug 850686: Remove dead tests from Marionette; r=jgriffin 2015-09-12 00:19:42 +01:00
Yura Zenevich
fdeebd0198 Bug 1201595 - improving a11y checks reliability and error messaging. r=ato 2015-09-11 08:33:04 -04:00
Phil Ringnalda
3006cefa44 Merge m-c to m-i
CLOSED TREE
2015-09-10 15:30:31 -07:00
Edgar Chen
de8736fda1 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
a75af2454b 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
2015-09-08 17:12:18 +01:00
Andreas Tolfsen
4db9dc6427 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
2015-09-08 17:22:06 +01:00
John Dai
3c13e4174b Bug 1179143 - Detect android_version for marionette-webapi tests. r=ato 2015-09-07 23:49:00 +02:00
Shing Lyu
21dadfcf72 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
366175eada 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
04940137e2 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
2015-09-09 14:53:53 +01:00
Yura Zenevich
2924ec3838 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
9324e6cf86 Bug 1200973 - Remove unneeded app cache code from Marionette; r=jgriffin 2015-09-04 21:49:39 +01:00
Andreas Tolfsen
7049f0b13a 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
2015-05-21 11:26:58 +01:00
Andreas Tolfsen
c351478cef Bug 1162515: Remove FrameSendFailureError and FrameNotInitializedError
Removes FrameSendFailureError and FrameNotInitializedError from the
Marionette Python client.

r=davehunt
2015-05-07 17:18:05 +01:00
Vaibhav Agrawal
8e1356ec56 Bug 1163797 - Removing CommandArguments decorators from marionette-test mach command and making it use argparse from test harness. r=ahal 2015-09-02 15:57:25 -07:00
Carsten "Tomcat" Book
4e251405fd Backed out 4 changesets (bug 1201050) for marionette test bustage on a CLOSED TREE
Backed out changeset ff3a5e493a9f (bug 1201050)
Backed out changeset 3c9da85eaf6a (bug 1201050)
Backed out changeset 6a443c2a3482 (bug 1201050)
Backed out changeset 3e79580a76a2 (bug 1201050)
2015-09-04 13:41:05 +02:00
Andreas Tolfsen
5e969fa8d7 Bug 1201050: Part 4: Use dispatcher for listener mutliAction
r=dburns
2015-09-02 14:04:58 +01:00
Andreas Tolfsen
f2886cc666 Bug 1201050: Part 3: Unbreak test by using correct imports
Do note that this test is disabeld in the manifest.

r=dburns
2015-09-02 14:04:10 +01:00
Andreas Tolfsen
e5cfdc576d Bug 1201050: Part 2: Use dispatcher for listener actionChain
r=dburns
2015-09-02 13:36:03 +01:00
Andreas Tolfsen
8f2c45a66c Bug 1201050: Part 1: Use dispatcher for listener singleTap
r=dburns
2015-09-02 13:23:28 +01:00
Shing Lyu
c5ec7bed62 Bug 1165231 - Free mixin_run_tests so they will be garbage collected. r=ato 2015-09-02 12:15:56 +08:00
Jonathan Griffin
2389b6fdd3 Bug 1200420 - Better handling of startup_timeout, r=AutomatedTester 2015-09-03 15:41:58 -07:00
Julien Pagès
b743738504 Bug 1200409 - |marionette --help| causes stack trace. r=ato 2015-09-01 10:42:55 +02:00
Yura Zenevich
ddcee36028 Bug 1194224 - adding support for Shadow DOM in marionette. r=automatedtester 2015-08-31 14:43:15 -04:00
Ben Tian
f86e612405 Bug 1193379 - Move ipc and tests folders out from dom/bluetooth/bluetooth2. r=joliu 2015-08-25 17:57:09 +08:00
Ryan VanderMeulen
7f36f728d8 Merge inbound to m-c. a=merge 2015-08-27 11:43:16 -04:00