Commit Graph

18922 Commits

Author SHA1 Message Date
Sebastian Hengst
2592ce224a merge mozilla-central to autoland. r=merge a=merge 2017-10-20 11:45:03 +02:00
Sebastian Hengst
bc6dddb88b merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: BY4c5BIOF81
2017-10-20 11:37:54 +02:00
Sebastian Hengst
24583b9443 merge mozilla-central to autoland. r=merge a=merge 2017-10-20 01:08:09 +02:00
Brian Birtles
c38308c79b Bug 1398038 - Implement extended property-indexed keyframe syntax; r=bz,hiro
This implements the changes specified in these three spec changesets:

  8efd180bd9
  f43ecdfbe5
  a4f1ad1a60

MozReview-Commit-ID: KFhgZ5ip6BA

--HG--
extra : rebase_source : aa18f8e3fbcd5d96194ff9a5239a3c415622dc2f
2017-10-18 16:12:21 +09:00
Brian Birtles
cf71522e5a Bug 1398038 - Add tests for extended composite syntax; r=hiro
MozReview-Commit-ID: 1tbpTLqPfn1

--HG--
extra : rebase_source : 366dd4b80dfde9570c18d64d01f3c552f0b0d5af
2017-10-18 15:03:08 +09:00
Brian Birtles
0922f91b60 Bug 1398038 - Add tests for extended easing syntax; r=hiro
MozReview-Commit-ID: 7LkaWCrVvYD

--HG--
extra : rebase_source : 96ee7a5192daa5fb579ef33ce7dec4ab21734473
2017-10-18 15:01:20 +09:00
Brian Birtles
e90def4a25 Bug 1398038 - Add tests for extended offset syntax; r=hiro
MozReview-Commit-ID: JE2BbSBT48e

--HG--
extra : rebase_source : 14e281f5581ec9ed4d0de789a4681b58a4677ab9
2017-10-18 14:12:17 +09:00
Brian Birtles
c3b51ab3e9 Bug 1398038 - Organize keyframe tests into sections; r=hiro
This patch also drops some tests that were added at a point when shorthands were
expanded as part of processing a keyframes object. That is no longer the case
and so these tests should be removed (the equivalent logic is tested by
dom/animation/test/chrome/test_animation_properties.html which includes all
these tests).

MozReview-Commit-ID: BkL3kZsu4KX

--HG--
extra : rebase_source : 2a4a30bcc5ba5d87ea99dc1e5bb16cfd58118da0
2017-10-18 14:12:16 +09:00
Brian Birtles
bfc68e31e9 Bug 1398038 - Drop redundant exception data from gInvalidKeyframesTests and gInvalidKeyframeEffectOptionTests; r=hiro
The data is always the same so there's no need to repeat it here.

MozReview-Commit-ID: 35OmrbyGq24

--HG--
extra : rebase_source : c920da2484457324332f35f68d909b8b067d9c7c
2017-10-18 14:12:16 +09:00
Brian Birtles
ea84f92166 Bug 1398038 - Simplify keyframe test data; r=hiro
Writing out the full keyframes actually makes the tests harder to read,
especially when combined with an 80 character line length. By adding some very
simple helper methods we can improve the readability of these tests.

MozReview-Commit-ID: LxhelUrWAe8

--HG--
extra : rebase_source : 830a0aa6d7df7753365e5e0e5fb40c4a3ad18294
2017-10-18 14:12:16 +09:00
Brian Birtles
eb7a4db9fa Bug 1398038 - Fix spacing of keyframes tests; r=hiro
This will make the following tests easier to read and is the JS style used by
tools such as prettier.

This patch does not touch gInvalidKeyframeEffectOptionTests, however, since we
expect to simplify that further in a later patch in this series.

MozReview-Commit-ID: CM6pfIAOeIB

--HG--
extra : rebase_source : 0d612ed9ddf93e01d8baa3f3ce7f1dc47d7e9a04
2017-10-18 14:12:16 +09:00
Brian Birtles
27b1ef32ee Bug 1398038 - Merge property-indexed and sequence keyframe lists; r=hiro
There doesn't seem to be any need to separate these and it only leads to
duplicated code.

MozReview-Commit-ID: IWXTPMHMls0

--HG--
extra : rebase_source : b66b2c503d26302a36d43b5c47909a2e8ebc3d6a
2017-10-18 14:12:16 +09:00
Brian Birtles
45d82398fa Bug 1398038 - Use single quotes in keyframe-*.js; r=hiro
This is the generally preferred JS style these days and what we have been using
in more recent tests.

MozReview-Commit-ID: 9kir1D2Imqe

--HG--
extra : rebase_source : 5285761516abd2a902549bc98b8d3d7f7dfdc3eb
2017-10-18 14:12:16 +09:00
Brian Birtles
0645c4b964 Bug 1398038 - Use slightly more modern JS in keyframe-*.js; r=hiro
MozReview-Commit-ID: BCIiGEtivzq

--HG--
extra : rebase_source : 3684c9b63cf4f2476672de484fa36677045c8c8a
2017-10-18 14:12:15 +09:00
Brian Birtles
1b30eb2184 Bug 1398038 - Split keyframe-tests.js out of keyframe-utils.js; r=hiro
It doesn't really make sense to have test data in a file call 'utils'.

MozReview-Commit-ID: BTMbeZKnvtJ

--HG--
extra : rebase_source : aa2fbec902450ce01e1daf72f90c883846f0ea2c
2017-10-18 14:12:02 +09:00
Brian Birtles
58b4ee2650 Bug 1398038 - Update web-platform-tests MANIFEST.json; r=hiro
This is just the output of running:

  ./mach wpt-manifest-update

MozReview-Commit-ID: KDgOfztbcFy

--HG--
extra : rebase_source : f14f9b7ee4ffef9f395626d444b85aa2d1c0ce01
2017-10-18 14:11:29 +09:00
Gabriele Svelto
84b68b502d Bug 1393800 - Have mochitests expecting crashes wait for the crashes to be recorded before clean up; r=mconley
This patch includes a bunch of somewhat related fixes, these are:

- Ensuring that when a mochitest calls SimpleTest.expectChildProcessCrash()
  the harness will wait for the crashes to be recorded before deleting the
  dump files. This involves a message round-trip between the content and
  parent process so to minimize its performance impact on all the non-crashing
  tests it is done only when required.
- As an additional optimization, the SimpleTest harness will not send a
  message to the content process anymore whenever it receives an
  ipc:content-shutdown event, instead it does it only for abnormal shutdowns.
- Manually fixing remaining mochitests causing crashes to wait for crashes to
  be recorded before finishing and deleting the dump files.
- Modifying BrowserTestUtils.crashBrowser() so that it optionally does not
  delete the dump files, this is useful for tests that submit their dumps and
  thus delete them on their own.


MozReview-Commit-ID: 4SLJ8BjJ18n

--HG--
extra : source : b5452a41bb962c6929292c5c538e19ac28d84fe7
2017-08-25 12:47:09 +02:00
Peter Major
f8303b4ca2 Bug 1409195 - Improve Assert.throws documentation. r=mikedeboer,ato
Adds a new segment that should make it clearer that if the second
parameter of the Assert.throws method is of string type, the
parameter will not be used to verify the error message.

MozReview-Commit-ID: 6pYRfQwNYPi
2017-10-19 13:31:12 +01:00
Ted Mielczarek
2c59757b3c bug 1407368 - rename Breakpad's src/common/memory.h. r=gsvelto
memory.h conflicts with a system header, so we have workarounds to
change include paths to work around this.

This is mostly a cherry-pick of this upstream commit:
8bb3d55af7

..but the patch was applied separately to toolkit/crashreporter/google-breakpad
and toolkit/crashreporter/breakpad-client since we've forked the latter,
and there's also one other fixup of a source file included.

MozReview-Commit-ID: HH92HZG7y9n

--HG--
rename : toolkit/crashreporter/google-breakpad/src/common/memory.h => toolkit/crashreporter/google-breakpad/src/common/memory_allocator.h
rename : toolkit/crashreporter/google-breakpad/src/common/memory_unittest.cc => toolkit/crashreporter/google-breakpad/src/common/memory_allocator_unittest.cc
extra : rebase_source : d321475099f000482689d6a6fb8629274ee19a65
extra : histedit_source : d526c27d952dbe73aee87e24701e2a862e1ca3d2
2017-10-17 19:44:36 -04:00
Sebastian Hengst
bf793df477 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: HasKw28SN45
2017-10-19 11:26:22 +02:00
Jessica Jong
0d1588d9f7 Bug 1408341 - Implement assignedSlot on Element and Text. r=smaug 2017-10-19 14:31:36 +08:00
Ryan VanderMeulen
cb612851ed Merge inbound to m-c. a=merge 2017-10-18 21:01:34 -04:00
Geoff Brown
b778b0197c Bug 1409875 - Make Android apk installation less chatty; r=me,test-only 2017-10-18 15:30:52 -06:00
Geoff Brown
c4c7c9357a Bug 1390606 - Check <sdk>/emulator for emulator exe; r=nalexander 2017-10-18 15:30:48 -06:00
Geoff Brown
baf21d699f Bug 1409055 - Improve devicemanager error handling when launching fennec; r=bc 2017-10-18 15:30:38 -06:00
Kim Moir
fa05b759e8 Bug 1407330 - Configure buildbot-config and mozharness to use the staging build/tools repo r=mtabara 2017-10-18 16:50:16 -04:00
Blake Kaplan
3fa965430b Bug 1406212 - Remove references to extensions.e10sBlocksEnabling. r=Felipe
MozReview-Commit-ID: 11q3Go0IkPh

--HG--
extra : rebase_source : fdcf714d18effc964191665eb8422305bda92b65
2017-10-16 13:52:48 -07:00
Blake Kaplan
448808fee2 Bug 1406212 - Remove browser.tabs.remote.autostart.N. r=Felipe
These are no longer needed.

MozReview-Commit-ID: C49R7GsWPDg

--HG--
extra : rebase_source : 3711365017bf48c1f53315ce48fa419ac2a89b3e
2017-10-10 16:12:20 -07:00
Ryan VanderMeulen
9c3824dc0c Merge m-c to autoland. a=merge 2017-10-18 21:02:15 -04:00
Alexandre Poirot
1acbe72b21 Bug 1401207 - Implement ./mach talos --subtests to allow filtering DAMP tests. r=jmaher
MozReview-Commit-ID: BAaVYjOofJE

--HG--
extra : rebase_source : d672192ae2e23e9f7edc2fe55c829402363a2c6b
2017-10-17 09:00:00 -07:00
Alexandre Poirot
9107b9f013 Bug 1401207 - Refactor DAMP to more easily filter subtests. r=bgrins
MozReview-Commit-ID: GXpujntQ5F2

--HG--
extra : rebase_source : 04e178326d62f9cecf416829a1246968592b98e9
2017-10-17 08:59:17 -07:00
Sebastian Hengst
f29266bc8b Backed out changeset 3219e7712baa (bug 1401207) for eslint failures in testing/talos/talos/tests/devtools/addon/content/damp.js. r=backout
--HG--
extra : amend_source : e45689b157898a7147026ee891b01dc7736ee79b
2017-10-19 00:06:26 +02:00
Sebastian Hengst
8191501d4d Backed out changeset f42923db714b (bug 1401207) 2017-10-19 00:06:20 +02:00
Alexandre Poirot
5995a00478 Bug 1401207 - Implement ./mach talos --subtests to allow filtering DAMP tests. r=jmaher
MozReview-Commit-ID: BAaVYjOofJE

--HG--
extra : rebase_source : 4ed15e50ceb1f2dddbdf89bc711712f3e80b3f0e
2017-10-17 09:00:00 -07:00
Alexandre Poirot
39b0a55bf6 Bug 1401207 - Refactor DAMP to more easily filter subtests. r=bgrins
MozReview-Commit-ID: GXpujntQ5F2

--HG--
extra : rebase_source : 04e178326d62f9cecf416829a1246968592b98e9
2017-10-17 08:59:17 -07:00
Mark Banner
77fa87faaa Bug 1409769 - Properly disable idle-daily for mochitests, to avoid background interactions. r=jmaher
MozReview-Commit-ID: 6yS6zwFjphd

--HG--
extra : rebase_source : a3652de9807376a24f576cce6b627f10d014e337
2017-10-18 16:29:37 +01:00
Blake Kaplan
ec2bd7a65e Bug 1406212 - Remove the e10srollout extension. r=Felipe
MozReview-Commit-ID: 1y141p0MalB

--HG--
extra : rebase_source : 151f67eaf17afd2f01726221842b28410905d385
2017-09-28 15:54:36 -07:00
Andreas Tolfsen
ac39cffaab Bug 1408508 - Move Context to browser module. r=maja_zf
To avoid circular dependencies, where file A depends on B depending
on A, we should strive towards fewer inter-dependencies and more
autonomy between modules.

For example, if testing/marionette/browser.js needs access to
the Context enum it can currently only attain it by importing
testing/marionette/driver.js.  Because driver.js imports browser.js,
we create a circular dependency and Cu.import enters an infinite
import recursion.

MozReview-Commit-ID: LGiA9sy9xrd

--HG--
extra : rebase_source : f1748894c4309a5bc34b72acd4931d7937e8810e
2017-10-16 17:47:35 +01:00
Sebastian Hengst
164fef69ff Backed out changeset 286a5ba56cec (bug 1408508) for eslint failure at testing/marionette/driver.js:881:50 | 'resp' is defined but never used. r=backout
--HG--
extra : amend_source : becc15136f2e7113ab248154be37dfa2bf923dc9
2017-10-18 20:28:15 +02:00
Andreas Tolfsen
a03f21ac1c Bug 1409040 - Add element.isElement shorthand. r=maja_zf
Introduces new element.isElement shorthand API for identifying DOM-,
SVG-, and XUL elements.

It is the equivalent of this:

	if (element.isDOMElement(el) ||
	    element.isSVGElement(el) ||
	    element.isXULElement(el)) {
	  // ...
	}

MozReview-Commit-ID: H8MDkP5bQmW

--HG--
extra : rebase_source : 6bef09999e47b178614e4bd307266b4449f39901
2017-10-17 14:53:42 +01:00
Andreas Tolfsen
b23b5f643a Bug 1409040 - Add element.isSVGElement. r=maja_zf
MozReview-Commit-ID: 4VCjHCnO3QB

--HG--
extra : rebase_source : f74e6a2ab48dfc59bc53b12f24e8a21131d8712c
2017-10-16 14:25:53 +01:00
Andreas Tolfsen
ded7e79114 Bug 1409040 - Add element.isDOMWindow. r=maja_zf
In addition to tell DOM- and XUL elements apart we will in the
future need to identify WindowProxies because WebDriver expects
there to be a separate "web window" serialisation for these.

Telling if an abritrary object is a WindowProxy is tricky but we
check if its node.toString is callable, that it returns "[object
Window"], and finally that its "self" attribute is itself.  This is
not perfect, but good enough for now.

MozReview-Commit-ID: 6FLOa3qYLPP

--HG--
extra : rebase_source : 27d25d97facf73761a1600e88d938eb76b3bc005
2017-10-13 19:22:01 +01:00
Andreas Tolfsen
8d4160ddc0 Bug 1409040 - Add element.isDOMElement. r=maja_zf
Introduces a new element.isDOMElement function, similar to isXULElement,
for checking whether an element is a DOM element.

It follows the same formula as isXULElement by first testing if the
element is an object so we know we can accesss node.namespaceURI
and node.nodeType without causing a JS error.

MozReview-Commit-ID: 6Mlo33vu5LG

--HG--
extra : rebase_source : 547a2fc5bc0051e3bb51e14add4f57d1ff7972b9
2017-10-13 19:20:26 +01:00
Andreas Tolfsen
6332833688 Bug 1409040 - Make element.isXULElement more resiliant. r=maja_zf
Fixes isXULElement to recognise XBL elements, such as <xbl:framebox>.

Also tightens up the input checks so that arbitrary objects can be
tested, as checking node.namespaceURI directly could cause a JS error
if node is not an object.  Before checking the namespace we also ensure
it's an element node so that text- and comment nodes are not picked up.

This patch also introduces tests, which were sorely missing.

MozReview-Commit-ID: 8LNF1z3X1gP

--HG--
extra : rebase_source : ffacc5b1336b35624aaf0534101ce5c3fbdeaa95
2017-09-16 14:37:21 +01:00
Andreas Tolfsen
fe6ba66d6c Bug 1409438 - Make references to mutable variables immutable. r=whimboo
References to mutable variables do not need mutable themselves.
This fixes a series of mutable variable warnings emitted by the
Rust compiler.

MozReview-Commit-ID: EosL5XNRRX4

--HG--
extra : rebase_source : 62aa86b2c6c87a5f39ee228dcad6b5e4162779d8
2017-10-17 17:04:11 +01:00
Andreas Tolfsen
4092fd5b34 Bug 1408508 - Move Context to browser module. r=maja_zf
To avoid circular dependencies, where file A depends on B depending
on A, we should strive towards fewer inter-dependencies and more
autonomy between modules.

For example, if testing/marionette/browser.js needs access to
the Context enum it can currently only attain it by importing
testing/marionette/driver.js.  Because driver.js imports browser.js,
we create a circular dependency and Cu.import enters an infinite
import recursion.

MozReview-Commit-ID: LGiA9sy9xrd

--HG--
extra : rebase_source : e4b69c91b9cf78705c902f1e5038d815b88114d0
2017-10-16 17:47:35 +01:00
Henrik Skupin
616e9c78ff Bug 1396880 - Skip not relevant checks in test_accessibility for webdriver click. r=ato
The test currently performs checks which will no longer raise the expected
accessibility exceptions if the webdriver conforming click is enabled. In
such a condition those specific situations are already covered in
test_click.py.

As long as the legacy click has not been fully removed keep running the
checks but only if the webdriver click is not in use.

MozReview-Commit-ID: 1DbKfJYADp

--HG--
extra : rebase_source : 2f56caf977f88768b1df2ad507587091af8708ba
2017-10-18 14:22:19 +02:00
Ben Hearsum
3e0f630784 No bug: Use rule ids instead of alias' for update publishing rules in staging release configs. r=jlorenzo
--HG--
extra : amend_source : dfdaae6e5bb4bb222c19efecc5a5128bcc46450a
2017-10-18 10:13:22 -04:00
Sebastian Hengst
f9b5b9b40c merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 790IXj5MZ4f
2017-10-18 11:48:34 +02:00
Andreas Tolfsen
c9ec6362dc Bug 1409379 - Move WindowState to new wm module. r=maja_zf
The upcoming window tracking refactoring to Marionette will introduce
a new testing/marionette/wm.js module.  It was originally the plan
to move WindowState there after it had landed, but it actually makes
sense to land any dependencies before to reduce churn in the window
tracking patches.

MozReview-Commit-ID: EpqnTYYGcmg

--HG--
extra : rebase_source : d6760feefa49c522738fd3930b339bc0af70e6a5
2017-10-17 14:20:52 +01:00