Commit Graph

1643 Commits

Author SHA1 Message Date
Ting-Yu Lin
2322e84c59 Bug 1206545 - Add a marionette test case. r=roc
Test AccessibleCaretEventHub is properly initialized if <html> has
"display: none" initially.

--HG--
extra : commitid : 4D5733d5Xr8
extra : rebase_source : 9c767b200a63777b3f20e85ebc3f83272e979bc9
2015-11-16 18:16:43 +08:00
Maja Frydrychowicz
85b6d217e6 Bug 1223517 - Release marionette-client 2.0.0 and marionette-driver 1.1.1; r=automatedtester
--HG--
extra : commitid : L8Pq0IR1vFa
extra : rebase_source : 8fba20db0d5c996fb615e6bc7cd9a5f531a74fc2
extra : histedit_source : 9d31ea2bdbafa5c783432225bc72703f5010cd9a
2015-11-10 14:51:44 -05:00
Yura Zenevich
0f813762b9 Bug 1224339 - making sure a11y and DOM trees are in sync when performing a11y checks with marionette. r=automatedtester 2015-11-13 09:58:08 -05:00
Andreas Tolfsen
4343fd152c Bug 1217988: Use current system OS for platformName capability
Services.appinfo is populated by the target compile system's OS name,
taken from the OS_TARGET configure variable.

By using Services.sysinfo instead, we are returning the effective current
local system's operating system, which is similar to what is found in
Gecko's UA string.

r=dburns

--HG--
extra : commitid : 2ap54ga0CLq
extra : rebase_source : 803baa9d40dee8630e58b8ccf6d68ef7ca6f0e3b
2015-11-10 15:43:58 +00:00
Maja Frydrychowicz
3b676c802b Bug 1223429 - Return exit code 10 when Marionette harness has failing tests; r=automatedtester
--HG--
extra : rebase_source : 0e3dfb94d210143f81a45049f3ecbd01bb5ce9a7
2015-11-10 13:09:13 -05:00
Wes Kocher
7818a5d82d Merge b2ginbound to central, a=merge
--HG--
extra : commitid : 4oxpTfmj62P
2015-11-12 16:10:14 -08:00
Wes Kocher
aa703c8ebc Merge fx-team to central, a=merge
--HG--
extra : commitid : 2P60329DeS
2015-11-12 16:04:09 -08:00
Carsten "Tomcat" Book
d577fff5aa Merge mozilla-central to b2g-inboind 2015-11-12 12:40:40 +01:00
Andrew Halberstadt
bf1fc268f1 Bug 1223171 - [marionette] add ability to install addons programatically, r=ato
This is needed to install unsigned addons in developer mode. A special pref that
can only be set at runtime will determine whether or not unsigned addons can be
installed. So unsigned addons required for testing will need to be restartless
and installed on the fly. The normal method of dropping the addon in the profile
folder will no longer work.

--HG--
extra : commitid : HaXy0GQQmz9
extra : rebase_source : 4ba87c3d40a7fea9dd7afc510ce16ab54019e32b
2015-11-10 08:29:36 -05:00
Edgar Chen
cea3a0af78 Bug 1223676 - [Marionette] Remove waiting for homescreen on emulator. r=ahal
--HG--
extra : commitid : EppY5lQSe21
extra : rebase_source : 2520211aab893431f9af32ad2217c1b604c637e3
extra : amend_source : beb71aefc8d313ff0eeeec4becebac785535e3b2
2015-11-11 15:23:22 +08:00
Andreas Tolfsen
dac05c8fbd Bug 1223028: Exhaust server-originated commands
The Python client does not currently exhaust all the command
requests originating from the server as pointed out by :bhsu in
https://bugzilla.mozilla.org/show_bug.cgi?id=1211503#c12.

This prevents making multiple calls to runEmulatorCmd and runEmulatorShell
inside executeScript/executeJSScript/executeAsyncScript.  This failure
makes marionette-webapi fail.

We loop through all the commands originating from the server until we
get sent back a response.

r=dburns

--HG--
extra : commitid : 1SVHwcJrDcU
2015-11-09 15:54:10 +00:00
Paolo Amadini
083cc54da4 Bug 1206244 - Fix Marionette test that used the identity icon element to test a framework function. r=ato on a CLOSED TREE
--HG--
extra : commitid : ILrIG9g5hRP
extra : amend_source : 3d5286fcd9394bede7a8ddc6b0d3711ecdb0eaf5
2015-11-12 17:55:01 +00:00
Maja Frydrychowicz
efa9e8e397 Bug 1199588 - Add --workspace option to Marionette runner; r=automatedtester
The default behaviour is unchanged: gecko.log and logcat are saved to the
cwd, a temporary Firefox profile is cloned or created in TMP.

When a path is specified via --workspace, gecko.log, logcat and the Firefox
profile directory are all saved there instead. A profile saved in the
workspace does not get deleted at the end of a session unless it's a clone.

--HG--
extra : rebase_source : 155c26af065f55bcba0f2a139c9f06e4a526f740
2015-11-02 11:55:29 -05:00
Andreas Tolfsen
e50c5aed41 Backed out changeset de2c852c9853 (bug 1217988)
CLOSED TREE

--HG--
extra : commitid : 7V7qyzLQGn4
extra : amend_source : afd52fb64b0ed6e49d12cd950ead847df153a6cd
2015-11-10 23:23:47 +00:00
Andreas Tolfsen
22ca8dbc18 Backed out changeset a3f9ac7c8454 (bug 1223028)
CLOSED TREE

--HG--
extra : commitid : 1bAUklMyy5l
extra : amend_source : 93e1e088fe70a510b51b27bdf8380ef577daf946
2015-11-10 22:47:17 +00:00
Andreas Tolfsen
942d6c9426 Bug 1223028: Exhaust server-originated commands
The Python client does not currently exhaust all the command
requests originating from the server as pointed out by :bhsu in
https://bugzilla.mozilla.org/show_bug.cgi?id=1211503#c12.

This prevents making multiple calls to runEmulatorCmd and runEmulatorShell
inside executeScript/executeJSScript/executeAsyncScript.  This failure
makes marionette-webapi fail.

We loop through all the commands originating from the server until we
get sent back a response.

r=dburns

--HG--
extra : commitid : 8oBRRddi4TJ
extra : rebase_source : 98b10ccaba525acd391bf614a91aec1b8f7daf4e
2015-11-09 15:54:10 +00:00
Andreas Tolfsen
4d78a9aa16 Bug 1217988: Use current system OS for platformName capability
Services.appinfo is populated by the target compile system's OS name,
taken from the OS_TARGET configure variable.

By using Services.sysinfo instead, we are returning the effective current
local system's operating system, which is similar to what is found in
Gecko's UA string.

r=dburns

--HG--
extra : commitid : 2UVeU9zzO6p
extra : rebase_source : cea1d6f8bc00173a68a28b51df33d59320be8093
2015-11-10 15:43:58 +00:00
Andreas Tolfsen
021a5ea9b8 Bug 1202381: Remove null check on element id
Corrects type checks on parameters passed to command, indentation level,
and clarifies when the code leaps into content space.

Thanks to Stanislas Daniel Claude Dolcini for doing the first iteration
fix for this.

r=dburns

--HG--
extra : commitid : 3HeTTEsvvBx
extra : rebase_source : 7088760ae24d695a2f9fa20b14a16cdec2e125d7
2015-11-09 17:48:31 +00:00
David Burns
19232bc3e9 Bug 1222388: Correct ./mach marionette-test r=ato
There have been a number of improvements to the marionette test runner
unfortunately we missed this regression.

--HG--
extra : commitid : KE4FPolRysN
extra : rebase_source : 546152a67a4fd96a1d3c63ba914839c316022eaf
2015-11-09 14:07:52 +00:00
Maja Frydrychowicz
1b4a262a4c Bug 1219397 - Collect Firefox-Desktop-specific prefs in a subclass of GeckoInstance; r=automatedtester
--HG--
extra : rebase_source : 890b1e9915f8ef09e2c74dcbd0cacad68fb4c464
2015-11-05 12:16:32 -05:00
Maja Frydrychowicz
4cb179de44 Bug 1217557 - set browser.tabs.remote.autostart to False in GeckoInstance; r=automatedtester
--HG--
extra : rebase_source : 11ff5f88613b18ad7d46ca0f8ef008fdff2da2e3
2015-11-02 18:19:58 -05:00
Maja Frydrychowicz
fc478b4b18 Bug 1212608 - Add parts of firefox_ui_harness to Marionette runner; r=automatedtester
* BaseMarionetteRunner: any change to self.bin resets self.marionette and
  self.tests, so you change binaries between calls to run_tests()
* Refactor runtests.py to make it easier to extend/customize the harness
  for different test suites. Add more error handling.

--HG--
extra : transplant_source : %BB%AC%A0%93%A1s%7F%23%A5%DER%E0%AF%B8Q%AF%83%98d%D9
2015-10-23 16:43:40 -04:00
Julien Pagès
a4b97ca1c4 Bug 1173502 - add cmdline options to set prefs (same as in mozprofile). r=dburns
--HG--
extra : transplant_source : %15%16%84%D1%DB%A3%0F%E3%13y%04o%95%8B%24w%ADx%81%A4
2015-11-02 18:56:15 +01:00
Julien Pagès
bb11933e45 Bug 1213026 - Skip a test based on the value of a browser pref. r=dburns
--HG--
extra : commitid : KuaEKJsQSB4
2015-11-02 19:09:18 +01:00
Andreas Tolfsen
446f2ed4ec Bug 1216967: Bump Marionette Python packages
Prepare release of new Python packages for Marionette, with the following
versions:

  marionette-client 1.1.0
  marionette-driver 1.1.0
  marionette-transport 1.0.0

r=dburns

--HG--
extra : commitid : DelEI4Q7Gnu
extra : rebase_source : 7cf900d42fbd60e44e6855c93807a7ba1409fb16
2015-10-21 14:21:27 +01:00
J. Ryan Stinnett
986f2a5cde Bug 1203159 - Rewrite DevTools resource URLs. r=ochameau 2015-10-21 12:48:53 -05:00
David Burns
7cc0a899a5 Bug 1206122: Add support for switchToParentFrame r=jgriffin
This allows us from a child frame to go up one level. This is documented
at http://w3c.github.io/webdriver/webdriver-spec.html#switch-to-parent-frame

--HG--
extra : commitid : GtXAxWLM61v
extra : rebase_source : 9b18d51a5dbefb4dad1cb39b229dc3d55cfae26a
extra : histedit_source : d0a0479e0c9946f242efd71e722685447ae48fd1
2015-10-19 21:39:48 +01:00
Andreas Tolfsen
2d613cd4d7 Bug 1211503: Support for Marionette protocol level 3 in the Python client
Futures-proofs the Marionette Python client to have support for level
3 of the Marionette protocol outlined in bug 1211489.

This patch changes the marionette-transport API most notably by renaming
the MarionetteTransport class to TcpTransport and by splitting the
receive-capabilities of TcpTransport.send into a new function called
request.

Furthermore it introduces a message data structure for dealing with
incoming responses and commands, and for marshaling messages to send in
order to support all three protocol levels.

r=dburns
r=jgriffin

--HG--
extra : commitid : 3jwoFepZzgy
extra : rebase_source : 5012e774b6edf6a1d53db22e360b5a0b063dd59b
2015-10-09 11:15:24 +01:00
Carsten "Tomcat" Book
0ecf764867 merge mozilla-inbound to mozilla-central a=merge 2015-10-14 12:46:09 +02:00
Ting-Yu Lin
1c82cbed60 Bug 1199625 - Test focus not being changed by long-pressing on non-selectable. r=mtseng
We already had focus changing tests covered by
_test_focus_obtained_by_long_press(). This patch adds tests for focus
not being changed from an editable element after long-pressing on a
non-selectable element.

These tests will fail after reverting this change.
"Bug 1197739 - Do not change focus too early unless the frame is selectable"
https://hg.mozilla.org/mozilla-central/rev/4f2822bbbdb2

--HG--
extra : transplant_source : %26%E8%BAx%D2y%3DS%5BvLH%0Fy%11N%2B%D9%3B%E0
2015-10-13 17:26:29 +08:00
Andreas Tolfsen
30ee512caa Bug 1213797: Refactor screen capture and SVG document support
Errors thrown by takeScreenshot used to be silently ignored.  When the
command started using the new dispatching technique in bug 1202663,
it was surfaced we do not support taking screen captures of SVG documents.

Since this is a requirement for Web Platform Tests, this patch corrects
the wrong assumptions about document body and document element.

This patch also significantly refactors the screen capture code, but
only uses the new implementation in contnent space, since some further
modifications are required to use it in chrome.

r=dburns
r=jgriffin

--HG--
extra : commitid : DdCIEpd5PEJ
extra : rebase_source : 7357010f992d7f995765c685000892cc59d9ec9a
2015-10-13 16:52:26 +01:00
Andreas Tolfsen
4e5128c472 Bug 1202663: Use dispatcher for screen capture command in listener
r=dburns
r=jgriffin

--HG--
extra : commitid : 8Hc32mr6EX
extra : rebase_source : 5036cfc0eb6a9acb5a8f91548414448365162751
2015-10-09 12:02:42 +01:00
Andreas Tolfsen
c3c790dd87 Bug 1213800: More exhaustive Marionette screen capture tests
The screen capture tests were not testing that the screenshots are of
what they're meant to be of.  In order to confidently fix bug 1202663,
these new tests will ensure we do not have any regressions.

r=jgriffin
r=dburns

--HG--
extra : commitid : AulnylZMj6Y
extra : rebase_source : c2604e0e3bf1a975b1f35a149ef7f2bdb08840de
2015-10-13 16:58:40 +01:00
Wes Kocher
ba7dc0b0c8 Backed out changeset 2d50cf0f2117 (bug 1213800) for Win8 Marionette failures 2015-10-12 12:09:49 -07:00
Maja Frydrychowicz
2f9c01a010 Bug 1040742 - Only ignore expected exceptions; r=automatedtester
--HG--
extra : amend_source : 77ea73088dcc9e2484fbe4c3fe818b333fdf9b1d
2015-10-05 18:31:57 -04:00
Andreas Tolfsen
f6c4679cd9 Bug 1213800: More exhaustive Marionette screen capture tests
The screen capture tests were not testing that the screenshots are of
what they're meant to be of.  In order to confidently fix bug 1202663,
these new tests will ensure we do not have any regressions.

r=jgriffin

--HG--
extra : commitid : GkRPL9uVwjG
extra : rebase_source : 594ea1655f61552d430c3242e6b3418e550c27b3
2015-10-12 16:16:39 +01:00
Carsten "Tomcat" Book
08997000eb Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Sebastian Hengst
cdcff6d0a7 Backed out changeset c6b267589d0d (bug 1202902) for Mulet Reftest, W3C Platform Test and other failures. r=backout a=backout on a CLOSED TREE 2015-10-07 13:36:26 +02:00
David Burns
ea7d4b9e69 Bug 977899: Have Marionette navigate the top frame on desktop when navigate()
is called. r=ato

This means that we are now doing step 7 in

http://w3c.github.io/webdriver/webdriver-spec.html#get

--HG--
extra : commitid : KQi5f9c0C1r
extra : rebase_source : 9c77a1d9aadf529ddbae2d32e0e1f9c4d532e181
extra : histedit_source : f40f377e1398f72fa68efd69ad864d9e4ae7e2b4
2015-10-06 16:47:09 +01:00
Carsten "Tomcat" Book
e7ef778c9d Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)

--HG--
extra : rebase_source : 5d3db72337754bc7ab0ed0c30b2896100411ff92
2015-10-07 12:13:45 +02:00
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
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
Ryan VanderMeulen
9fa88d03a9 Merge m-c to inbound. a=merge 2015-08-24 21:04:12 -04:00
Ryan VanderMeulen
125759fa69 Merge inbound to m-c. a=merge 2015-08-24 20:37:14 -04:00
David Burns
dbc240166a Bug 1196987: Update UUID returned to be a valid UUID 4; r=jgriffin
Currently the UUID returns the `{}` which is not valid and breaks
URI Templates used in WebDriver languages

--HG--
extra : commitid : 5TOoNz5yfms
extra : rebase_source : f51303fc4d15d886c04f20140e08c656c91eb2c6
2015-08-24 23:15:46 +01:00
Edgar Chen
5cdc72b485 Bug 1197078 - Send result of emulator command in JSON format. f=ato r=dburns 2015-08-21 10:41:55 +08:00
Yura Zenevich
1b13386b9a Bug 1191432 - improving coverage for marionette accessibility checks. r=automatedtester 2015-08-22 16:41:14 -04:00
Yoshi Huang
12efacfa8c Bug 1165272 - Part 1: Remove getAppCodebasePrincipal. r=bholley 2015-08-24 01:31:00 -04:00
David Burns
c085801e25 Bug 1196920: Add specificationLevel capability to Marionette; r=jgriffin
--HG--
extra : commitid : 9P737TkRmC1
extra : rebase_source : c1eb63853ef04582b3854d17c9c9f8226f5b9c46
extra : histedit_source : f20ff7283658687f923cccbf7f907168385c533c
2015-08-20 23:21:21 +01:00
David Burns
775dd31768 Bug 1156070: Rename test class to prevent test harnesses thinking there is a failure; r=jgriffin
Mozharness appears to do a check for the word exception and is seeing these
tests as failures when they are not.

--HG--
extra : commitid : DY4JNzCuOt3
extra : rebase_source : f7f9bc2059d145bde1df36bd2898ffbed6cbbdcf
2015-08-19 15:57:06 +01:00
Andreas Tolfsen
9351a4ab23 Bug 1194968: Support for Marionette protocol adjustments in Python client
Whilst it is not a goal for the Marionette protocol to be fully compatible
with WebDriver due to the different transport mechanisms, bug 1153822
adjusts the Marionette protocol closer to what is prescribed in the
WebDriver specification.

This patch adds support for the new protocol (level or version 2)
to the Python bindings with backwards compatibility for the earlier,
existing protocol (1).

r=jgriffin

--HG--
extra : commitid : CiAKTE3h1nG
extra : rebase_source : ea3ed4ec021febac7f3b2ae2c10ec583a3ddfcff
2015-08-15 15:46:31 +01:00
David Burns
d0149ca48f Bug 1195440: Disable health reporting when marionette tests are running; r=jgriffin
--HG--
extra : commitid : 6ltTPgnkn0V
extra : rebase_source : 3cf8839225e8b9d64ef866e983fbbe329526bbf4
2015-08-17 21:36:57 +01:00
Nick Robson
49e872dc7e Bug 1075089 - Move popup menu frame offset to LookAndFeel and fix default offset for OS X. r=Enn
--HG--
extra : rebase_source : 7817fea6ea95e9dfc486f797114e1cfb778d5230
2015-08-04 16:41:00 -04:00
Ryan VanderMeulen
6cfdf70c9e Backed out changeset 9eeddf4d34ea (bug 1191432) for various Gij failures.
CLOSED TREE
2015-08-10 10:29:13 -04:00
Yura Zenevich
fea1dcee0d Bug 1191432 - improving coverage for marionette accessibility checks. r=automatedtester 2015-08-10 09:36:53 -04:00
Chris Manchester
355eb3d3aa Bug 1192331 - Disable search suggestions UI when running marionette tests and re-enable modal test. r=adw
--HG--
extra : commitid : 2uv5qAMBvVf
2015-08-07 12:30:31 -07:00
Drew Willcoxon
63591bbd24 Bug 959567 - Change urlbar search suggestions from opt-out to opt-in, add opt-in prompt to urlbar popup. r=mak 2015-08-06 20:13:00 -07:00
Julien Pagès
7dfc1e9f5c Bug 1190817 - marionette install from pypi is broken. r=automatedtester
--HG--
extra : rebase_source : 99a8270acdda2733f6aaacdbf19fe61a330fd319
2015-08-04 05:49:00 +02:00
David Burns
ea2f796952 Bug 1189027: Bump marionette driver to 0.11; r=ato
--HG--
extra : commitid : 1QEn9tLwEPJ
extra : rebase_source : b2c9ed24f878d606dc566929e949aaf53d4dc851
2015-07-29 20:48:07 +01:00
David Burns
c34722a98d Bug 1188826: Bump marionette client version for release; r=ato
--HG--
extra : commitid : 2D6oRROltjv
extra : rebase_source : a05d69e95d1eb6371bbb24b50a3465132764431a
extra : histedit_source : 046d81f4818741b2fd1246c679e31dcae31df90b
2015-07-29 12:31:56 +01:00
Andreas Tolfsen
b7f18aa32d Bug 1197143: Use dispatcher for listener goBack
r=dburns

--HG--
extra : commitid : GDNioxjAwEz
extra : rebase_source : 68b438abf77572512650ab9fe212386fc0b619dc
2015-08-21 11:19:53 +01:00
Andreas Tolfsen
2ec14990fa Bug 1197141: Use dispatcher for listener getPageSource
r=dburns

--HG--
extra : commitid : G5PWcxsCVKx
extra : rebase_source : e8c27e5b61cae1714857807c6ef22c4a14b556bb
2015-08-21 11:11:36 +01:00
Andreas Tolfsen
a58ec6fa20 Bug 1197133: Use dispatcher for listener getTitle
r=dburns

--HG--
extra : commitid : 8vtmyidCi3x
extra : rebase_source : e508e807147c163799b8bbf54149963f287ed91d
2015-08-21 11:04:06 +01:00
Andreas Tolfsen
1bb1ddb8be Bug 1197131: Use dispatcher for listener getCurrentUrl
r=dburns

--HG--
extra : commitid : 4Xc1sCPhKIj
extra : rebase_source : 42479a1cab75575ba6dae4a6c0b0cf98d1652582
2015-08-21 10:57:06 +01:00
Julien Pagès
78bf9783e7 Bug 1168803 - Add --addon option to specify add-ons to be installed. r=dburns
--HG--
extra : commitid : peO1rLe9oG
extra : rebase_source : b557243a86a861a535b098e4965cd371dfd60877
2015-07-18 10:53:10 +02:00
Julien Pagès
088713752a Bug 1129122 - Marionette should show an error if a test file doesn't start with the test_ prefix. r=dburns
--HG--
extra : commitid : 4INcHog6PGS
extra : rebase_source : 7240887c3fc7373619cfbe2f500b66038149747b
2015-07-17 22:53:27 +02:00
Julien Pagès
7a736df66f Bug 1081970 - Gracefully handle interrupts when running test suite. r=dburns
--HG--
extra : commitid : 9JQBIHQNMoV
extra : rebase_source : 9db8ccab407a78095fb67ee61e574d301364d416
2015-07-17 23:00:26 +02:00
Julien Pagès
1b995b9a16 Bug 1183157 - make marionette --version flag also show the transport and driver package versions. r=dburns
--HG--
extra : commitid : 9r6zCILoeE4
extra : rebase_source : 6d0475dec01fe9b97ac318ad0948bfe8e9e15e56
2015-07-17 21:06:12 +02:00
Julien Pagès
86090d9f09 Bug 970886 - MarionetteTestRunner runs tests twice if the filename is the same. r=dburns
--HG--
extra : commitid : H4PWlVdG6KZ
extra : rebase_source : d18eac8637b5650d591c69a943e58dc9feeb70cd
2015-07-17 20:58:42 +02:00
David Burns
df864f9993 Bug 1178468 - Update marionette cookie support to use nsICookie2. r=jgriffin
This allows us to return httpOnly key when doing getCookie and serialising the result

Details in http://w3c.github.io/webdriver/webdriver-spec.html#dfn-serialized-cookie

--HG--
extra : commitid : Fkr0udCIjfm
extra : rebase_source : 7e837a36947e83520eae26c3f41b45dd5c211829
extra : histedit_source : 806d7c8249128b08bc1ad448389bb639e0369c07
2015-07-15 23:51:51 +01:00
David Burns
893918b610 Bug 1178468: rename marionette cookie test methods to be more pythonic. r=jgriffin
--HG--
extra : commitid : 72IC676CruQ
extra : rebase_source : 61b82d97a406b38151918bcf924aee51c529156b
extra : histedit_source : 50a4c0fd2e9158311fb2cf06ea42c025b56f73a9
2015-07-07 20:57:57 +01:00
Andrew Halberstadt
2be5ff0c10 Bug 1014760 - Move mozlog.structured to mozlog; Move mozlog to mozlog.unstructured, r=jgraham
Mozlog currently has two implementations. The top level package is based on the logging module and is
deprecated. The newer structured logging implementation lives in mozlog.structured. This patch swaps the
two, so the top level mozlog module contains the recommended implementation, while mozlog.unstructured
contains the old one.

--HG--
rename : testing/mozbase/docs/mozlog_structured.rst => testing/mozbase/docs/mozlog.rst
rename : testing/mozbase/mozlog/mozlog/structured/commandline.py => testing/mozbase/mozlog/mozlog/commandline.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/__init__.py => testing/mozbase/mozlog/mozlog/formatters/__init__.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/base.py => testing/mozbase/mozlog/mozlog/formatters/base.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/errorsummary.py => testing/mozbase/mozlog/mozlog/formatters/errorsummary.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/html/__init__.py => testing/mozbase/mozlog/mozlog/formatters/html/__init__.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/html/html.py => testing/mozbase/mozlog/mozlog/formatters/html/html.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/html/main.js => testing/mozbase/mozlog/mozlog/formatters/html/main.js
rename : testing/mozbase/mozlog/mozlog/structured/formatters/html/style.css => testing/mozbase/mozlog/mozlog/formatters/html/style.css
rename : testing/mozbase/mozlog/mozlog/structured/formatters/html/xmlgen.py => testing/mozbase/mozlog/mozlog/formatters/html/xmlgen.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/machformatter.py => testing/mozbase/mozlog/mozlog/formatters/machformatter.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/tbplformatter.py => testing/mozbase/mozlog/mozlog/formatters/tbplformatter.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/unittest.py => testing/mozbase/mozlog/mozlog/formatters/unittest.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/xunit.py => testing/mozbase/mozlog/mozlog/formatters/xunit.py
rename : testing/mozbase/mozlog/mozlog/structured/handlers/__init__.py => testing/mozbase/mozlog/mozlog/handlers/__init__.py
rename : testing/mozbase/mozlog/mozlog/structured/handlers/base.py => testing/mozbase/mozlog/mozlog/handlers/base.py
rename : testing/mozbase/mozlog/mozlog/structured/handlers/bufferhandler.py => testing/mozbase/mozlog/mozlog/handlers/bufferhandler.py
rename : testing/mozbase/mozlog/mozlog/structured/handlers/statushandler.py => testing/mozbase/mozlog/mozlog/handlers/statushandler.py
rename : testing/mozbase/mozlog/mozlog/structured/logtypes.py => testing/mozbase/mozlog/mozlog/logtypes.py
rename : testing/mozbase/mozlog/mozlog/structured/reader.py => testing/mozbase/mozlog/mozlog/reader.py
rename : testing/mozbase/mozlog/mozlog/structured/scripts/__init__.py => testing/mozbase/mozlog/mozlog/scripts/__init__.py
rename : testing/mozbase/mozlog/mozlog/structured/scripts/format.py => testing/mozbase/mozlog/mozlog/scripts/format.py
rename : testing/mozbase/mozlog/mozlog/structured/scripts/logmerge.py => testing/mozbase/mozlog/mozlog/scripts/logmerge.py
rename : testing/mozbase/mozlog/mozlog/structured/scripts/unstable.py => testing/mozbase/mozlog/mozlog/scripts/unstable.py
rename : testing/mozbase/mozlog/mozlog/structured/stdadapter.py => testing/mozbase/mozlog/mozlog/stdadapter.py
rename : testing/mozbase/mozlog/mozlog/structured/structuredlog.py => testing/mozbase/mozlog/mozlog/structuredlog.py
rename : testing/mozbase/mozlog/mozlog/logger.py => testing/mozbase/mozlog/mozlog/unstructured/logger.py
rename : testing/mozbase/mozlog/mozlog/loggingmixin.py => testing/mozbase/mozlog/mozlog/unstructured/loggingmixin.py
rename : testing/mozbase/mozlog/mozlog/loglistener.py => testing/mozbase/mozlog/mozlog/unstructured/loglistener.py
extra : commitid : 3JWk75JY4N0
extra : rebase_source : 229bad7a7bf8ead013ce62d128c0896a75cad393
2015-07-16 10:38:40 -04:00
Jonathan Griffin
ce7bb7688f Bug 1182681 - Raise IOError when receiving empty string on socket, r=jgraham
* * *
Bug 1182681 - Raise IOError when we receive an emtry string, r=jgraham

--HG--
extra : commitid : 4wbq21Yb9yA
2015-07-13 12:29:21 -07:00
David Burns
abe9763e58 Bug 1165449: Add the ability to set a proxy via capabilities on Marionette session start; r=jgriffin
By passing an object to capabilities like

  {
    "requiredCapabilities": {
        "proxy": {... }
    }
  }

Specification detail at http://w3c.github.io/webdriver/webdriver-spec.html#dfn-set-the-proxy

--HG--
extra : commitid : 3xR7tPDgMK4
extra : rebase_source : b3af3dfe7d2d0e1701ca0b2162f8ae517b5b4c9a
2015-07-14 00:51:58 +01:00
Julien Pagès
1781b3e4cc Bug 902125 - Add a version config/flag for Python Marionette. r=dburns
--HG--
extra : commitid : I4bJUgDeGUI
extra : rebase_source : 5e7498834bd35cfc0c6fcffd5135eb4dceddd2c2
2015-07-13 18:33:23 +02:00
Ehsan Akhgari
02e4c3c7fb Backout bug 1182681 for web-platform-test failures on a CLOSED TREE 2015-07-13 21:43:54 -04:00
Jonathan Griffin
3e227be7f7 Bug 1182681 - Raise IOError when receiving empty string on socket, r=jgraham
* * *
Bug 1182681 - Raise IOError when we receive an emtry string, r=jgraham

--HG--
extra : commitid : 2JF1C6eDB0l
2015-07-13 12:29:21 -07:00
Julien Pagès
f80f5c4878 Bug 1081970 - Gracefully handle interrupts when running test suite. r=dburns 2015-07-12 09:32:00 -04:00
Julien Pagès
6a32085ee7 Bug 983821 - 'marionette' cli entrypoint doesn't have access to proper packages. r=dburns
--HG--
extra : commitid : EF5ytBCZpuw
extra : rebase_source : 3ec79224fb63ba722c28e7bf00ab76bad721bcff
2015-07-11 08:05:51 +02:00
Tim Taubert
a2bcabe26c Bug 1175678 - Follow-up to fix test_chrome_element_css.py and let it check for the new not-secure icon file in the URL bar r=bustage 2015-07-09 15:12:29 +02:00
Jonathan Griffin
3bf635914f Bug 1161702 - Add --startup-timeout arg for Marionette; add in-tree config for luciddream, r=ahal 2015-07-07 12:26:54 -07:00
Henrik Skupin
c9d4d45a02 Bug 1178778 - Bump marionette-driver to 0.10. r=automatedtester DONTBUILD 2015-06-30 17:11:21 +02:00
Jonathan Griffin
4ea2b2818d Bug 1177513 - Bump marionette-client to 0.16, r=dburns 2015-06-26 09:42:36 -07:00
Carsten "Tomcat" Book
66f9f77e3d merge mozilla-inbound to mozilla-central a=merge 2015-06-26 13:19:12 +02:00
Gregory Szorc
3e949ee8fe Bug 1176642 - Use absolute_import in mach_commands.py files; r=glandium
This removes ambiguity as to which modules are being imported, making
import slightly faster as Python doesn't need to test so many
directories for file presence.

All files should already be using absolute imports because mach command
modules aren't imported to the package they belong to: they instead
belong to the "mach" package. So relative imports shouldn't have been
used.

--HG--
extra : commitid : 6tFME1KKfTD
extra : rebase_source : 78728f82f5487281620e00c2a8004cd5e1968087
2015-06-21 17:39:09 -07:00
Gregory Szorc
a19bee3a08 Bug 1176642 - Remove unused imports; r=glandium
--HG--
extra : commitid : IZ7JkH4GKW4
extra : rebase_source : 4c3301c5c353be8afed407df4a003a9cac4583e8
2015-06-25 12:16:38 -07:00
Chris Manchester
e71520e019 Bug 1174766 - Modify test_profile_management to use a clean profile to avoid contention on windows.;r=ato
--HG--
extra : commitid : ID9VOYgI5vu
2015-06-24 10:16:27 -07:00
Chris Manchester
213a215144 Bug 1174766 - Append to gecko logfile after marionette restarts the browser rather than removing the old file every time.;r=ato
--HG--
extra : commitid : ACiV5ULwCRm
2015-06-20 09:46:00 -07:00
Chris Manchester
606f67f584 Bug 1169600 - Remove message listeners intended to coordinate registering a new browser with marionette once the browser has been registered. r=ato
--HG--
extra : commitid : BlpX9XbqiYM
2015-06-24 00:10:10 -07:00
David Burns
56ab0ea19e Bug 1174941: Update conditional to switch statement to allow more processing of capabilities; r=ato
--HG--
extra : commitid : 9X4OIvswmla
extra : rebase_source : 92005138affc9edc1726472f62e9276e2922a0f4
2015-06-19 15:45:46 +01:00
David Burns
720ba26e14 Bug 1174941: Remove all capabilities from desired capabilities if they are in the session capabilitiesand in requiredCapabilities; r=ato
--HG--
extra : commitid : 49h1HhlE4h
extra : rebase_source : fd01b68b9b34414fa5fd84e7fb592d0c22a1e60f
2015-06-19 15:44:25 +01:00
David Burns
74f8ab42da Bug 1174941: Update server capabilities that are set on startup; r=ato
--HG--
extra : commitid : JBXi8bCndb6
extra : rebase_source : 749e07ec25d12ffbcd739d807e67067ee67ad7a7
2015-06-19 15:42:04 +01:00
Jonathan Griffin
7fe463bd2f Bug 1176408 - Bump marionette-transport to 0.5 and marionette-driver to 0.9, r=dburns 2015-06-21 13:40:54 -07:00
Chris Manchester
26fdea8c56 Backed out changeset 101932a675a4 (bug 1174766) for winXP failures
--HG--
extra : commitid : 7icZ0RCmbcN
2015-06-20 15:27:11 -07:00
Chris Manchester
b1bba28dbf Bug 1174766 - Append to gecko logfile after marionette restarts the browser rather than removing the old file every time.;r=ato
--HG--
extra : commitid : 3W4IxVnJKVU
2015-06-20 09:46:00 -07:00
Martijn Wargers
4f808e5dd3 Bug 1176882 - Don't pin marionette-transport. r=davehunt
--HG--
extra : rebase_source : b35c475ff4761a75f0debd53f0cae95d10f8c863
2015-06-24 02:09:16 +02:00
Jonathan Griffin
53313cd80f Bug 1166033 - Notice when the process has died, and restart it, r=dburns 2015-06-18 14:26:53 -07:00
Jamin Liu
b092e9d032 Bug 1175067 - Switch Bluetooth marionette test set to BT API v2 and disable unsupported tests. r=joliu 2015-06-17 18:00:26 +08:00
Chris Manchester
1419eee767 Bug 1169600 - Avoid misleading exception in message listeners in marionette server. r=ato
--HG--
extra : rebase_source : 08741e157688b8cb256bbf210d2bae8e21dc864b
2015-06-03 10:21:27 -07:00
Jonathan Griffin
6785d36bb1 Backed out changeset 58b09d4a5de5 for Mn OSX test_profile_management.py failures on a CLOSED TREE 2015-06-10 12:15:31 -07:00
Jonathan Griffin
44e3816796 Bug 1166033 - Notice when the process has died, and restart it, r=dburns 2015-06-10 10:24:29 -07:00
Chris Manchester
ddab0ce578 Bug 1169798 - Refresh the marionette server's window reference when switching between windows to avoid intermittent exception.;r=ato 2015-06-01 13:26:15 -07:00
Jonathan Griffin
a89e3a4841 Bug 1169751 - Bump marionette-driver to 0.8, marionette-client to 0.15, r=dburns 2015-05-29 15:43:50 -07:00
Henrik Skupin
f7561e10df Bug 1169381 - Bump dependency for mozinfo in marionette-client to >=0.8. r=jgriffin 2015-05-28 12:05:00 -04:00
Jonathan Griffin
2eed05fc9a Bug 1168997 - Bump marionette-client to 0.14, r=dburns 2015-05-28 08:58:22 -07:00
Alive Kuo
3a84fa3dfd Bug 1169122 - Change the way to reference AppWindowManager. r=jgriffin 2015-05-28 10:42:30 +08:00
Jonathan Griffin
4feab373ba Bug 1163833 - Add integration with browsermob-proxy, r=dburns 2015-05-27 10:00:09 -07:00
Jonathan Griffin
479984afe5 Bug 1149618 - Remove SpecialPowers from Marionette, r=dburns 2015-05-18 16:36:15 -07:00
Ting-Yu Chou
3d79e33a98 Bug 1141418 - Fix index after calling splice while iterating remoteFrames array. r=jgriffin
--HG--
extra : rebase_source : e7978467a5837f3967985c291df23f4d83a86396
2015-05-18 12:04:26 +08:00
Jonathan Griffin
8824722da9 Backout cc15c275b1e3 (Bug 1149618) on a CLOSED TREE for suspected debug emulator bustage, a=bustage 2015-05-19 19:35:38 -07:00
Jonathan Griffin
ac2f6d8d6e Bug 1149618 - Remove SpecialPowers from Marionette, r=dburns 2015-05-18 16:36:15 -07:00
Jonathan Griffin
b74bde0686 Bug 1161606 - Implement 'using_permission' context manager, r=dburns 2015-05-14 12:08:17 -07:00
Jonathan Griffin
4b7cf76438 Bug 1161209 - Bump marionette-driver to 0.7, marionette-client to 0.13, r=AutomatedTester 2015-05-07 10:09:08 -07:00
Andreas Tolfsen
a1fe10492b Bug 1155703: Correct Marionette to use NoSuchWindowError
FrameSendFailureError and FrameSendNotInitializedError are not compatible
with the W3C WebDriver specification and we should use NoSuchWindowError
instead.

Bug 1159674 has prepared Gaia for this change.

r=davehunt

--HG--
extra : rebase_source : 6fb5a2c0921d3fdbeb1749aee8296e7c40de4ead
extra : source : 02dfd2e12038460bb3c895c31951a85214e135e1
2015-04-29 12:00:43 +01:00
Jonathan Griffin
d1b4469ce0 Bug 1149618 - Add a sandbox parameter to execute, r=dburns 2015-04-23 13:39:38 -07:00
Jonathan Griffin
502f037d62 Bug 1149618 - Implement push_permission in Marionette, r=dburns 2015-05-04 09:49:08 -07:00
Andreas Tolfsen
2289af5da8 Bug 1060300: Match Marionette's navigation API docs to reality
r=dhunt

--HG--
extra : rebase_source : 1a2f0edf8df5728bf2d768fc8dc69d045f572021
2015-05-04 11:25:03 +01:00
Andreas Tolfsen
989ed7e48f Bug 1155716: Part 2: Remove HTMLElement#submit from marionette-driver
Also bumps the marionette-driver version to 0.6 and removes submit tests.

r=dburns

--HG--
extra : source : c58c47e280f67a7678890674e4295982fb92e521
2015-04-29 11:32:01 +01:00
Andreas Tolfsen
ece490e01b Bug 1155716: Part 1: Remove submitElement from Marionette
r=dburns

--HG--
extra : source : 520ede785b0967572ca6411e75ce7466886db0f5
2015-04-29 11:31:19 +01:00
Andreas Tolfsen
9be62c99ef Bug 1157255: Use typeof to determine MarionetteObj exports
This makes us not rely on try…catch logic to export MarionetteObj
properties and functions on the sandbox.

The patch also cleans up a few more details on
createExecuteContentSandbox.

r=dburns

--HG--
extra : rebase_source : 920069f09328b57adad36827b4f67a28aedfdb1d
2015-04-28 19:16:46 +01:00
Armen Zambrano Gasparnian
1b93a3ea9d Bug 1159816 - Bump marionette_client to 0.12. DONTBUILD. CLOSED TREE. r=chmanchester 2015-04-29 16:35:33 -04:00
Andreas Tolfsen
dfd24acbdc Bug 1157259: Correct ScriptTimeoutError reference in listener
r=dburns

--HG--
extra : rebase_source : 9119d7d29328468b959adf2cec497448f5902a38
2015-04-28 18:59:07 +01:00
Andreas Tolfsen
27e826ece6 Bug 1157266: Fix error unable to set cookie in listener
r=dburns

--HG--
extra : rebase_source : 799887866c0cb47f5fa6a0c656512609b42a9b3c
2015-04-28 18:53:51 +01:00
Andreas Tolfsen
0db4c225cc Bug 1159232: Avoid use of template string in GeckoDriver#sendAsync
Also avoids it in GeckoDriver#execute.

r=dburns

--HG--
extra : rebase_source : 0f73cedd438590b6489fd6e8df34c9ae27e22e5c
2015-04-28 14:34:55 +01:00
Andreas Tolfsen
135734ed2d Bug 1159238. Generate UUID internally to ContentSender
r=dburns

--HG--
extra : source : e24c86fa5a8c5abb6b51662b0f44b4bab480b1ed
2015-04-28 18:15:08 +01:00
Andreas Tolfsen
89570930a6 Bug 1159219: Make ContentSender a separate module
r=dburns

--HG--
extra : rebase_source : dd217232c478e94673ee416dd1d19ae5f37bce2a
extra : source : a0fa5dabf485fd6860e4dd150158f59da2ca6692
2015-04-28 14:25:37 +01:00
Andreas Tolfsen
34c27181b2 Bug 1157257: Include error's name if it's not a WebDriver error
When native JavaScript errors are thrown because of internal errors,
this will include the Error prototype's name in the message.

This is useful since the WebDriver protocol doesn't allow for arbitrary
JS error marshaling.

r=chmanchester

--HG--
extra : rebase_source : d1bd290b1df1acf6c3f67a7fcd7d1f71b7006477
2015-04-23 14:34:40 +01:00
Andreas Tolfsen
ee63bc61fa Bug 1157253: Port ListenerProxy to use Proxy instead of __noSuchMethod__
r=chmanchester

--HG--
extra : rebase_source : 9a8a3e3528cb665519de1f986c48c67ac99c5445
2015-04-23 16:59:12 +01:00
Andreas Tolfsen
74a53a677c Bug 1158219: Don't set `id' field if undefined when switching frame
When the `frame' argument is None, which it is by default, we were setting
the `id' field of the packet regardless.  This only works because of a
faulty == operator comparison in the server.

r=jgriffin

--HG--
extra : rebase_source : cd490db0c8c18f68d4a91803daa833bc2f08631e
2015-04-24 17:55:22 +01:00
Andreas Tolfsen
24b67d6136 Bug 1157258: Fix null type comparisons in driver.js
r=davehunt

--HG--
extra : rebase_source : a42ce4451d399e8689c503224e21e503ddd0e720
2015-04-24 13:55:52 +01:00
Chris Manchester
0838128b00 Bug 1157725 - Rewrite test_mouse_action.py to be more robust. r=ato
--HG--
extra : transplant_source : %08%05%C8%2Bb%19%99%D9%DC%ECV%3A%BB%87%D1%CDv%09%09-
2015-04-23 22:17:30 -07:00
Andreas Tolfsen
9c89709503 Bug 1158113: Removing two straggling error codes from Marionette
r=davehunt

--HG--
extra : rebase_source : 0ba61719dcfa99e06f34626672cbbac91c69906f
2015-04-24 12:06:43 +01:00
Andreas Tolfsen
5ade32492f Bug 1155658: Rename "illegal argument" error to "invalid argument"
r=chmanchester

--HG--
extra : rebase_source : b49c8bcaa30b470ae372182a83b6085ae94ddb7f
2015-04-17 18:43:05 +01:00
Andreas Tolfsen
cb82383649 Bug 1157665: Add mozrunner dependency to marionette_driver
Also bumps the version to 0.5.

r=davehunt

--HG--
extra : rebase_source : 71e92e750ee4a8a82fd6cb3f5a12a4018d0c1984
2015-04-23 13:11:31 +01:00
Chris Manchester
595b328eb3 Bug 1157823 - Update dependency to reflect that the marionette client requires a more recent mozhttpd. r=ato
--HG--
extra : rebase_source : 78eaacf35f6d42f6996d66b1798dee4b4e8c576f
2015-04-23 11:08:34 -07:00
Chris Manchester
b09cb9f838 Bug 1157261 - Fix typo in reference to curFrame in marionette listener. r=ato
--HG--
extra : rebase_source : 8f002e097376b653d44fed2446f4539fd7865999
2015-04-22 10:22:26 -07:00
Andreas Tolfsen
06c35da2a3 Bug 1154525: Make HTMLElement#location and #size use #rect internally
getElementSize and getElementLocation are getting removed from the
Marionette server (bug 1153911) and this is in preparation for that.

Fortunately getElementRect is backwards compatible and we can extract
the properties we need from that dictionary.

r=chmanchester

--HG--
extra : rebase_source : 8d4d8c005c90f335f4c241e677973807cfca0cb4
2015-04-17 17:02:14 +01:00
Andreas Tolfsen
0a912ae1c7 Bug 945729: Replace error number codes with strings
Brings Marionette closer to compliance with the W3C WebDriver standard
which prescribes that errors should be identified by a string rather
than a magic number.

r=dburns

--HG--
extra : rebase_source : 2bdb28f3c05e56b17cc13ceacbf3167dabe89fd0
extra : source : 2b691bf191db1a83ae489116649602a74e64007a
2015-04-08 19:02:34 +01:00
Andreas Tolfsen
0c357d12a3 Bug 1152682: Correct invalid selector errors in elements.js
r=jgriffin

--HG--
extra : rebase_source : c2e693c393ad93c7f5bdd6a1fb3b29d2ef13d9af
2015-04-20 13:45:59 +01:00
Andreas Tolfsen
f421bdc30c Bug 1154757: Correct unable to set cookie error
r=dburns

--HG--
extra : rebase_source : 2251ee9e992d8ec8fca4ce8a2bf62d28853e9660
2015-04-20 13:53:51 +01:00
Andreas Tolfsen
7c51ddf2e5 Bug 1154681: Use static lookups in errors.py
r=jgraham

--HG--
extra : rebase_source : 722c91dc3060e92f34eb3a6070911ee62343d9ed
2015-04-21 12:26:39 +01:00
Carsten "Tomcat" Book
a2fffe9d30 Backed out changeset 9947bd361636 (bug 945729) for wpt test failures 2015-04-21 16:01:40 +02:00
Chris Manchester
083cf8231a Bug 1083131 - Always remove a profile created by marionette when the runner shuts down. r=ato
--HG--
extra : rebase_source : 80e69db64e682c1e9eeecbb3c3b7e7efda2091ef
2015-04-16 18:04:24 -07:00
Andreas Tolfsen
4916729cb0 Bug 945729: Replace error number codes with strings
Brings Marionette closer to compliance with the W3C WebDriver standard
which prescribes that errors should be identified by a string rather
than a magic number.

r=dburns

--HG--
extra : rebase_source : cde9ecded568fb17c46cd5940ec2241cd4446aaf
extra : source : 2b691bf191db1a83ae489116649602a74e64007a
2015-04-08 19:02:34 +01:00
Andreas Tolfsen
86e4115d5b Bug 1154691: Align Marionette with WebDriver errors
Adds `invalid selector' and `invalid session id' errors to the server,
and aligns the exceptions in the Python client with those in the server.

Some of the exceptions are not in use yet and consequently do not carry
a `code` property.  This is fine because it makes us future-proof when
the server starts using them.

r=dburns

--HG--
extra : source : cc8eb386f147893aaf867797eb9f3c6d8fd0925a
2015-04-15 13:38:01 +01:00
Andreas Tolfsen
ddcb607014 Bug 1153832: New dispatch style framework in Marionette listener
Takes advantage of the new dispatching technique introduced in bug
1107706 on the content side.

The patch introduces the framework to write simpler command handlers
in content space, but does not convert all commands in listener.js to
use this.  This can be done gradually, as both techniques are still
compatible.

r=dburns

--HG--
extra : source : 043a824dd7b749192a8c7ec3f1a8d3ba4d2619d0
2015-04-15 12:18:00 +01:00
Andreas Tolfsen
92c53b47b9 Bug 1155260: Fix base URL override in Marionette runner
Fixes regression from bug 941085, and bumps marionette_client to 0.11.

r=davehunt

--HG--
extra : rebase_source : a38ef00252e3ef08d5b9422946779e182a69a2ac
2015-04-20 11:22:00 +01:00
Carsten "Tomcat" Book
7b850aae63 Backed out changeset 0b28f5ff48a6 (bug 1153832) for suspicion of making dt Asan test fail frequent/permanently
--HG--
extra : rebase_source : ccb49ee30e924bd7e30d997cd4204a1c8da8bdc4
2015-04-20 14:37:12 +02:00
Carsten "Tomcat" Book
e132e2f5f8 Backed out changeset 330f6df11b2f (bug 1154691)
--HG--
extra : rebase_source : 159f38e7ad75e958349fcb7a0260e30d3ccb920f
2015-04-20 14:36:17 +02:00
Andreas Tolfsen
17c3962134 Bug 1154691: Align Marionette with WebDriver errors
Adds `invalid selector' and `invalid session id' errors to the server,
and aligns the exceptions in the Python client with those in the server.

Some of the exceptions are not in use yet and consequently do not carry
a `code` property.  This is fine because it makes us future-proof when
the server starts using them.

r=dburns

--HG--
extra : source : cc8eb386f147893aaf867797eb9f3c6d8fd0925a
2015-04-15 13:38:01 +01:00
Ryan VanderMeulen
ddc7b9bff4 Backed out changeset c7eea3e8f98a (bug 1154691) for Windows w-p-t failures.
CLOSED TREE
2015-04-17 17:55:08 -04:00
Andreas Tolfsen
4c0af02e77 Bug 1154691: Align Marionette with WebDriver errors
Adds `invalid selector' and `invalid session id' errors to the server,
and aligns the exceptions in the Python client with those in the server.

Some of the exceptions are not in use yet and consequently do not carry
a `code` property.  This is fine because it makes us future-proof when
the server starts using them.

r=dburns

--HG--
extra : source : cc8eb386f147893aaf867797eb9f3c6d8fd0925a
2015-04-15 13:38:01 +01:00
Andreas Tolfsen
9338edd7c0 Bug 1153832: New dispatch style framework in Marionette listener
Takes advantage of the new dispatching technique introduced in bug
1107706 on the content side.

The patch introduces the framework to write simpler command handlers
in content space, but does not convert all commands in listener.js to
use this.  This can be done gradually, as both techniques are still
compatible.

r=dburns

--HG--
extra : rebase_source : 9ad8846754b86a1acc225c1a9b77a60530e8703b
extra : source : 043a824dd7b749192a8c7ec3f1a8d3ba4d2619d0
2015-04-15 12:18:00 +01:00
Ryan VanderMeulen
a08d886394 Backed out changeset 5c83a36d9eba (bug 1153832) for Gip(a) failures.
CLOSED TREE
2015-04-16 12:20:48 -04:00
Andreas Tolfsen
9ad39929e4 Bug 1153832: New dispatch style framework in Marionette listener
Takes advantage of the new dispatching technique introduced in bug
1107706 on the content side.

The patch introduces the framework to write simpler command handlers
in content space, but does not convert all commands in listener.js to
use this.  This can be done gradually, as both techniques are still
compatible.

r=dburns

--HG--
extra : rebase_source : 2fac74a40d529f4a9112d4cd1e8d3f0681fd3499
extra : source : 043a824dd7b749192a8c7ec3f1a8d3ba4d2619d0
2015-04-15 12:18:00 +01:00
Carsten "Tomcat" Book
ef43ff7fe0 Backed out changeset cc8eb386f147 (bug 1154691) for b2g test bustage on a CLOSED TREE 2015-04-16 13:47:51 +02:00
Andreas Tolfsen
e3193bd590 Bug 1154691: Align Marionette with WebDriver errors
Adds `invalid selector' and `invalid session id' errors to the server,
and aligns the exceptions in the Python client with those in the server.

Some of the exceptions are not in use yet and consequently do not carry
a `code` property.  This is fine because it makes us future-proof when
the server starts using them.

r=dburns

--HG--
extra : rebase_source : 5a39fe5749190acb2170025586e6bfdd82e5697c
2015-04-15 13:38:01 +01:00
Ryan VanderMeulen
6824492e5c Backed out changeset 043a824dd7b7 (bug 1153832) for mass Mn failure.
CLOSED TREE
2015-04-15 12:58:51 -04:00
Andreas Tolfsen
001f9b3793 Bug 1153832: New dispatch style framework in Marionette listener
Takes advantage of the new dispatching technique introduced in bug
1107706 on the content side.

The patch introduces the framework to write simpler command handlers
in content space, but does not convert all commands in listener.js to
use this.  This can be done gradually, as both techniques are still
compatible.

r=dburns

--HG--
extra : rebase_source : 43ef240735099221cbbddb753eaf9e2802a4de1d
2015-04-15 12:18:00 +01:00
Dave Hunt
2bca6b23e3 Bug 1153795 - Bump marionette_driver to 0.4 and marionette_client to 0.10. r=atolfsen 2015-04-13 15:35:15 +01:00
Andreas Tolfsen
d6f45b6268 Bug 984921: Clean up Marionette navigation tests
Cleans up navigation tests to use assertion routines that give us better
feedback if tests were to fail.

Also adds a test for setting location through executeScript, and a test
for getCurrentUrl returning the URL of the top-level browsing context
when inside an iframe.

r=dburns

--HG--
extra : rebase_source : 1844c906cc436ef378f07342051a44689fedba58
2015-04-11 17:56:53 +01:00
Andreas Tolfsen
9920d6780f Bug 1153240: Fix variable assignment of value in GeckoDriver#multiAction
Bug 1150041 inadvertently fixed a closely related issue.

r=njpark

--HG--
extra : rebase_source : 55b9bb965464c31c7c04b77ae46bc4a82293757c
2015-04-10 15:09:25 +01:00
Andreas Tolfsen
487ab6096d Bug 941085: File uploads support in Marionette
Adds support for W3C WebDriver compatible file uploads, where additional
calls to sendKeys on <input type=file multiple> will append files,
rather than reset the field.

r=dburns

--HG--
extra : source : 93166201fca032157ecb88923a62e8b2e8f9529d
extra : amend_source : a27f709de201063cc510af2f234d45344e90193b
2015-04-02 15:16:00 +01:00
Ryan VanderMeulen
868f030b98 Merge fx-team to m-c. a=merge 2015-04-09 22:57:56 -04:00
Chris Manchester
d5281119b7 Bug 1149843 - Modify test_window_handles not to hit the network. r=dburns
--HG--
extra : transplant_source : %87%85a%3C%A58%97V%FB%9C%DE%3C%12%0FF%C4%00%FD%F68
2015-04-02 14:56:00 -07:00
Andreas Tolfsen
20e9c864e8 Bug 1152425: Fix unicode string lookup in Marionette client
r=jgraham

--HG--
extra : rebase_source : 56560133ebe51e82d47923dd69a993644da09528
extra : source : 2981a890a0365f7ff519362400c893dd2c0ba51d
2015-04-08 18:39:53 +01:00
Ryan VanderMeulen
016b169721 Merge m-c to b2g-inbound. a=merge 2015-04-09 12:08:54 -04:00
Thomas Zimmermann
5b0221d66d Bug 1146355: Move Bluetooth legacy interface into sub-directory bluetooth1/, r=joliu
--HG--
rename : dom/bluetooth/BluetoothAdapter.cpp => dom/bluetooth/bluetooth1/BluetoothAdapter.cpp
rename : dom/bluetooth/BluetoothAdapter.h => dom/bluetooth/bluetooth1/BluetoothAdapter.h
rename : dom/bluetooth/BluetoothCommon.h => dom/bluetooth/bluetooth1/BluetoothCommon.h
rename : dom/bluetooth/BluetoothDevice.cpp => dom/bluetooth/bluetooth1/BluetoothDevice.cpp
rename : dom/bluetooth/BluetoothDevice.h => dom/bluetooth/bluetooth1/BluetoothDevice.h
rename : dom/bluetooth/BluetoothHfpManagerBase.h => dom/bluetooth/bluetooth1/BluetoothHfpManagerBase.h
rename : dom/bluetooth/BluetoothHidManager.cpp => dom/bluetooth/bluetooth1/BluetoothHidManager.cpp
rename : dom/bluetooth/BluetoothHidManager.h => dom/bluetooth/bluetooth1/BluetoothHidManager.h
rename : dom/bluetooth/BluetoothInterface.cpp => dom/bluetooth/bluetooth1/BluetoothInterface.cpp
rename : dom/bluetooth/BluetoothInterface.h => dom/bluetooth/bluetooth1/BluetoothInterface.h
rename : dom/bluetooth/BluetoothInterfaceHelpers.cpp => dom/bluetooth/bluetooth1/BluetoothInterfaceHelpers.cpp
rename : dom/bluetooth/BluetoothInterfaceHelpers.h => dom/bluetooth/bluetooth1/BluetoothInterfaceHelpers.h
rename : dom/bluetooth/BluetoothManager.cpp => dom/bluetooth/bluetooth1/BluetoothManager.cpp
rename : dom/bluetooth/BluetoothManager.h => dom/bluetooth/bluetooth1/BluetoothManager.h
rename : dom/bluetooth/BluetoothProfileController.cpp => dom/bluetooth/bluetooth1/BluetoothProfileController.cpp
rename : dom/bluetooth/BluetoothProfileController.h => dom/bluetooth/bluetooth1/BluetoothProfileController.h
rename : dom/bluetooth/BluetoothProfileManagerBase.h => dom/bluetooth/bluetooth1/BluetoothProfileManagerBase.h
rename : dom/bluetooth/BluetoothPropertyContainer.cpp => dom/bluetooth/bluetooth1/BluetoothPropertyContainer.cpp
rename : dom/bluetooth/BluetoothPropertyContainer.h => dom/bluetooth/bluetooth1/BluetoothPropertyContainer.h
rename : dom/bluetooth/BluetoothReplyRunnable.cpp => dom/bluetooth/bluetooth1/BluetoothReplyRunnable.cpp
rename : dom/bluetooth/BluetoothReplyRunnable.h => dom/bluetooth/bluetooth1/BluetoothReplyRunnable.h
rename : dom/bluetooth/BluetoothRilListener.cpp => dom/bluetooth/bluetooth1/BluetoothRilListener.cpp
rename : dom/bluetooth/BluetoothRilListener.h => dom/bluetooth/bluetooth1/BluetoothRilListener.h
rename : dom/bluetooth/BluetoothService.cpp => dom/bluetooth/bluetooth1/BluetoothService.cpp
rename : dom/bluetooth/BluetoothService.h => dom/bluetooth/bluetooth1/BluetoothService.h
rename : dom/bluetooth/BluetoothSocketObserver.h => dom/bluetooth/bluetooth1/BluetoothSocketObserver.h
rename : dom/bluetooth/BluetoothUtils.cpp => dom/bluetooth/bluetooth1/BluetoothUtils.cpp
rename : dom/bluetooth/BluetoothUtils.h => dom/bluetooth/bluetooth1/BluetoothUtils.h
rename : dom/bluetooth/BluetoothUuid.cpp => dom/bluetooth/bluetooth1/BluetoothUuid.cpp
rename : dom/bluetooth/BluetoothUuid.h => dom/bluetooth/bluetooth1/BluetoothUuid.h
rename : dom/bluetooth/ObexBase.cpp => dom/bluetooth/bluetooth1/ObexBase.cpp
rename : dom/bluetooth/ObexBase.h => dom/bluetooth/bluetooth1/ObexBase.h
rename : dom/bluetooth/ipc/BluetoothChild.cpp => dom/bluetooth/bluetooth1/ipc/BluetoothChild.cpp
rename : dom/bluetooth/ipc/BluetoothChild.h => dom/bluetooth/bluetooth1/ipc/BluetoothChild.h
rename : dom/bluetooth/ipc/BluetoothMessageUtils.h => dom/bluetooth/bluetooth1/ipc/BluetoothMessageUtils.h
rename : dom/bluetooth/ipc/BluetoothParent.cpp => dom/bluetooth/bluetooth1/ipc/BluetoothParent.cpp
rename : dom/bluetooth/ipc/BluetoothParent.h => dom/bluetooth/bluetooth1/ipc/BluetoothParent.h
rename : dom/bluetooth/ipc/BluetoothServiceChildProcess.cpp => dom/bluetooth/bluetooth1/ipc/BluetoothServiceChildProcess.cpp
rename : dom/bluetooth/ipc/BluetoothServiceChildProcess.h => dom/bluetooth/bluetooth1/ipc/BluetoothServiceChildProcess.h
rename : dom/bluetooth/ipc/BluetoothTypes.ipdlh => dom/bluetooth/bluetooth1/ipc/BluetoothTypes.ipdlh
rename : dom/bluetooth/ipc/PBluetooth.ipdl => dom/bluetooth/bluetooth1/ipc/PBluetooth.ipdl
rename : dom/bluetooth/ipc/PBluetoothRequest.ipdl => dom/bluetooth/bluetooth1/ipc/PBluetoothRequest.ipdl
rename : dom/bluetooth/tests/marionette/head.js => dom/bluetooth/bluetooth1/tests/marionette/head.js
rename : dom/bluetooth/tests/marionette/manifest.ini => dom/bluetooth/bluetooth1/tests/marionette/manifest.ini
rename : dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_discovery.js => dom/bluetooth/bluetooth1/tests/marionette/test_dom_BluetoothAdapter_discovery.js
rename : dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_getters.js => dom/bluetooth/bluetooth1/tests/marionette/test_dom_BluetoothAdapter_getters.js
rename : dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_pair.js => dom/bluetooth/bluetooth1/tests/marionette/test_dom_BluetoothAdapter_pair.js
rename : dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_setters.js => dom/bluetooth/bluetooth1/tests/marionette/test_dom_BluetoothAdapter_setters.js
rename : dom/bluetooth/tests/marionette/test_dom_BluetoothManager_adapteradded.js => dom/bluetooth/bluetooth1/tests/marionette/test_dom_BluetoothManager_adapteradded.js
rename : dom/bluetooth/tests/marionette/test_dom_BluetoothManager_enabled.js => dom/bluetooth/bluetooth1/tests/marionette/test_dom_BluetoothManager_enabled.js
2015-04-09 15:57:40 +02:00
Chris Manchester
13b03dc9a9 Bug 1150170 - Avoid toSource and string templates when logging requests and responses in marionette to avoid high memory use. r=ato
CLOSED TREE

--HG--
extra : rebase_source : 9aafdcb27b897946f8af1abe5a3a9ce1df2321dd
2015-04-07 10:24:09 -07:00
Andreas Tolfsen
99a1fa9768 Bug 1150522: Add WebDriver string statuses to Marionette client
Adds string based statuses as defined by the W3C WebDriver protocol
to the Marionette Python client.  Importantly, it does not remove the
ability to look up errors by their Selenium protocol number for backwards
compatibility reasons.

r=dburns

--HG--
extra : rebase_source : 792e85d01ed6513370f448762c1c5bf8f13842a4
2015-04-02 20:07:20 +01:00
Ryan VanderMeulen
d2e5e61478 Backed out changeset 93166201fca0 (bug 941085) for Gip failures.
CLOSED TREE
2015-04-02 12:05:56 -04:00
Andreas Tolfsen
622170b4e6 Bug 941085: File uploads support in Marionette
Adds support for W3C WebDriver compatible file uploads, where additional
calls to sendKeys on <input type=file multiple> will append files,
rather than reset the field.

r=dburns

--HG--
extra : amend_source : 093abcf640631778cda25cf800077dae5fa9b5f4
2015-04-02 15:16:00 +01:00
Andreas Tolfsen
6a1aeb9960 Backed out changeset 0115bb737f64 (bug 941085)
Rebase went wrong.
2015-04-02 15:04:58 +01:00
Andreas Tolfsen
f785cf403f Bug 941085: File uploads support in Marionette
Adds support for W3C WebDriver compatible file uploads, where additional
calls to sendKeys on <input type=file multiple> will append files,
rather than reset the field.

r=dburns

--HG--
extra : rebase_source : 5f058fd1fcf767a5b45ebb6ba4c32994eb52212e
2015-03-31 16:45:27 +01:00
David Burns
5abff40de2 Bug 1082773: Disable Marionette Chrome Tests on B2G; r=me
--HG--
extra : rebase_source : 43dd67dcf4cbc958590f655cd34eb5a97449059e
2015-04-02 14:44:17 +01:00
Eric Rahm
6aaa172f43 Bug 1150247 - Check if value is function before binding. r=ato
Rather than attempting to bind non-functions and catching the exception this
explicitly checks if it is a function. This helps reduce memory consumption
needed for the exception stack traces. Realistically that will go away when GC
is run, but it throws off memory measurments prior to that.
2015-04-01 18:58:21 -07:00
Andrew Halberstadt
766127a915 Bug 1150050 - Bump manifestparser to v1.1 and marionette-client to v0.9.3 to pick up tagging feature, r=AutomatedTester
--HG--
extra : rebase_source : 0f1f34a19aae8b031439bb0dbe533875e10c218f
2015-04-01 11:22:48 -04:00