Commit Graph
133 Commits
Author SHA1 Message Date
Peter Major 8145360610 Bug 1402978 - Add cookie domain field to WebDriver:AddCookie r=ato
There were two issues with the previous implementation:
* Domain cookies were created as host only cookies (due to lack of
leading '.' characters)
* The cookie domain included in the Marionette request was completely
ignored, which always resulted in host-only cookies

MozReview-Commit-ID: 2JLQ3vwNMrb
2017-09-29 15:22:50 +01:00
James Graham 58f84ddd62 Bug 1402002 - Update web-platform-tests to revision b88862e6e574c2116f8efea0e982f6776a3c4b22, a=testonly
MozReview-Commit-ID: FlhL7aMvsiY
2017-09-23 15:03:31 +01:00
James Graham f27836d6b4 Bug 1397912 - Split wdspec session creation tests for intermittent timeouts, r=ato
This test was timing out, so split it into firstMatch and alwaysMatch files.

MozReview-Commit-ID: 8E9wZQqdajG
2017-09-21 17:57:49 +01:00
David Burns 192c1dfaed Bug 1392984 - Add Find Elements From Element wdspec tests r=ato
This adds tests for the Find Elements From Element command in
https://w3c.github.io/webdriver/webdriver-spec.html#find-elements-from-element

MozReview-Commit-ID: 5cg8PugzMFT
2017-08-24 12:11:39 +01:00
David Burns c1846fcdb8 Bug 1392984 - Add Find Element From Element wdspec tests r=ato
This adds wdspec tests for Find Element From Element as in
https://w3c.github.io/webdriver/webdriver-spec.html#find-element-from-element

MozReview-Commit-ID: 1a4vRv9wuwr
2017-08-23 22:27:32 +01:00
David Burns aecc630d22 Bug 1392984 - Add Find Elements wdspec tests r=ato
This adds tests for the Find Elements command in
https://w3c.github.io/webdriver/webdriver-spec.html#find-element

MozReview-Commit-ID: G0nC5iKAQSJ
2017-08-23 21:48:39 +01:00
David Burns 981ec3418c Bug 1392984 - Add Find Element wdspec tests r=ato
This adds tests for the Find Element command in
https://w3c.github.io/webdriver/webdriver-spec.html#find-element

MozReview-Commit-ID: Lgezt2pTXcU
2017-08-23 21:30:51 +01:00
Andreas Tolfsen a56390bd0e Bug 1396866 - Disable test_maximize_when_resized_to_max_size. r=automatedtester
This test causes both a failure and an error and we need to investigate
how to reuse the wptrunner session configuration when implicitly starting
a session.

MozReview-Commit-ID: 5k7nfevamZY
2017-09-09 12:22:53 +01:00
Andreas Tolfsen 8e2c900a36 Bug 1396866 - Relax WindowRectResponse typing. r=jgraham
The WindowProxy screenX/screenY/outerWidth/outerHeight fields are
platform-independent longs, meaning the bitness of the system is not
taken into account.  This is defined in WebIDL as "a signed integer type
that has values in the range [−2147483648, 2147483647]".  This can be
represented with an i32 internally.

Additionally, the WebDriver specification says that we should accept
JSON Numbers as input.  This means the input value can be either a float
or an integer.  rustc_serialize handles this very badly and we first
need to extract the input as f64 because this is the most liberal type
(i.e. an integer can be coerced to a float without problem).

We then we cast the number to an i64 which trims off any decimals without
worrying that the number wraps.  We then run bounds checks of an i32
and error if the number will not fit within the set range.

This patch expects the output from Marionette to be conforming.

MozReview-Commit-ID: CVdUZWh2t8X
2017-09-09 12:21:50 +01:00
Andreas Tolfsen fd3596250e Bug 1396866 - Restore window state on maximizing, minimizing, and fullscreening. r=automatedtester
When maximizing the window we must restore it from iconified state or
exit fullscreen first.  Likewise for minimizing the window, we must
exit fullscreen.  For fullscreening the window we need to also restore
the window.

MozReview-Commit-ID: AOQX2cV2C75
2017-09-09 12:20:40 +01:00
James Graham b66557fb77 Bug 1397215 - Update web-platform-tests to revision 7abe12a95a33cf1906182c1e56da37a32effce3f, a=testonly
MozReview-Commit-ID: 7EKrQudqd4D
2017-09-07 12:50:49 +01:00
Andreas Tolfsen 688bc94a1b Bug 1396838 - Remove window state from wdpsec tests. r=jgraham
MozReview-Commit-ID: 7zogEgoABnV
2017-09-05 17:02:41 +01:00
Andreas Tolfsen 5efe92ab00 Bug 1396838 - Set window rect before every test. r=jgraham
There are DOM attributes to query a window's minimized and fullscreen
states, but there is no reliable way to tell if the window is maximized.
To workaround this, we set the window's size before every test to ensure
it transitioned to the normal window state.

MozReview-Commit-ID: DAT0E4rhmjY
2017-09-05 17:01:05 +01:00
Andreas Tolfsen dfea6a730a Bug 1396831 - Update wdclient and wdspec expected error codes. r=jgraham
MozReview-Commit-ID: IwydIfDWRwC
2017-09-05 16:11:17 +01:00
Andreas Tolfsen 5d86342e01 Bug 1349929 - Increase action sequence test timeout. r=maja_zf
MozReview-Commit-ID: Bw0MWCXAwpn
2017-09-04 14:15:58 +01:00
Andreas Tolfsen 5b1ae95fd0 Bug 1392368 - Test restoring window on Set Window Rect exhaustively. r=automatedtester
MozReview-Commit-ID: 9CEDgo4YS2v
2017-08-22 15:20:05 +01:00
Andreas Tolfsen ad344baff7 Bug 1392368 - Improve edge case in-op tests for Set Window Rect. r=automatedtester
Marionette has issues with repositioning/resizing the window when one
of width/height/x/y is the rect's existing value.  This is an edge case
it is worth testing for.

MozReview-Commit-ID: 7E46ly2lIiY
2017-08-22 15:19:38 +01:00
Andreas Tolfsen 7c1b274f87 Bug 1392368 - Test no-op input for Set Window Rect. r=automatedtester
MozReview-Commit-ID: HfvqHtvDUha
2017-08-22 15:17:50 +01:00
Andreas Tolfsen 7b87a29e7b Bug 1392368 - Add floating pointer tests for Set Window Rect. r=automatedtester
Set Window Rect is meant to accept JSON Numbers, which can either be
integers or floats.

MozReview-Commit-ID: 591s7UVoUhM
2017-08-22 15:16:57 +01:00
Andreas Tolfsen 1557612bdc Bug 1392368 - Correct types and bounds checks for Set Window Rect. r=automatedtester
This patch splits types and bounds checks into two tests for clarity
and reduces unnecessary fields for readability.

It also covers a few missing eventualities and edge cases.

MozReview-Commit-ID: GTBw0fZOgwY
2017-08-22 15:16:06 +01:00
Andreas Tolfsen 4c251d0aec Bug 1392368 - Drop unnecessary navigation in user prompt tests. r=automatedtester
The browsing context always has a document.

MozReview-Commit-ID: FU0T2LcUBJq
2017-08-22 15:14:34 +01:00
Andreas Tolfsen 105b0b4eb6 Bug 1392368 - Add missing browsing context test. r=automatedtester
This covers step 1 of the Set Window Rect algorithm.

MozReview-Commit-ID: 5DqDEiiMwXt
2017-08-22 15:14:05 +01:00
Andreas Tolfsen c88349a62b Bug 1392368 - Add boilerplate for missing user prompt tests. r=automatedtester
MozReview-Commit-ID: KSSEG6MJD8m
2017-08-22 15:08:28 +01:00
Andreas Tolfsen eeedbb0f7e Bug 1391691 - Make WebDriver:FullscreenWindow idempotent. r=automatedtester
MozReview-Commit-ID: 4AQlYYNV03f
2017-08-18 18:32:11 +01:00
Andreas Tolfsen 60dd563e86 Bug 1391691 - Make WebDriver:MaximizeWindow idempotent. r=automatedtester
MozReview-Commit-ID: EJ0VQOTWysg
2017-08-18 18:31:42 +01:00
Andreas Tolfsen f3bf5055f2 Bug 1391691 - Make WebDriver:MinimizeWindow idempotent. r=automatedtester
MozReview-Commit-ID: 4XBw0UFfZ1O
2017-08-18 18:30:50 +01:00
Andreas Tolfsen 9455055e0b Bug 1391691 - Skip needless assertion. r=automatedtester
The window rect's state is already tested a few lines down.

MozReview-Commit-ID: BLDufKrl8ey
2017-08-18 18:43:01 +01:00
Andreas Tolfsen 07df98f3c1 Bug 1391691 - Bringing window out of fullscreen does not restore x/y position. r=automatedtester
When we set the window rect to width/height 400, we only want to test
those qualities.

MozReview-Commit-ID: 76qqCOOwjXQ
2017-08-18 18:42:20 +01:00
Andreas Tolfsen eabedcdc51 Bug 1391691 - Restore window state using Set Window Rect. r=automatedtester
Because the Maximize Window, Minimize Window, and Fullscreen Window
commands are now idempotent we will want to use the Set Window Rect to
bring them back to the normal window state.

MozReview-Commit-ID: BxtAJizfti6
2017-08-18 18:33:06 +01:00
Wes Kocher 14df70e770 Backed out 10 changesets (bug 1391691) for wpt failures a=backout
Backed out changeset 666ac679317e (bug 1391691)
Backed out changeset 46f82e1e2cde (bug 1391691)
Backed out changeset 1fd98ace1473 (bug 1391691)
Backed out changeset 5bddbd90ec7c (bug 1391691)
Backed out changeset 4653134d01ef (bug 1391691)
Backed out changeset fd88b612ac2e (bug 1391691)
Backed out changeset 6306abc0b5e9 (bug 1391691)
Backed out changeset 649b0e761c87 (bug 1391691)
Backed out changeset 6c48daaad075 (bug 1391691)
Backed out changeset 17aeed1f6454 (bug 1391691)

MozReview-Commit-ID: 6Cw1QibNQKM
2017-08-21 09:19:10 -07:00
Andreas Tolfsen 21ab15bcf7 Bug 1391691 - Make WebDriver:MaximizeWindow idempotent. r=automatedtester
MozReview-Commit-ID: EJ0VQOTWysg
2017-08-18 18:31:42 +01:00
Andreas Tolfsen 41b97f2493 Bug 1391691 - Make WebDriver:MinimizeWindow idempotent. r=automatedtester
MozReview-Commit-ID: 4XBw0UFfZ1O
2017-08-18 18:30:50 +01:00
Andreas Tolfsen 27e56898ac Bug 1391691 - Skip needless assertion. r=automatedtester
The window rect's state is already tested a few lines down.

MozReview-Commit-ID: BLDufKrl8ey
2017-08-18 18:43:01 +01:00
Andreas Tolfsen 9e4116708b Bug 1391691 - Bringing window out of fullscreen does not restore x/y position. r=automatedtester
When we set the window rect to width/height 400, we only want to test
those qualities.

MozReview-Commit-ID: 76qqCOOwjXQ
2017-08-18 18:42:20 +01:00
Andreas Tolfsen 852ee252f2 Bug 1391691 - Restore window state using Set Window Rect. r=automatedtester
Because the Maximize Window, Minimize Window, and Fullscreen Window
commands are now idempotent we will want to use the Set Window Rect to
bring them back to the normal window state.

MozReview-Commit-ID: BxtAJizfti6
2017-08-18 18:33:06 +01:00
Andreas Tolfsen 25ee4dd3c1 Bug 1388036 - Add WPT tests for Fullscreen Window. r=automatedtester
MozReview-Commit-ID: 4dpQsTIbFmA
2017-08-07 14:03:58 +01:00
David Burns ff0cea5c61 Bug 1376625 - Add Is Element Selected wdspec tests r=ato
This adds tests for the Is Element Selected section as documented in
https://w3c.github.io/webdriver/webdriver-spec.html#is-element-selected

MozReview-Commit-ID: HmwOtYlIZLQ
2017-08-04 20:25:18 +01:00
David Burns 91d756c15c Bug 1376625 - Add Get Element Tag Name wdspec tests r=ato
MozReview-Commit-ID: 5ictmTtj5zX
2017-08-01 08:43:09 +01:00
David Burns 362b2f0530 Bug 1376625 - Add Get Element Rect wdspec tests r=ato
MozReview-Commit-ID: AGSaUzetbRR
2017-08-01 07:00:51 +01:00
David Burns 9dd29e07fe Bug 1376625 - Add Get Element Property wdspec tests r=ato
This adds tests for Get Element Property WebDriver tests as documented
in https://w3c.github.io/webdriver/webdriver-spec.html#get-element-property

MozReview-Commit-ID: 62pCbYH0iwv
2017-06-30 19:29:18 +01:00
David Burns 374a6d24bf Bug 1376625 - Add Get Element Attribute wdspec tests r=ato
This adds wdspec tests for the Get Element Attribute section as
documented in
https://w3c.github.io/webdriver/webdriver-spec.html#get-element-attribute

MozReview-Commit-ID: 9hHPr6Hb1l1
2017-06-28 19:53:05 +01:00
Yangyi Peng 61ce78d393 Bug 1391661 - Add Minimize Window tests to wdspec; r=ato
MozReview-Commit-ID: LLJ6EXd2aKR
2017-08-19 13:59:56 +01:00
James Graham 313e754657 Bug 1391582 - Update web-platform-tests to revision b039c00a086291f97df9caa6b999e9d123c91b27, a=testonly
MozReview-Commit-ID: 1n6P2WJZJy3
2017-08-18 17:26:53 +01:00
Andreas Tolfsen bd05012e01 Bug 1390520 - Improve readability of Set Window Rect test. r=automatedtester
In addition to readability improvements, it fixes a few small errors
where the "x" and "y" field are being mixed up.

MozReview-Commit-ID: LP8uAaELadY
2017-08-15 16:35:03 +01:00
Andreas Tolfsen 680e13a0ed Bug 1390520 - Enable Set Window Rect from minimized window state test. r=automatedtester
Now that geckodriver has support for window state in the window rect
object, we can enable the test_set_window_rect_window_minimized test
from testing/web-platform/tests/webdriver/tests/set_window_rect.py.

MozReview-Commit-ID: FY6EZTxMUbE
2017-08-15 15:57:34 +01:00
Ryan VanderMeulen 29860c1c91 Merge m-c to autoland. a=merge 2017-08-09 18:51:26 -04:00
Andreas Tolfsen 60ff2bb130 Bug 1388365 - Test window rect state. r=whimboo
MozReview-Commit-ID: 1MoA370SUeW
2017-08-08 14:59:37 +01:00
Andreas Tolfsen cc0e7d5279 Bug 1388365 - Return value from assert_success. r=whimboo
Return the contents of value, if it exists, after asserting the response
was successful.

assert_success can be passed a value which will assert that the response's
value matches an expected value.  If you want to compare a subsection
of the response it may be convenient to for the value to be returned
after it has been asserted that the response was a success.

MozReview-Commit-ID: 1dyzQIazYEN
2017-08-08 15:37:15 +01:00
Andreas Tolfsen 8647b81de7 Bug 1388365 - Return window to normal state. r=whimboo
If a test leaves the window in maximized, minimized, or fullscreen
state it should be returned to the normal state the next time a session
is requested.

MozReview-Commit-ID: IALlITFVz1w
2017-08-08 14:57:24 +01:00
muthuraj90ec bc3f387cca Bug 1370403 - Synthesize contextmenu MouseEvent when performing webdriver actions; r=maja_zf
MozReview-Commit-ID: 85nQTsTRttF
2017-08-09 07:51:18 -04:00