Commit Graph
2464 Commits
Author SHA1 Message Date
Aryeh Gregor 594c362b60 Bug 1251198 - Remove various obsolete events from document.createEvent r=smaug
Other browsers do not support any of these (IIRC), telemetry reports
essentially zero usage, and supporting them is contrary to the DOM spec.

Notes on specific events:

CommandEvent and SimpleGestureEvent: These are not supposed to be
web-exposed APIs, so I hid the interfaces from web content too
(necessary to avoid test_all_synthetic_events.html failures).

DataContainerEvent: This was a non-standard substitute for CustomEvent
that seemed to have only one user, so I removed it entirely and switched
the user (MozillaFileLogger.js) to CustomEvent.

ScrollAreaEvent: This is entirely non-standard, but we apparently expose
it deliberately to web content, so I didn't see any reason to remove it
from createEvent.

SimpleGestureEvent and XULCommandEvent: Can still be created from
createEvent(), but not by content.

TimeEvent: This is still in because it has no constructor, so there's no
other way to create it.  Ideally we'd update the SMIL spec to add a
constructor.  I did remove TimeEvents.

MozReview-Commit-ID: 7Yi2oCl9SM2
2017-04-20 15:45:37 +03:00
Hiroyuki Ikezoe 934c9ea44b Bug 1356941 - Add text-shadow interpolation tests. r=birtles
MozReview-Commit-ID: J19JN13UXtP
2017-04-24 15:51:32 +09:00
Hiroyuki Ikezoe 671151d60a Bug 1356941 - Add box-shadow interpolation tests. r=birtles
MozReview-Commit-ID: D8rJY1wOd0j
2017-04-24 15:51:25 +09:00
Hiroyuki Ikezoe 58da1c9470 Bug 1356941 - Use IntermediateColor for caret-color. r=birtles
MozReview-Commit-ID: ERFaMfLL9tE
2017-04-24 15:51:01 +09:00
Aryeh Gregor 6218cacf33 Bug 869788 - Normalize DOMTokenList for whitespace/dupes; r=smaug
Some bits taken from a patch by Cameron McCormack.  This follows a
change to the DOM spec that has already been implemented by WebKit.

We do no checks for duplicates on initial attribute parsing, only when
the DOMTokenList is accessed.  We re-check for duplicates on every
DOMTokenList access, but optimized with a bloom filter, so it should be
fast.  It would be possible to add a flag to check if we've already
removed duplicates from the atom list, but it would require the
nsAttrValue to talk to the nsDOMTokenList somehow, and a spare bit would
be needed in nsAttrValue, and it would only help cases where
DOMTokenList is repeatedly accessed without the content attribute being
modified in between (e.g., .length) where the token list is extremely
long.

This patch assumes that no one other than nsDOMTokenList cares if
duplicates are removed from the nsAttrValue's atom array.  If anything
does, they will see inconsistent behavior depending on whether
nsDOMTokenList has removed duplicates yet.  Since we don't want to
check for duplicates on parse for performance reasons, the correct fix
is to update the code elsewhere to also remove duplicates.

MozReview-Commit-ID: 97KRVhPGwm8
2016-04-11 18:01:14 +03:00
bechen d8fa9093aa Bug 1353689 - Disable tests about "background-image", because we have problem about loading a gif as background. r=alwu
MozReview-Commit-ID: 1PbZWqeX1V4
2017-04-21 14:55:52 +08:00
bechen 0dff7ed8a3 Bug 1353689 - update /processing-model/* status. Disable tests whose result are not consistent. r=alwu
MozReview-Commit-ID: 83tCBYWmF5g
2017-04-18 16:54:17 +08:00
bechen 8a8a6660bb Bug 1353689 - selectors/cue_function: update testcase status. r=rillian
MozReview-Commit-ID: KNEZ1x4xThq
2017-04-17 17:27:40 +08:00
bechen 3c04cbb47e Bug 1353689 - selectors/default_styles: update testcase status. r=rillian
MozReview-Commit-ID: 32cFaWOVTal
2017-04-17 17:27:38 +08:00
bechen e7e5b9bb8b Bug 1353689 - selectors/cue_function/voice_object: update testcase status. r=rillian
MozReview-Commit-ID: Loq30ZzSzLR
2017-04-17 17:27:35 +08:00
bechen d05dcc25e8 Bug 1353689 - selectors/cue_function/underline_object: update testcase status. r=rillian
MozReview-Commit-ID: 9zwCperz8nZ
2017-04-17 17:27:33 +08:00
bechen 615f237fe4 Bug 1353689 - selectors/cue_function/class_object: update testcase status. r=rillian
MozReview-Commit-ID: FUwqp2DHbl3
2017-04-17 17:27:30 +08:00
bechen 15cf965b83 Bug 1353689 - selectors/cue_function/bold_object: update testcase status. r=rillian
MozReview-Commit-ID: K1oTXpmUMmd
2017-04-17 17:27:28 +08:00
bechen 26bac1a3db Bug 1353689 - selectors/cue_function/italic_object: update testcase status. r=rillian
MozReview-Commit-ID: AQoebT3bS8p
2017-04-17 17:27:26 +08:00
bechen beba979405 Bug 1353689 - selectors/cue : Enable testcases under */selector/* . Fix the padding and overflow issue. r=rillian
MozReview-Commit-ID: 6jdlx01hEv7
2017-04-17 17:27:23 +08:00
Aryeh Gregor c71f7a4cf7 Bug 1357998 - Make editing tests independent of default defaultParagraphSeparator; r=masayuki
Now that this is a pref that is different in different versions, tests
have to work no matter what the pref's value is.  For tests that
actually tested line-breaking-related behavior, I made them test all
three separator values.  For tests that tested something else and only
incidentally depend on the default paragraph separator, I set
defaultParagraphSeparator to "div".

MozReview-Commit-ID: 8m7eoFRXpEy
2017-04-20 21:10:23 +03:00
Sebastian Hengst b9529a7471 Bug 1356627 - Disable css-transitions-1 web-platform-tests for failing frequently. r=test-disabling a=frequent-orange-fix
MozReview-Commit-ID: Cbsk1JLMxig
2017-04-21 20:21:51 +02:00
Iris Hsiao bb687383d9 Backed out 9 changesets (bug 1353689) for web platform reftest failures
Backed out changeset 80ac3ea1427e (bug 1353689)
Backed out changeset 9a5b36fefb22 (bug 1353689)
Backed out changeset 44c5f4b4cdfc (bug 1353689)
Backed out changeset 7f2790b4c963 (bug 1353689)
Backed out changeset 8d8d2824a763 (bug 1353689)
Backed out changeset d3ced5751998 (bug 1353689)
Backed out changeset 5179ebf1e982 (bug 1353689)
Backed out changeset ebf24732e9b3 (bug 1353689)
Backed out changeset e81924e4cff3 (bug 1353689)
2017-04-21 13:38:28 +08:00
bechen 1b293b7ae5 Bug 1353689 - update /processing-model/* status. Disable tests whose result are not consistent. r=alwu
MozReview-Commit-ID: 83tCBYWmF5g
2017-04-18 16:54:17 +08:00
bechen 7673d805c6 Bug 1353689 - selectors/cue_function: update testcase status. r=rillian
MozReview-Commit-ID: KNEZ1x4xThq
2017-04-17 17:27:40 +08:00
bechen 59d45ff6d5 Bug 1353689 - selectors/default_styles: update testcase status. r=rillian
MozReview-Commit-ID: 32cFaWOVTal
2017-04-17 17:27:38 +08:00
bechen 1cb52c0c4a Bug 1353689 - selectors/cue_function/voice_object: update testcase status. r=rillian
MozReview-Commit-ID: Loq30ZzSzLR
2017-04-17 17:27:35 +08:00
bechen f1c67f1782 Bug 1353689 - selectors/cue_function/underline_object: update testcase status. r=rillian
MozReview-Commit-ID: 9zwCperz8nZ
2017-04-17 17:27:33 +08:00
bechen e08c22ddf9 Bug 1353689 - selectors/cue_function/class_object: update testcase status. r=rillian
MozReview-Commit-ID: FUwqp2DHbl3
2017-04-17 17:27:30 +08:00
bechen 8f4ae3e0db Bug 1353689 - selectors/cue_function/bold_object: update testcase status. r=rillian
MozReview-Commit-ID: K1oTXpmUMmd
2017-04-17 17:27:28 +08:00
bechen 33c5fdfbde Bug 1353689 - selectors/cue_function/italic_object: update testcase status. r=rillian
MozReview-Commit-ID: AQoebT3bS8p
2017-04-17 17:27:26 +08:00
bechen b0d214f7ef Bug 1353689 - selectors/cue : Enable testcases under */selector/* . Fix the padding and overflow issue. r=rillian
MozReview-Commit-ID: 6jdlx01hEv7
2017-04-17 17:27:23 +08:00
Andrea Marchesini 5b11b585fb Bug 1357473 - Update Console to the latest spec - part 7 - test updated, r=bgrins 2017-04-20 13:52:43 +02:00
James Graham f9606de7a5 Bug 1357844 - Split MathML entity test into multiple files, r=annevk
This was timing out and causing OOM on some platforms, so instead use
one doctype per test.

MozReview-Commit-ID: 7M2FCJVPElK
2017-04-20 10:58:41 +01:00
James Graham bd4533b193 Bug 1356225 - Remove expected failure for fetch headers test, a=testonly
MozReview-Commit-ID: ELBcV6gwLQZ
2017-04-20 10:49:44 +01:00
James Graham 93d5952e31 Bug 1356225 - Remove defunct directory from moz.build file, a=bustage
MozReview-Commit-ID: A74LwigMIsL
2017-04-20 10:49:34 +01:00
James Graham b2358183ff Bug 1356225 - Update web-platform-tests expected data to revision d519fe9011da7cfce7949f7ed826e9759dc5c532, a=testonly
MozReview-Commit-ID: GUErRlQhUzx
2017-04-20 10:49:32 +01:00
James Graham 93139c9362 Bug 1356225 - Use merge for upstreaming wpt commits, a=testonly
MozReview-Commit-ID: 9NMEKlyrUrE
2017-04-20 10:49:30 +01:00
James Graham e509e1fe95 Bug 1318724 - Increase the HTTP connection timeout for WebDriver tests, r=ato
The 5s timeout was not enough for debug builds. I don't really see a
reason to use something other than the default socket timeout here.

MozReview-Commit-ID: Fm5lgSI3lFb
2017-04-20 10:49:28 +01:00
James Graham a5a64e7130 Bug 1347949 - Add six to wptserve dependencies, r=whimboo
MozReview-Commit-ID: B6ADFc2F8j0
2017-04-20 10:49:26 +01:00
James Graham 99f3698b17 Bug 1356225 - Update web-platform-tests to revision d519fe9011da7cfce7949f7ed826e9759dc5c532, a=testonly
MozReview-Commit-ID: GmGgeZxHy0j
2017-04-20 10:49:24 +01:00
James Graham c8c8b2d03d Bug 1356227 - Add support for excluding paths when doing a wpt sync, r=ato
MozReview-Commit-ID: 6zadFuRDmVD
2017-04-20 10:49:21 +01:00
Phil Ringnalda 647f7429ce Bug 1350732 - set the pref to enable dom.storageManager in a __dir__.ini instead of playing Whac-A-Test 2017-04-19 22:06:34 -07:00
Wes Kocher e66b36fd81 Merge inbound to m-c a=merge 2017-04-19 17:10:04 -07:00
Tom Tung c2db98974a Bug 1330297 - Part 2: Remove ini files to verify we can pass the test. r=baku 2017-04-12 14:56:17 +08:00
Carsten "Tomcat" Book 98f7f9f902 Backed out changeset 2793d9e7c1d2 (bug 1290951) 2017-04-19 11:54:40 +02:00
Carsten "Tomcat" Book 8d20e0becd Backed out changeset 140d33b3fbe2 (bug 1355732) 2017-04-19 11:54:34 +02:00
Carsten "Tomcat" Book 5c743100d6 merge mozilla-inbound to mozilla-central a=merge 2017-04-19 10:32:48 +02:00
Wes Kocher f4bc6586d8 Merge m-c to inbound, a=merge 2017-04-18 14:38:53 -07:00
Andreas Tolfsen a3d564e53c Bug 1352463 - Increase wdspec timeouts; r=jgraham
Increases WPT wdspec timeouts to more realistic values.  Because wdspec
tests interact with the browser from an OOP program, they require more
time to run.  Interactive browser tests are also known for generally
being more expensive to run.

25 seconds for the default timeout and 120 seconds for the long timeout
are values picked out of the air and likely needs to be further refined
in the future.  It is however the current belief that this moves us in
the right direction.

Further improvements to this approach may involve letting wdspec tests
define timeouts on a per-file or a per-test function level through the
use of pytest-timeouts, but this is purely speculative at this point.
It is the current recommendation to adjust the number of tests and the
runtime duration of the tests in a file according to these new defaults.

MozReview-Commit-ID: 4I3Xz9G6lzv
2017-03-31 17:42:26 +01:00
Andreas Tolfsen d9b010b4bf Bug 1352463 - Define WPT timeouts on the test type level; r=jgraham
Certain test types have a need for other defaults than the
wpttest.DEFAULT_TIMEOUT and wpttest.LONG_TIMEOUT values.  This patch
changes wptrunner to define default- and long timeouts on a test type
level.  This allows a test type to override the default durations defined
in the abstract Test.default_timeout and Test.long_timeout.

Concrete classes, such as ReftestTest and WdspecTest, may override these
class properties.

MozReview-Commit-ID: IS6df5vuIDC
2017-03-31 17:38:35 +01:00
Aryeh Gregor 02fa9057ca Bug 1354066 - Expand classList testing and port to wpt; r=mystor
Because it tests some Gecko-specific things as well, I'm making two
copies, as advised by bz and jgraham.  One is to be submitted upstream,
and a second one has local changes.  This means most of the test is run
twice.

This overwrites the preexisting Element-classlist.html test upstream.  I
think I took the useful bits out of it (particularly replace() testing),
but there are some things that it had that I didn't think were
necessary, including: things that belong in idlharness; .className
testing; testing .contains() and stringification and hasAttribute() and
such after add/remove/etc. (instead of just testing getAttribute()); CSS
class selector matching.

MozReview-Commit-ID: JxPK7OyVLXa
2017-04-18 21:25:14 +03:00
Maja Frydrychowicz 17ab959242 Bug 1357590 - Test drag and drop with mouse actions; r=ato
MozReview-Commit-ID: 6vRHj7pRGdh
2017-04-18 19:07:04 -04:00
Maja Frydrychowicz 7719448360 Bug 1357590 - Add default button to pointer_up and pointer_down; r=ato
MozReview-Commit-ID: Ll7O3peSrme
2017-04-18 18:31:48 -04:00
Aryeh Gregor d72a07d357 Bug 1353695 - Sometimes Enter is ignored in editor; r=masayuki
When defaultParagraphSeparator is not "br", and we hit Enter on a line
that is not contained in any block element, we first create a new <div>
(or <p>) wrapper to hold the line's contents.  If creating this wrapper
fails for some reason, we go ahead and insert a <br> instead.

In some cases, we would get confused and think we didn't create the
block element when really we did.  We would insert a <br>, and
afterwards something would get rid of the empty block element.  In a
corner case where the line only consisted of a <br> to start with, this
would result in nothing happening, because the original <br> was removed
when creating the block element, and only one <br> was inserted to
replace it.

The correct fix is to just not get confused!

MozReview-Commit-ID: 1U8KHC71bfw
2017-04-05 20:40:13 +03:00