Commit Graph

1415 Commits

Author SHA1 Message Date
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