Commit Graph
1385 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
Brian Birtles 619b88c739 Bug 1402170 - Consistently use arrow syntax for functions in processing-a-keyframes-argument-*.html tests; r=hiro
We don't however, use arrow syntax for local functions that act as class
constructors since they don't want the lexical this that arrow functions use.

MozReview-Commit-ID: FuVhHIBFZrE
2017-10-02 16:57:56 +09:00
Brian Birtles 59d79b24b2 Bug 1402170 - Rename copy-contructor.html to copy-constructor.html in two places in wpt for web-animations; r=hiro
MozReview-Commit-ID: JxqRcQ5TJd5
2017-10-02 12:35:38 +09:00
Brian Birtles c01aef2738 Bug 1402170 - Add tests for error handling when parsing the 'easing' property on keyframes; r=hiro
This tests the behavior clarified in the following spec changeset:

  https://github.com/w3c/web-animations/commit/d696468777c12a13bc7c46aa1a72c358e8da15fc

MozReview-Commit-ID: 3hS7rHcTpUn
2017-10-02 12:30:33 +09:00
Brian Birtles b24494bf12 Bug 1402170 - Update test descriptions in processing-a-keyframes-argument-002.html; r=hiro
MozReview-Commit-ID: 8ofSWFs5b3u
2017-09-22 16:27:27 +09:00
Brian Birtles 36929dabce Bug 1402170 - Use KeyframeEffect constructor in processing-a-keyframes-argument-002.html; r=hiro
MozReview-Commit-ID: 3JTFxw6Va1r
2017-09-22 16:12:44 +09:00
Brian Birtles afab50fd55 Bug 1402170 - Move ease parsing tests to easing-tests.js; r=hiro
MozReview-Commit-ID: JvUB6okJYI9
2017-09-22 16:08:49 +09:00
Brian Birtles 25c5fe65a1 Bug 1402170 - Tidy up processing-a-keyframes-argument-002.html; r=hiro
MozReview-Commit-ID: H7envMXOJhU
2017-09-22 16:03:01 +09:00
Brian Birtles 4d507e05dd Bug 1402170 - Move tests for easing values on keyframes to processing-a-keyframes-argument-002.html; r=hiro
MozReview-Commit-ID: LEydYxdMoay
2017-09-22 15:58:37 +09:00
Brian Birtles bb6a4c7286 Bug 1402170 - Rename processing-a-keyframes-argument.html to have a 001 extension; r=hiro
This naming is recommended by [1] and from a random sampling of tests in
web-platform-tests it seems like most test don't use this, only tests that are
split over multiple files.

This "processing a keyframes argument" section is quite large so I intend to
split the tests up into a number of files to cover:

* Tests for property access
* Tests for easing
* Tests for offset
* Tests for composite
* Tests for equivalent forms

[1] http://web-platform-tests.org/writing-tests/general-guidelines.html#file-paths-and-names

MozReview-Commit-ID: JW2m50UnsKv
2017-09-22 15:52:37 +09:00
Brian Birtles e292ac4ebc Bug 1402170 - Merge gInvalidEasingInKeyframeSequenceTests with gInvalidEasings; r=hiro
MozReview-Commit-ID: CIjKWyU2GIs
2017-09-22 15:37:23 +09:00
Brian Birtles b413ba6084 Bug 1402170 - Consistently use spaces in object notation; r=hiro
This seems to be standard JS style recently (as used in prettier etc.): Use
spaces to separate the { and } from the properties (but not for arrays).

MozReview-Commit-ID: FRkFRwwcJJh
2017-09-22 15:20:13 +09:00
Brian Birtles 7564827693 Bug 1402170 - Update various test descriptions to make them testable statements; r=hiro
MozReview-Commit-ID: 9zVjiwb9vm8
2017-09-22 15:14:45 +09:00
Brian Birtles 26288127b3 Bug 1402170 - Tidy up test for property access order somewhat; r=hiro
MozReview-Commit-ID: 4JFae0SqMCX
2017-09-22 15:04:54 +09:00
Brian Birtles 3b8cd38ead Bug 1402170 - Move test for accessing keyframe property order to processing-a-keyframes-argument.html; r=hiro
MozReview-Commit-ID: 3y6SnzAtNZZ
2017-09-22 15:00:15 +09:00
Brian Birtles 441276cdda Bug 1402170 - Update some test descriptions; r=hiro
* We should refer to reading or accessing properties, as opposed to
  "considering" them.
* We should use "property-indexed" consistently.

MozReview-Commit-ID: ItCE4g8LmOC
2017-09-22 11:54:50 +09:00
Brian Birtles 6682562041 Bug 1402170 - Drop invalid test for offsets; r=hiro
There is a test that assumes that an offset specified on a property-indexed
keyframe is applied to all generated keyframes but that behavior is not (yet)
specified.

This behavior will be specified in [1] but until that happens it seems invalid
to test for it. Furthermore, when that is specified we will need much more
thorough tests than this one.

[1] https://github.com/w3c/web-animations/issues/148

MozReview-Commit-ID: HUUw88dg2P7
2017-09-22 11:43:11 +09:00
Brian Birtles 1a09fd2a6a Bug 1402170 - Use template strings in processing-a-keyframes-argument.html; r=hiro
But only in a couple of places where it makes the test more readable.

MozReview-Commit-ID: 6zVJ6h7Zb3k
2017-09-22 11:38:58 +09:00
Brian Birtles 38ac039a8b Bug 1402170 - Use for...of instead of forEach for several tests in processing-a-keyframes-argument.html; r=hiro
for...of is generally preferred over forEach since it is a little easier to read
and allows using 'break' and 'continue'. Furthermore it is supported in all
major browsers. (It also makes wrapping one of the long lines in this file
easier.)

MozReview-Commit-ID: 1BuoW0QSxaG
2017-09-22 11:36:42 +09:00
Brian Birtles 85ea8b1201 Bug 1402170 - Use ES6 let/const in processing-a-keyframes-argument.html; r=hiro
Gradually we plan to move all these tests to ES6 (or at least the subset
supported by all UAs that are likely to implement this spec) so while we are
touching this file we update a few uses of 'var' to let/const.

MozReview-Commit-ID: 45OJyXmUzKu
2017-09-22 11:09:04 +09:00
Brian Birtles 6069d78bfa Bug 1402170 - Consistently use KeyframeEffect constructor for testing in processing-a-keyframes-argument.html; r=hiro
KeyframeEffectReadOnly may disappear (see [1]) and is only needed for CSS
Animations and CSS Transitions so in that sense KeyframeEffect is more basic
(despite being a subclass of KeyframeEffectReadOnly) so we should prefer it to
KeyframeEffectReadOnly.

Furthermore, as the comment at the start of the file suggests, we should
consistently use the same method for testing these procedures. We currently use
the KeyframeEffect constructor because it is more direct and basic.

[1] https://github.com/w3c/web-animations/issues/185

MozReview-Commit-ID: LBrlfzyn2Ch
2017-09-22 11:03:35 +09:00
Brian Birtles 962b721baa Bug 1402170 - Fix title in processing-a-keyframes-argument.html test; r=hiro
And also drop the slightly misleading and redundant comment about the procedure
that this test covers (it covers *both* the "process a keyframes argument"
procedure and the "process a keyframe-like object" subprocedure).

MozReview-Commit-ID: 9lzx4rCj20o
2017-09-22 10:18:25 +09:00
Wes Kocher 4946214c0f Backed out changeset fbc75bbbebc1 (bug 1403697) for wptlint issues a=backout
MozReview-Commit-ID: 5gaaqSD7sUa
2017-09-29 11:20:24 -07:00
Markus Stange a412a6b319 Bug 1403697 - When restricting background colors to the background region, only use clips if we have rounded corners. r=mattwoodrow
MozReview-Commit-ID: F1ked65OBxA
2017-09-29 13:30:58 -04:00
Wes Kocher 0b96efb195 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 6RdWW73Lc0A
2017-09-28 17:16:12 -07:00
Thomas Wisniewski dbadff6ef6 Bug 1389274 - Correct the behavior of Element.scrollIntoView to match the draft spec and pass web platform tests; r=annevk,bkelly
MozReview-Commit-ID: 3is36wstsdb
2017-09-28 16:57:24 -04:00
Sebastian Hengst cb194e85c7 Backed out changeset 8a970e561fe1 (bug 1389274) for unexpected passes of web-platform-test /cssom-view/scrollIntoView-shadow.html. r=backout 2017-09-28 19:46:03 +02:00
Thomas Wisniewski 23b9697aca Bug 1389274 - Correct the behavior of Element.scrollIntoView to match the draft spec and pass web platform tests; r=annevk,bkelly
MozReview-Commit-ID: 3is36wstsdb
2017-09-27 12:23:33 -04:00
Wes Kocher 6952cfe436 Merge m-c to autoland, a=merge
MozReview-Commit-ID: Kjjgw1Pdb3U
2017-09-26 17:15:46 -07:00
Thomas Wisniewski 8fcb3afec3 Bug 1400748 - add web platform tests coverage for what status/statusText/readyState should be in various abort() edge cases; r=annevk,baku
MozReview-Commit-ID: H8oEOoyPhko
2017-09-25 12:58:29 -04:00
Boris Zbarsky e51cd34838 Bug 850684. Make sure offset* is computed correctly on absolutely positioned kids of relatively positioned elements with scrolllframes and borders. r=mats
The check for isAbsolutelyPositioned was an old incorrect attempt to fix bug
81290.  We have since added the proper fix (not adding offsets of the offset
parent frame) in bug 375003.

MozReview-Commit-ID: 7NgnfrYcs8h
2017-09-26 02:01:57 -04:00
James Graham bcd5186877 Bug 1401613 - Don't require test type in wpt expectation manifest, r=maja_zf
The test type is already in the MANIFEST.json file and requiring it in
the expectation data doesn't make much sense. It isn't used execpt
during updates and so people often forget to add it. Therefore it
makes a lot of sense to just use the data from the main manifest.

MozReview-Commit-ID: HyOoN6T28qc
2017-09-23 15:03:36 +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
Sebastian Hengst 8899976f2f merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: It9WfByQfV3
2017-09-23 11:38:06 +02:00
James Graham b31f4b84a3 Bug 1393366 - Increase the marionette connect timeout in wptrunner, r=maja_zf
This switches to using a timeout of 120s * timeout_multplier, which is
twice the current value. The Marionette startup_timout value is
removed because it turns out that's only used when marionette starts
the Firefox instance and therefore is ignored in this case.

MozReview-Commit-ID: 4VA8yB6M1d5
2017-09-21 17:56:43 +01:00
Maja Frydrychowicz 6a029b4dd6 Bug 1401684 - Add option to disable unstable tests with wpt-update; r=jgraham
Add a --stability option to wpt-update. If test results are inconsistent
across many runs, the test is disabled for the condition(s) indicated by
the corresponding log files. The --stability option is used to specify
a reason for disabling the tests (typically a bug number), which is
recorded in metadata. Disabled test paths are printed to stdout.

MozReview-Commit-ID: DEIqRkN7NzR
2017-09-20 15:26:47 -04: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
Jeremy Chen ae9aeaf44f Bug 1394284 - add wpt test for fallback discrete type of transform animation. r=boris,hiro
According to the spec, if one of the matrices for transform interpolation is
non-invertible, the used animation function must fall-back to a discrete
animation. Add wpt tests so we can ensure the web compability for this behavior.

Note that we don't add 'discrete' type for transform property in property-list.js.
Because the 'discrete' type also tests discrete addition and accumulation,
however, the fallback behavior is just for interpolation and accumulation, not
for addition. So, we add tests in each part of transformListType in property-types.js.

One test is failing in Gecko, so annotate it for Gecko.

MozReview-Commit-ID: 3JGvgqbBqZp
2017-09-12 13:29:04 +08:00
Wes Kocher c5dea92656 Merge inbound to central, a=merge
MozReview-Commit-ID: EK8iFR1hSRp
2017-09-18 16:21:01 -07:00
Ben Kelly 1e7974e2d4 Bug 1400372 P2 Add a WPT test that verifies a redirecting importScripts() can trigger an update. r=hopang 2017-09-18 06:36:18 -07:00
Sebastian Hengst fba940c63f merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 2iVDKexRjxu
2017-09-13 23:58:43 +02:00
Ben Kelly ebd5a78ee9 Bug 1398484 P2 Add a WPT test that verifies importScripts() can be redirected. r=baku 2017-09-13 05:53:59 -07:00
Sebastian Hengst cf4fdc5fdc merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9SALJlvWgoZ
2017-09-13 13:32:44 +02: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
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