Commit Graph

1527 Commits

Author SHA1 Message Date
Shane Caraveo
5f98155cad Bug 1037483 adopt microformats-shiv for microformats v2 support, r=tantek 2016-01-29 10:58:45 -08:00
Andreas Tolfsen
257cb763cb Bug 1140542 - Support capturing secondary chrome windows; r=automatedtester
A <window> object may not exist in popup windows that are spawned from
a <window>.  document.documentElement is equivalent to <window> in
the case of the primary window, but lets us support the ChromeWindow's
document when it isn't.

--HG--
extra : commitid : GVJfQ7yGGdV
extra : rebase_source : af351c5bd91eb865c657a2f45479c5b360c50fc6
extra : amend_source : f3ddef37a7f663fcf4f049f13eac3cf94df2ad29
2016-01-27 16:43:33 +00:00
Andreas Tolfsen
d34dde504d Bug 1242459 - Replace dump() with logger in actions.js; r=automatedtester
Turns testing/marionette/actions.js into a JS module.

--HG--
extra : commitid : 9H79Czlo1bR
extra : rebase_source : 361ba48bf1e25aff74f919b3f8d6999e3ef76209
extra : amend_source : e3d437eff976a4fd1381d5048e160c0359763d7d
2016-01-27 19:33:48 +00:00
Andreas Tolfsen
b6a46365b2 Bug 1240601 - Set timeout on socket in transport.wait_for_port; r=automatedtester
If the client is able to connect but the server never sends any data,
the socket should time out in order for the function not to hang forever.

That said, polling for ports like this is inherently racy and we should
instead specify and bind what port we wish Marionette to start on in
the future.

--HG--
extra : commitid : H3MeLBVOCNT
extra : rebase_source : 45b4727a9b12541990f525795007a8b0502b1170
extra : amend_source : 94fc48fd23cb6223147ce204c3576e74bb95e80b
2016-01-18 22:12:55 +00:00
Carsten "Tomcat" Book
b9e929e1a7 merge mozilla-inbound to mozilla-central a=merge 2016-01-27 11:59:49 +01:00
Mike Conley
e1a362aa26 Bug 1233497 - Allow Marionette tests to use CPOWs. r=ato
--HG--
extra : commitid : 9ygRoCbGotC
extra : rebase_source : 19ca5fe8111f7ec6d55a864d03974b5aac92b093
2016-01-08 15:10:22 -05:00
Wes Kocher
5db3056dd4 Backed out 2 changesets (bug 1037483) for many ESLint failures
Backed out changeset de364648e24c (bug 1037483)
Backed out changeset c697940b6f5c (bug 1037483)

--HG--
extra : commitid : Dze5NbyixG6
2016-01-26 11:26:23 -08:00
Shane Caraveo
71d96c6ddf Bug 1037483 adopt microformats-shiv for microformats v2 support, r=tantek 2016-01-26 10:52:59 -08:00
Andreas Tolfsen
c2d519ab45 Bug 1153828 - Merge message listeners in AsyncContentSender; r=automatedtester
This change reduces the number of content frame script message senders
from three to one by imposing a message format.

--HG--
extra : rebase_source : 2e2940eb7d095e22a60d3e6f3af44446bb425c93
2016-01-21 19:27:23 +00:00
aleth
1d5ae895ee Bug 1242081 - Disable marionette xpcshell tests for Thunderbird. r=ato
--HG--
extra : rebase_source : db0dfd23dd9c0ab442f076fe3c78600b3fde8296
extra : amend_source : 864f43415fabb66b0393e07389328ad3c7c91585
2016-01-23 01:12:14 +01:00
Andreas Tolfsen
b4cc1449e1 Bug 1205687 - Add Mn test flavour and include tests in build manifests; r=jgraham
--HG--
extra : rebase_source : 3757f860eefed15a06d1acd7bd0b553b306151a6
2015-09-18 14:53:37 +01:00
David Burns
62c841c129 Bug 1241067: Handle Invalid Selector values when finding elements r=ato
This allows us to now handle errors and return the appropriate
errors to the clients

--HG--
extra : commitid : K6Kqatm97sY
extra : rebase_source : 2f6ceefc910be77e6d88ed300d29650b41a171d9
extra : histedit_source : e636d2ca4b337140d54caba5a240ade7b7d8a01d
2016-01-21 21:07:36 +00:00
Yura Zenevich
db8e79cd74 Bug 1241562 - replacing logger error with debug when logging accessibility issues. r=ato
---
 testing/marionette/accessibility.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--HG--
extra : rebase_source : 3ff367252484a77e92d705711222e5d575e683e9
2016-01-21 13:34:33 -05:00
Andreas Tolfsen
578011d7a7 Bug 1239373 - Tests for testing/marionette/message.js; r=automatedtester
--HG--
extra : rebase_source : 0c1907b6558e079fd4b666e461b55ba2d6d3ed72
extra : source : cb00c71c2123fa2ee48694f4cf276ea8c3902e9c
2016-01-18 18:39:21 +00:00
Andreas Tolfsen
c2c7e6b203 Bug 1239373 - Tests for testing/marionette/error.js; r=automatedtester
--HG--
extra : rebase_source : d401edd95af2ef9225c441ae2e2c2dc117b04c98
extra : source : bc5d1c47c913ae40af10e623f364ee4fa91efbac
2016-01-18 18:38:47 +00:00
Andreas Tolfsen
a34ac72c2f Bug 1239373 - Infrastructure for Marionette xpcshell unit tests; r=automatedtester
--HG--
extra : rebase_source : 97b6c8d4bfb54969fb36de77218c481e40f3f306
extra : source : 7c72e79b74a7d4fb3b33f3b5df68bb544fbd8aee
2016-01-18 18:38:08 +00:00
Sebastian Hengst
e8820e007b Backed out changeset e1480e6b2451 (bug 1241067) for failing Marionette tests. r=test-failure 2016-01-21 19:10:52 +01:00
David Burns
6682722a3e Bug 1241067: Change string concats to use string templating. r=ato
This standardises the way we generate strings in element.js

--HG--
extra : rebase_source : e99d863cdd1e912b20d27b5dcdfc962e74d8fae0
2016-01-21 09:40:46 +00:00
David Burns
5b18d8ad8c Bug 1241067: Handle Invalid Selector values when finding elements r=ato
This allows us to now handle errors and return the appropriate
errors to the clients

--HG--
extra : rebase_source : 948dc82a6d36d97b69ef2f0ef43b8390c35616aa
2016-01-21 15:49:40 +00:00
Andreas Tolfsen
706c27ecab Bug 1240576 - Use Preferences.jsm throughout Marionette; r=automatedtester
A distinct advantage is that try...catch statements are no longer used
to control the flow of code.

--HG--
extra : rebase_source : e3dcadcf9fdfcfe9d227b571b5a830437428762c
extra : source : 2b6d148fd941363e4580137e5d6efc0eebdaf7bd
2016-01-18 22:05:30 +00:00
Shruti Jasoria
54c615a386 Bug 1097676 - Create a convenience decorator for marionette.using_context(), r=ato
--HG--
extra : commitid : DQBW9VRrG7p
extra : rebase_source : 08a6f59d0ee5f31d6610531775aef85416e77154
2016-01-20 11:34:50 -05:00
Andreas Tolfsen
d251a645fd Bug 1240610 - Align socket_timeout with Python's socket interface; r=automatedtester
When socket.settimeout(None) is set in Python's standard library this
is meant to be equivalent to disabling timeouts on socket operations.
marionette.transport should respect this.

This change set unbreaks the use of the --jdebugger flag to `./mach
marionette-test'.

--HG--
extra : rebase_source : a2b72fd1e40142cbae5387193ea828348c8eee5c
2016-01-19 14:44:54 +00:00
Andreas Tolfsen
5cafccde88 Bug 1240751 - Annotate bug component in testing/marionette; r=automatedtester
--HG--
extra : rebase_source : 718156a49591330db69ae2ca8b78683ee36b815a
extra : source : bfcb339fc342cd90797a113b8770175e0738c27d
2016-01-19 16:05:43 +00:00
Wes Kocher
2a163a42fe Backed out changeset f3011bfcf124 (bug 1240576) for b2g xpcshell failures CLOSED TREE
--HG--
extra : commitid : F5140xAcYUE
2016-01-19 18:26:54 -08:00
Wes Kocher
778d1f2990 Backed out changeset da8006976f16 (bug 1240751) for b2g xpcshell failures CLOSED TREE
--HG--
extra : commitid : 8mZzMmZGGzm
2016-01-19 18:26:50 -08:00
Wes Kocher
838731edeb Backed out changeset 481a3c76e313 (bug 1240610) for b2g xpcshell failures CLOSED TREE
--HG--
extra : commitid : 2eLBldrBXT0
2016-01-19 18:26:45 -08:00
Wes Kocher
bc33ad8f90 Backed out changeset 2ee5142ae164 (bug 1240601) for b2g xpcshell failures CLOSED TREE
--HG--
extra : commitid : 9N6B6dhvlXB
2016-01-19 18:26:42 -08:00
Andreas Tolfsen
bf068f2e6e Bug 1240601 - Set timeout on socket in transport.wait_for_port; r=automatedtester
If the client is able to connect but the server never sends any data,
the socket should time out in order for the function not to hang forever.

That said, polling for ports like this is inherently racy and we should
instead specify and bind what port we wish Marionette to start on in
the future.

--HG--
extra : rebase_source : eb2339c4e70fcc410d8d2a83c93894050ce57001
2016-01-18 22:12:55 +00:00
Andreas Tolfsen
c3313eb1e3 Bug 1240610 - Align socket_timeout with Python's socket interface; r=automatedtester
When socket.settimeout(None) is set in Python's standard library this
is meant to be equivalent to disabling timeouts on socket operations.
marionette.transport should respect this.

This change set unbreaks the use of the --jdebugger flag to `./mach
marionette-test'.

--HG--
extra : rebase_source : 8b3babda46fb0d82345f36b854c1dee2c9e7a05c
2016-01-19 14:44:54 +00:00
Andreas Tolfsen
b231178f36 Bug 1240751 - Annotate bug component in testing/marionette; r=automatedtester
--HG--
extra : rebase_source : 30b8c7357a53d461f7c32f87f6492131c5afc65f
2016-01-19 16:05:43 +00:00
Andreas Tolfsen
f9e4c2678a Bug 1240576 - Use Preferences.jsm throughout Marionette; r=automatedtester
A distinct advantage is that try...catch statements are no longer used
to control the flow of code.

--HG--
extra : rebase_source : 402890020719b04245aa7c601f52752cb43c0666
2016-01-18 22:05:30 +00:00
Maja Frydrychowicz
850ead9f6c Bug 1238996 - Release marionette-driver 1.2, marionette-transport 1.1, and marionette-client 2.1; r=automatedtester
--HG--
extra : commitid : BGIUjwdJlfB
extra : rebase_source : 7238e74d234c4c16c230a65e8327c0e14203dd9e
extra : histedit_source : 5f7e65740d030d2fabf5dc0d0940c34c6323a1ff
2016-01-14 10:21:50 -05:00
Andrew Halberstadt
c6253e4e20 Bug 1239330 - Support AddonManager.installTemporaryAddon() in marionette_driver.addons, r=ato
--HG--
rename : testing/marionette/client/marionette/tests/unit/mn-restartless.xpi => testing/marionette/client/marionette/tests/unit/mn-restartless-unsigned.xpi
extra : rebase_source : a4ba2b7dfb756351a47d1115b9ae5f06da2a86ac
2016-01-13 10:37:00 -05:00
Andreas Tolfsen
7b82c6d1d3 Bug 1240550 - Make fnName, file, and line optional arguments; r=automatedtester
Previously fnName and line was tested as the entry requirement for
printing the filename to the trace information.  Testing line here was
premature since it is meant to be an optional argument.

This patch rectifies this behaviour by testing for each of the optional
arguments sequentially.  This means the file argument is required to print
the line, and the fnName argument is required to print any of those two.

--HG--
extra : rebase_source : 484be6c8e09c8d4c5e6ce25e12ffc522d8111963
2016-01-18 18:55:52 +00:00
Nigel Babu
e806014c5e Backed out 3 changesets (bug 1239373) for xpcshell bustage on emulator
Backed out changeset 308b5e2bb5df (bug 1239373)
Backed out changeset 783077fc10a2 (bug 1239373)
Backed out changeset 32e6e21daeda (bug 1239373)

--HG--
extra : commitid : FRAHnToBmu7
2016-01-19 13:16:37 +05:30
Andreas Tolfsen
c80cd8df4b Bug 1240182 - Use Log.Level.Debug for logging accepted and closed sockets; r=automatedtester
--HG--
extra : commitid : 4e9BJou6S9R
extra : amend_source : 57ac9a1373c2e2d9c971139ac8c6c5d4e346e4f8
2016-01-18 19:09:31 +00:00
Nigel Babu
6bba0d425e Backed out changeset 8ca79644b089 (bug 1240182) for xpcshell bustage on b2g
--HG--
extra : commitid : LoSqw9LOMMi
2016-01-19 10:49:12 +05:30
Phil Ringnalda
fd6a59b7d0 Back out changeset 084c55b0bd3d (bug 1240550) for test_error.js failures 2016-01-18 17:33:30 -08:00
Andreas Tolfsen
2ed19eb03c Bug 1240182 - Use Log.Level.Debug for logging accepted and closed sockets; r=automatedtester
--HG--
extra : rebase_source : 52422526babd6b101a0b4395ce70419a6c1f7ee1
2016-01-18 19:09:31 +00:00
Andreas Tolfsen
ef1b184fb1 Bug 1240550 - Make fnName, file, and line optional arguments; r=automatedtester
Previously fnName and line was tested as the entry requirement for
printing the filename to the trace information.  Testing line here was
premature since it is meant to be an optional argument.

This patch rectifies this behaviour by testing for each of the optional
arguments sequentially.  This means the file argument is required to print
the line, and the fnName argument is required to print any of those two.

--HG--
extra : rebase_source : d6490c7a8c393fdad2a4d008db82bdf0f1010175
2016-01-18 18:55:52 +00:00
Andreas Tolfsen
32c9e1797b Bug 1239373 - Tests for testing/marionette/message.js; r=automatedtester
--HG--
extra : rebase_source : deb18863725dcafd002061713467ff188f1d1aeb
2016-01-18 18:39:21 +00:00
Andreas Tolfsen
3e6f2492e0 Bug 1239373 - Tests for testing/marionette/error.js; r=automatedtester
--HG--
extra : rebase_source : 123663c1e833a945b677b248dce08118445b6b2d
2016-01-18 18:38:47 +00:00
Andreas Tolfsen
4e0b40e6fa Bug 1239373 - Infrastructure for Marionette xpcshell unit tests; r=automatedtester
--HG--
extra : rebase_source : d091633ce34f4847967f2eb517a96d06091179ee
2016-01-18 18:38:08 +00:00
Yura Zenevich
5132ceb11b Bug 1238744 - centralizing interactions into its own file. r=ato 2016-01-17 12:22:22 -05:00
Henrik Skupin
2523993db3 Bug 1237179 - Add mach command to run firefox-ui-tests from the source directory. r=gps 2016-01-15 19:38:31 +01:00
Andreas Tolfsen
4e12ea70a2 Bug 1204504 - Error on invalid selector; r=automatedtester
Thanks to Alexei Barantsev for reporting.

--HG--
extra : rebase_source : d7af2c1e857dce784bd199b2e27cd6f35604303f
2015-09-17 12:31:39 +01:00
Shaif Chowdhury
c13a8ae6ec Bug 1198797 - Centralise creation of UUIDs in Marionette; r=ato
--HG--
extra : commitid : Ea8vtP8SvRy
extra : rebase_source : e08e8708ea9f3f3de5bbee56ac7809efcf924e52
2016-01-14 14:25:46 +00:00
David Burns
0a584993f6 Bug 1239307: Marionette to click on centre first client rect r=ato
Updating Marionette to click on the centre of the first client rect instead of
clicking on the centre of the bounding rect. This allows us to click on multiline
links and other items where where are mutliple DOMRects associated with
an element.

--HG--
extra : commitid : LdAoye46nTf
extra : rebase_source : d70743027886996dbea8e5cb33b4c0cdf81114b0
extra : histedit_source : 5ff0b5e7a247c810a7ff21ecbbbb714371871280
2016-01-13 14:24:48 +00:00
Andreas Tolfsen
e5a189497f Bug 1239371 - Consider state of boolean values for marionette.logging pref; r=automatedtester
The patch for bug 1239363 treated the marionette.logging preference as
a defined/undefined state, and didn't look specifically at the state of
the variable itself.

This meant that if it was set to false, logging would still be enabled.
As this was not the original behaviour were adding backwards compatibility
for, this patch corrects this problem by making false equivalent to the
default (Log.Level.Info).

--HG--
extra : rebase_source : be0e3403c62934c1b6686af409a2e2a0eac2f33d
2016-01-13 18:47:58 +00:00
Andreas Tolfsen
8f05bdaa88 Bug 1239363 - Accept non-string types for marionette.logging pref; r=automatedtester
The marionette.logging preference used to have a boolean type.
To maintain backwards compatibility with earlier clients we keep accepting
boolean types as input.

Previously setting it to true meant you wanted all the logs, and this
change respects that.

--HG--
extra : rebase_source : 5bde568cbb310fd4d2ef8b3f87fce00990d0f05a
2016-01-13 17:14:49 +00:00