Commit Graph

1539 Commits

Author SHA1 Message Date
Yura Zenevich
ea91590b51 Bug 1244837 - only performing multiple attempts to retrieve an accessible object iff raisesAccessibilityExceptions capability is set to true. r=ato 2016-02-04 10:03:08 -05:00
Wes Kocher
aaf89c475e Backed out 3 changesets (bug 1231784) for breaking 10.10 opt jetpack tests
Backed out changeset 653df21ca861 (bug 1231784)
Backed out changeset 0aac20bc3619 (bug 1231784)
Backed out changeset edcbd7c0aa36 (bug 1231784)

--HG--
rename : testing/mochitest/start_b2g.js => testing/mochitest/b2g_start_script.js
extra : commitid : DLurSs6PJ1G
2016-02-03 17:38:12 -08:00
Andrew Halberstadt
ae410fb5a9 Bug 1231784 - Install specialpowers and mochikit extensions at runtime via AddonManager.loadTemporaryAddon(), r=jgriffin
--HG--
rename : testing/mochitest/b2g_start_script.js => testing/mochitest/start_b2g.js
extra : commitid : CrUflHO8tRa
extra : rebase_source : 0a041c36b59c79c1bea755b22fe07017cb3d0aa5
extra : amend_source : 1dcd8ae7d74b3397e965672b6dc05d431ab4a916
2016-01-25 09:55:57 -05:00
Andreas Tolfsen
d1342542d8 Bug 1239987 - Change testing/marionette/client to use marionette.transport; r=automatedtester
--HG--
extra : commitid : DpikfT1Uct3
extra : rebase_source : 44013b5baa5485fddd0a97c9f65220bfe5608657
extra : histedit_source : 89a96959ebe7e01f22dbb9f1e2832392bb20ea47
2016-01-30 08:54:45 +00:00
Andreas Tolfsen
2d59b0d536 Bug 1239987 - Merge marionette-transport into marionette-driver; r=automatedtester
--HG--
rename : testing/marionette/transport/marionette_transport/transport.py => testing/marionette/driver/marionette_driver/transport.py
extra : commitid : Ewsa9nJzsLj
extra : rebase_source : 6b43227f6b534911419e91addb9880d47ac84b8b
extra : histedit_source : 1a6633bb60d86192fe28f46283ab3fda74db7cd0
2016-01-30 08:53:51 +00:00
Peter Van der Beken
46af3ae4ab Bug 1027734 - Convert mozPay to WebIDL. r=bzbarsky.
--HG--
rename : dom/payment/interfaces/nsINavigatorPayment.idl => dom/payment/interfaces/nsIPaymentContentHelperService.idl
rename : testing/specialpowers/content/MockPaymentsUIGlue.jsm => dom/payment/tests/mochitest/MockPaymentsUIChromeScript.js
extra : rebase_source : 638fdf45b6a13ceee98c5e066505d8858abbfd3d
2016-01-26 18:38:03 +01:00
Phil Ringnalda
985ff5df04 Merge m-i to m-c, a=merge 2016-01-30 09:28:35 -08:00
Andreas Tolfsen
b6fcf96be2 Bug 1243704 - Serialise errors sent over IPC; r=automatedtester
This fixes an instance of passing an Error prototype over the message
manager as a CPOW.  We solve this by marshaling the error, which is
now done automatically by the new AsyncMessageChannel.  It allows us to
create an (almost) transparent promise-based interface between chrome-
and content contexts.

The patch also makes AsyncMessageChannel reusable on both sides of the
message listener, but it's currently not used at its maximum potential
because of the way the listener is architected.

--HG--
extra : commitid : EQd5E4Digdv
extra : rebase_source : 8e0c36960759d25c73bbbc0f4f0bcb453c1028f4
extra : amend_source : 6bb6a76a8b30a5524639f8236291980b16402e6a
2016-01-29 12:57:46 +00:00
Wes Kocher
86864105dc Merge m-c to fx-team, a=merge
--HG--
extra : commitid : 7MLK0J5XhL0
2016-01-29 13:44:12 -08:00
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
David Burns
347b912376 Bug 1243739 - Bump versions of marionette-driver, marionette-client and marionette-transport. r=ato
--HG--
extra : commitid : E3wevriCTn5
extra : rebase_source : e8a8622eb05571df9b7b8b97f05b62e41ce031ab
2016-01-29 12:36:40 +00:00
Edgar Chen
49c47f5901 Bug 1244042 - Set actions as a member of this in order to support b2g; r=ato 2016-01-29 15:01:01 +08:00
David Burns
72dd583e34 Bug 1243739: Update marionette-driver dependecy for marionette-transport. r=ato
--HG--
extra : commitid : 56cuOsVDAtq
extra : rebase_source : 76531f0783bb7f1ef0486b477b36667109cf2c2b
2016-01-29 15:10:46 +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