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

9 Коммитов

Автор SHA1 Сообщение Дата
Andreas Tolfsen e5010028a2 Bug 1313865 - Centralise common Marionette assertions; r=automatedtester,maja_zf
Many tests that result in throwing errors, amongst those many type-
and platform checks, are repeated throughout the Marionette code base.
This patch centralises the most common of these, typically reducing
consumer calls from three to one line.

Example usage:

	assert.defined(cmd.parameters.value);
	assert.postiveInteger(cmd.parameters.value,
	    error.pprint`Expected 'value' (${value}) to be a signed integer`);
	// InvalidArgumentError: Expected 'value' ([object Object] {"foo": "bar"}) to be a positive integer

MozReview-Commit-ID: BHOaDazeGer

--HG--
extra : rebase_source : 1d35c10e29d4fd536829e9714ae65bcd14ad21f8
2016-10-31 22:00:21 +00:00
Maja Frydrychowicz 6da8812934 Bug 1303234 - Implement extracting action chain from a request; r=ato,jgraham
MozReview-Commit-ID: JxNoGZog1om

--HG--
rename : testing/marionette/action.js => testing/marionette/legacyaction.js
extra : rebase_source : 91e9b1915e18362765804e3767dfb834394a35af
2016-10-26 13:04:48 -04:00
Andreas Tolfsen 175975b04b Bug 1280300 - Support navigation by fragment; r=automatedtester
Adds support for navigating to a fragment on the currenty visible document
without waiting for a DOM event that the document has been fully loaded.

This addresses https://github.com/mozilla/geckodriver/issues/150.

MozReview-Commit-ID: 7uiPT5cjGQE

--HG--
extra : rebase_source : f9152a6623a25c17e10dc3bc6552b8e635c21317
2016-07-19 18:47:33 +01:00
Andreas Tolfsen 05e86fe521 Bug 1253244 - Correct x,y offset type checks and add tests; r=automatedtester
The xOffset and yOffset arguments to element.coordinates previously
checked loose falsiness.  If a number <= 0 would be given as an argument,
they would not be used and it would return the centre of the element.

This change adds more checks, documentation, and tests.

MozReview-Commit-ID: KmsiVFipzWx

--HG--
extra : rebase_source : 96e6c8c127071356fec029f5eaa4254ae60930b3
2016-03-04 15:34:28 +00:00
Andreas Tolfsen d0bbe7fc14 Bug 1240789 - Remove head+tail in Marionette xpcshell manifest; r=automatedtester
Was originally there to work around a bug in the B2G on-device test
runner.  Can now safely be removed after bug 1240723 was landed.

MozReview-Commit-ID: EZGfvYcP9ER

--HG--
extra : rebase_source : c2dc099b127b4bbd5988c386d15de72a3ab0bf40
2016-02-06 17:14:32 +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 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
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 4e0b40e6fa Bug 1239373 - Infrastructure for Marionette xpcshell unit tests; r=automatedtester
--HG--
extra : rebase_source : d091633ce34f4847967f2eb517a96d06091179ee
2016-01-18 18:38:08 +00:00