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

1378 Коммитов

Автор SHA1 Сообщение Дата
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
Carsten "Tomcat" Book 23ce69f1e1 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 29f437da4c Bug 1201050: Part 4: Use dispatcher for listener mutliAction
r=dburns

--HG--
extra : commitid : FZ6ugxnv9Nw
extra : rebase_source : 7bc0da301711f888a03b7a3d5bf5da953b08a19b
2015-09-02 14:04:58 +01:00
Andreas Tolfsen 13bc0e7c5f Bug 1201050: Part 3: Unbreak test by using correct imports
Do note that this test is disabeld in the manifest.

r=dburns

--HG--
extra : commitid : 9P4lCsipXFI
extra : rebase_source : f1b712f5b0f2558893f2c86dd4dae3bdb3d380ee
2015-09-02 14:04:10 +01:00
Andreas Tolfsen 34bf4c6bd8 Bug 1201050: Part 2: Use dispatcher for listener actionChain
r=dburns

--HG--
extra : commitid : 5sZ7xzFTZgr
extra : rebase_source : 3442cc272d170972a461a6442c78a00de3717c09
2015-09-02 13:36:03 +01:00
Andreas Tolfsen c32c98632b Bug 1201050: Part 1: Use dispatcher for listener singleTap
r=dburns

--HG--
extra : commitid : 47Ppaq1xKzz
extra : rebase_source : f73caaa4cb9b36c8f0076920f8a6d41848a33d52
2015-09-02 13:23:28 +01:00
Shing Lyu 2bba3aa702 Bug 1165231 - Free mixin_run_tests so they will be garbage collected. r=ato
--HG--
extra : rebase_source : 577dd26e755f30e2c6d50f06a8a887893cc6ccfb
2015-09-02 12:15:56 +08:00
Jonathan Griffin 890126984a Bug 1200420 - Better handling of startup_timeout, r=AutomatedTester
--HG--
extra : commitid : CLLRo9AJtdQ
2015-09-03 15:41:58 -07:00
Julien Pagès 03b0de3f14 Bug 1200409 - |marionette --help| causes stack trace. r=ato
--HG--
extra : commitid : CmP555Z7mf3
extra : rebase_source : d23b5da839469c611d8671595dd9d752cdbf1dce
2015-09-01 10:42:55 +02:00
Yura Zenevich 75c928c716 Bug 1194224 - adding support for Shadow DOM in marionette. r=automatedtester 2015-08-31 14:43:15 -04:00
Ben Tian f1367d5c1e Bug 1193379 - Move ipc and tests folders out from dom/bluetooth/bluetooth2. r=joliu
--HG--
rename : dom/bluetooth/bluetooth2/ipc/BluetoothChild.cpp => dom/bluetooth/ipc/BluetoothChild.cpp
rename : dom/bluetooth/bluetooth2/ipc/BluetoothChild.h => dom/bluetooth/ipc/BluetoothChild.h
rename : dom/bluetooth/bluetooth2/ipc/BluetoothMessageUtils.h => dom/bluetooth/ipc/BluetoothMessageUtils.h
rename : dom/bluetooth/bluetooth2/ipc/BluetoothParent.cpp => dom/bluetooth/ipc/BluetoothParent.cpp
rename : dom/bluetooth/bluetooth2/ipc/BluetoothParent.h => dom/bluetooth/ipc/BluetoothParent.h
rename : dom/bluetooth/bluetooth2/ipc/BluetoothServiceChildProcess.cpp => dom/bluetooth/ipc/BluetoothServiceChildProcess.cpp
rename : dom/bluetooth/bluetooth2/ipc/BluetoothServiceChildProcess.h => dom/bluetooth/ipc/BluetoothServiceChildProcess.h
rename : dom/bluetooth/bluetooth2/ipc/BluetoothTypes.ipdlh => dom/bluetooth/ipc/BluetoothTypes.ipdlh
rename : dom/bluetooth/bluetooth2/ipc/PBluetooth.ipdl => dom/bluetooth/ipc/PBluetooth.ipdl
rename : dom/bluetooth/bluetooth2/ipc/PBluetoothRequest.ipdl => dom/bluetooth/ipc/PBluetoothRequest.ipdl
rename : dom/bluetooth/bluetooth2/tests/marionette/head.js => dom/bluetooth/tests/marionette/head.js
rename : dom/bluetooth/bluetooth2/tests/marionette/manifest.ini => dom/bluetooth/tests/marionette/manifest.ini
rename : dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_discovery_API2.js => dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_discovery.js
rename : dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_enable_API2.js => dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_enable.js
rename : dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_pair_API2.js => dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_pair.js
rename : dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_setters_API2.js => dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_setters.js
rename : dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothDevice_API2.js => dom/bluetooth/tests/marionette/test_dom_BluetoothDevice.js
rename : dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothManager_API2.js => dom/bluetooth/tests/marionette/test_dom_BluetoothManager.js
2015-08-25 17:57:09 +08:00
Ryan VanderMeulen 4ff4f84ce2 Merge inbound to m-c. a=merge 2015-08-27 11:43:16 -04:00
David Burns 6b428e8150 Bug 1198542: Update Marionette element IDs to be valid UUID. r=ato
This allows WebDriver compatibility to create valid URI.

--HG--
extra : commitid : 7JjQgqwKr8P
extra : rebase_source : 30e59c18b69ab404608c6b44f1dc11742b95ac78
2015-08-26 19:52:09 +01:00
Yoshi Huang 4347bb2318 Bug 1165272 - Part 1: remove getAppCodebasePrincipal. r=bholley 2015-08-17 17:03:19 +08:00
Bobby Holley edfe287f26 Backed out 3 changesets (bug 1165272) for b2g sanity blocker. 2015-08-25 11:16:21 -07:00
Andrew Halberstadt 6073d46e10 Bug 1197835 - Version bump marionette-client == 0.19, marionette-transport == 0.7, marionette-driver == 0.13, r=ato
--HG--
extra : commitid : DPLeqmqbgQV
extra : rebase_source : a25de99f52df2666b158734d958175d340e436fd
2015-08-24 10:59:47 -04:00
Andrew Halberstadt a70c676bef Bug 1163801 - Refactor marionette's options mixin system for argparse compatibility, r=AutomatedTester
--HG--
extra : commitid : 1x8q2ly2ySN
extra : rebase_source : 96ae7670be16280625980363c877eaffc5db0949
2015-08-18 16:27:04 -04:00
Vibhor Sehgal 1cc0a0bf8d Bug 1163801 - Upgrade marionette-client from optparse to argparse, r=ahal
--HG--
extra : commitid : 10d2GZoRUqa
extra : rebase_source : 1b464783d33a41a85bc1538ad3f94f3848b9a133
2015-08-18 16:30:21 -04:00
Andreas Tolfsen 92037e0876 Bug 1197146: Part 8: Use dispatcher for listener getElementValueOfCssProperty
r=dburns

--HG--
extra : commitid : 23PStMtVria
extra : source : 8fb6d7814dc28abe320354b59bac44a9779869cf
2015-08-21 16:10:02 +01:00
Andreas Tolfsen 3932cbc6d5 Bug 1197146: Part 7: Use dispatcher for listener isElementDisplayed
r=dburns

--HG--
extra : commitid : 4zgBxkq6zdO
extra : source : dbee5f882e8eb355ffdad4cd7f7a6dd51a06443f
2015-08-21 15:49:47 +01:00
Andreas Tolfsen 0a22490c2e Bug 1197146: Part 6: Use dispatcher for listener clearElement
r=dburns

--HG--
extra : commitid : 35gcrZxPUW5
extra : source : 35f1b9173ef480dedd1869ec5ed1d0cbfd7a9e1b
2015-08-21 15:37:04 +01:00
Andreas Tolfsen 730495da38 Bug 1197146: Part 5: Use dispatcher for listener getElementLocation
r=dburns

--HG--
extra : commitid : FjoopWDThNJ
extra : source : 98d9c37a61f11a06945c0c96078c17d9c345efe6
2015-08-21 15:34:09 +01:00
Andreas Tolfsen fc6d8b1b09 Bug 1197146: Part 4: Use dispatcher for listener isElementSelected
r=dburns

--HG--
extra : commitid : 1zOWofJ40lV
extra : source : 46da411db576eea23aa69771b66123f979a783b6
2015-08-21 15:09:37 +01:00
Andreas Tolfsen a9eefdf14d Bug 1197146: Part 3: Use dispatcher for listener findElementContent
r=dburns

--HG--
extra : commitid : G9ClS0TusdD
extra : source : 6eaccfcfd64d5f9d41575872ab910f3023a61e79
2015-08-21 15:05:13 +01:00
Andreas Tolfsen c92e905c2e Bug 1197146: Part 2: Use dispatcher for listener findElementsContent
r=dburns

--HG--
extra : commitid : 6C4UE1m18Da
extra : source : f7e4900ea7ca194f282fae199d64b712aee85251
2015-08-21 15:03:03 +01:00
Andreas Tolfsen 2c61350827 Bug 1197146: Part 1: Prime dispatcher in listener to resolve promises
Because of the asynchronous behaviour of some internal utilities, such
as ElementManager, we need to employ promises to create a bridge over
them and the synchronous returning functions.

r=dburns

--HG--
extra : commitid : LneaNFIEWhx
extra : source : 12fe4474c9bc791395603242bc2f865e39212aa9
2015-08-21 15:00:29 +01:00