Commit Graph

251 Commits

Author SHA1 Message Date
Jeremy Chen
4a108d0ac3 Bug 1354437 - enable border-spacing interpolation test. r=hiro
So far, we don't have a type to test anamations of a pair of length.
Since border-spacing consists two absolute lengths, we shall add this
new type.

MozReview-Commit-ID: Bo8VMWPLDHc
2017-04-27 17:26:31 +08:00
Aryeh Gregor
21eeaf2a81 Bug 1359780 - Always remove duplicates/whitespace in DOMTokenList methods r=masayuki
Previously, replace() and toggle() would not always remove duplicates
and whitespace from the DOM attribute in the case where they were no-ops
(replacing a nonexistent token, force-toggling a token to its current
state).  Now they do.  This matches the behavior of add() and remove(),
and also replace() in one case (replacing an existing token with
itself).

This follows a spec change: https://github.com/whatwg/dom/pull/444

MozReview-Commit-ID: 7lDEQxOGxPV
2017-04-26 15:13:44 +03: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
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
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
Kate McKinley
300606d020 Bug 1325680 - Re-enable HSTS priming on web-platform tests. r=test-only
MozReview-Commit-ID: 7jdCyq2VVkZ
2017-04-06 14:44:00 -04:00
Aryeh Gregor
34a92fa7d1 Bug 1297414 - Support execCommand("defaultParagraphSeparator"); r=masayuki
Later commits will add the actual functionality.

MozReview-Commit-ID: 6Ac9V6MjZpa
2017-04-04 13:47:28 +03:00
Boris Zbarsky
da71c6b619 Bug 1348119. Move the test for setRangeText setting the dirty value flag into upstream wpt. r=smaug
MozReview-Commit-ID: 6yF42plMkAE
2017-03-16 17:51:51 -04:00
James Graham
d52f41ce62 Bug 1345490 - Update web-platform-tests expected data, a=testonly
MozReview-Commit-ID: 6v6aK4ubvO6
2017-03-17 14:35:41 +00:00
Thomas Nguyen
f1d6f57eec Bug 1192940 - Support referrer policy in sendBeacon r=Ehsan
MozReview-Commit-ID: FEyqInOkiT6
2017-03-17 11:53:16 +08:00
Masayuki Nakano
5265265979 Bug 1318312 part.3 Selection should move focus at every selection change when it's called by JS r=smaug
Selection may be changed by methods of Selection or methods of Range retrieved by Selection.getRangeAt().  Selection::NotifySelectionListeners() is called after every selection change of each of them, so, this method must be a good point to move focus.

If new common ancestor of all ranges is editable and in an editing host, we should move focus to it.  Otherwise, if an editing host has focus but new common ancestor is not editable, we should move focus from the editing host.

For consistency with the other browsers, this patch doesn't move focus to other focusable element.

MozReview-Commit-ID: 6sNsuzwqECX
2017-03-14 10:36:21 +09:00
Masayuki Nakano
462139cd3e Bug 1318312 part.1 Add automated tests for checking focus move at using Selection API r=smaug
Adding automated tests as web platform tests (only for mozilla) for focus move at using Selection API.

Although, there is no standards of relation between Selection API and focus, we should move focus when Selection API moves selections into only an editing host or outside of focused editing host.

Chrome moves focus as this rules, therefore, user can modify contenteditable editor immediately after web app moves selection.

Edge does NOT move focus at using Selection API.  However, user can modify contenteditable editor similar to Chrome.  We can guess that Edge doesn't need to move focus in its design because perhaps, Edge decides if it's editable only with primary selected range.

We cannot take the Edge behavior due to our editor design.  So, we can take only Chrome's approach for improving the compatibility.

MozReview-Commit-ID: JuLiSMgqODm
2017-03-13 22:30:28 +09:00
Boris Zbarsky
8f6ad791d2 Bug 1345606. setRangeText should mark the text control as dirty. r=ehsan
MozReview-Commit-ID: 9le2PoelGei
2017-03-09 14:44:36 -05:00
Boris Zbarsky
c0cd286808 Bug 1343037 part 19. Add some tests. r=ehsan
MozReview-Commit-ID: L7LNF2Bfwgk
2017-03-09 14:44:06 -05:00
Benjamin Bouvier
b77c822508 Bug 1336139: Fix uint64 to floating-point conversion; r=sunfish
MozReview-Commit-ID: 4Lk4ifPqO9d
2017-02-10 16:26:15 +01:00
Jon Coppeard
1e46db1862 Bug 1342810 - Check for instantiation failure when a previously-loaded module is requested r=smaug 2017-02-28 10:47:19 +00:00
Benjamin Bouvier
a2d91dbdbb Bug 1342956: Fix promise_test in wasm-testharness.js; r=luke
MozReview-Commit-ID: IfPkWSw05pX
2017-02-27 17:35:18 +01:00
Jon Coppeard
2e319c145e Bug 1340865 - Handle non-parser-created module scripts r=smaug 2017-02-27 15:04:21 +00:00
Benjamin Bouvier
0a97acd85f Bug 1342385: Allow mremap on linux32 for wasm; r=jld
MozReview-Commit-ID: 82f8ryvd57S
2017-02-24 13:18:57 +01:00
Mats Palmgren
a6080752fd Bug 1341137 part 4 - Update web-platform-tests expected data. 2017-02-25 11:33:34 +01:00
Benjamin Bouvier
1aecd9ec06 Bug 1332691: Disable wasm WPT nop/resizing test cases; r=bustage
See also bug 1342385 for resolution.

MozReview-Commit-ID: J4wwG1Wo3Qt
2017-02-24 13:25:44 +01:00
Benjamin Bouvier
c10eafb163 Bug 1332691: Skip conversions.wast.js.html for unexpected successes on x86; r=bustage 2017-02-24 11:37:16 +01:00
Benjamin Bouvier
e339d54cbf Bug 1332691: Handle known failures in wasm WPT and JS test cases; r=luke
MozReview-Commit-ID: EQNCTOXNy75
2017-02-17 18:18:35 +01:00
Benjamin Bouvier
025b0baf8c Bug 1332691: Generate wasm Web Platform test cases; r=luke
MozReview-Commit-ID: AiR4cZkUock
2017-02-17 18:09:10 +01:00
Benjamin Bouvier
a099b24dae Bug 1332691: Add the metadata directory for the wasm WPT directory; r=jgraham
MozReview-Commit-ID: 9h4t9ZDPN7C
2017-02-17 18:08:41 +01:00
James Graham
d9ee612568 Bug 1331899 - Update web-platform-tests to revision 7071a3d128ff6610a57944d1b0aaabee97b3af5a, a=testonly
MozReview-Commit-ID: LvpIb2OK2GS
2017-01-19 14:23:39 +00:00
James Graham
c7b9b65e73 Bug 1319060 - Disable HSTS priming in redirect test to avoid invalid request, a=testonly
MozReview-Commit-ID: 8Y1EIio2rNE
2016-12-01 22:26:16 +00:00
Thomas Nguyen
a964250d12 Bug 1264792 - Update web platform tests of fetch and serviceworker. r=bkelly
MozReview-Commit-ID: 4btKCi5ZvZ2
2016-11-14 15:15:37 +08:00
James Graham
914a570998 Bug 1302423 - Update web-platform-tests expected data to revision 6b48d45a1c7f3243945bf1678008f607e70acf2e, a=testonly
MozReview-Commit-ID: DOiOt5h4ESw
2016-09-13 14:49:45 +01:00
Manish Goregaokar
1f96f31162 Bug 1290864 - Add WPT test for serialization of basic-shapes; r=xidorn
MozReview-Commit-ID: EhBF42H7uZA
2016-08-05 19:51:49 +05:30
Jonathan Kingston
cbe9f85c5f Bug 1173199 - Create preference to disable MathML. r=heycam, r=huseby, r=smaug
If the mathml.disabled preference is true, treat <math> and other MathML
elements as generic XML elements.

This patch disables the rendering code of MathML however preserves the
namespace so to reduce the breakage.

Original patch by: Kathy Brade <brade@pearlcrescent.com>

MozReview-Commit-ID: A2f2Q2b4eqR
2016-06-28 15:24:48 +01:00
Brian Birtles
43944667cb Bug 1271904 - Rename KeyframeEffectReadOnly.getFrames() and KeyframeEffect.setFrames() to getKeyframes()/setKeyframes(); r=hiro, r=smaug
MozReview-Commit-ID: GwLLY39l1KE
2016-05-13 09:40:52 +09:00
Ben Kelly
f37dd1b600 Bug 1262624 Move service worker wpt tests out of mozilla dir so they will be upstreamed. r=jgraham 2016-04-07 12:14:38 -07:00
Ben Kelly
a492a9e8d2 Bug 1256428 P8 Fix wpt unregister-then-register-new-script.https.html to new spec expectations matching blink's tests. r=jdm 2016-04-06 13:27:22 -07:00
Ben Kelly
2efd66251d Bug 1256428 P7 Fix wpt update.https.html to expect TypeError per current spec. r=jdm 2016-04-06 13:27:22 -07:00
James Graham
bce86515df Bug 1260772 - Update web-platform-tests to revision e9b6636c067fc08b9eb393a1c0ff380a77ae1786, a=testonly
MozReview-Commit-ID: 3cs3y3zPVja
2016-04-01 15:58:08 +01:00
Ehsan Akhgari
50368dc73a Bug 1259164 - Set ServiceWorkerMessageEvent.origin correctly when calling ServiceWorkerClient.postMessage(); r=bkelly 2016-03-28 15:14:40 -04:00
Thomas Nguyen
6380865c37 Bug 1186072 - Fix web-platform-tests service worker fetch. r=fkiefer
MozReview-Commit-ID: 6iQHkXaFfy3
2016-03-17 16:05:44 +08:00
Ehsan Akhgari
c404dfb7d4 Bug 1120715 - Part 4: Add tests for Request.cache; r=bkelly 2016-03-11 14:40:45 -05:00
Ryan VanderMeulen
29a0483afa Backed out 8 changesets (bug 1120715) for Android dom/u2f/tests/test_no_token.html permafail.
Backed out changeset 043770204431 (bug 1120715)
Backed out changeset e10c375353f4 (bug 1120715)
Backed out changeset c2871dbeb7cc (bug 1120715)
Backed out changeset 79158f028ad3 (bug 1120715)
Backed out changeset c74866f52320 (bug 1120715)
Backed out changeset c731944ecc64 (bug 1120715)
Backed out changeset 44f346712a3a (bug 1120715)
Backed out changeset 60d6045125e2 (bug 1120715)

CLOSED TREE
2016-03-10 20:20:05 -05:00
Ehsan Akhgari
f3f76bd6e6 Bug 1120715 - Part 4: Add tests for Request.cache; r=bkelly 2016-03-10 17:29:11 -05:00
Wes Kocher
59b783e560 Backed out 6 changesets (bug 1120715) for wpt bustage in request-cache.html
Backed out changeset 2ee4b18f6b3a (bug 1120715)
Backed out changeset f87a25ade31e (bug 1120715)
Backed out changeset 9391f22c08c2 (bug 1120715)
Backed out changeset c5bf9f7bb86e (bug 1120715)
Backed out changeset 7e003fb64d41 (bug 1120715)
Backed out changeset ef66b64e9f8a (bug 1120715)

MozReview-Commit-ID: AI47IhtGWea
2016-03-09 15:57:43 -08:00
Ehsan Akhgari
fc8965058c Bug 1120715 - Part 4: Add tests for Request.cache; r=bkelly 2016-03-09 16:44:50 -05:00
James Graham
89569d4dec Bug 1253226 - fixup! Update web-platform-tests expected data to revision 833a6d13372424758a6e3a770ecc6e8d1ffaae67, a=testonly on a CLOSED TREE
MozReview-Commit-ID: CwDu17e5QQ5
2016-03-04 17:47:09 +00:00
Ben Kelly
9ea5e01065 Bug 1252055 P2 Update tests to verify ServiceWorker object equality. r=ehsan 2016-03-03 19:37:59 -05:00
Ehsan Akhgari
48717d6102 Bug 1251872 - Part 1: Implement Request.referrerPolicy; r=jdm 2016-03-03 16:43:55 -05:00
Christoph Kerschbaumer
86ccc02ba5 Bug 1195172 - Update web platform tests (r=ethan) 2016-03-01 13:06:40 -08:00
Ehsan Akhgari
a615a2efe4 Bug 1251875 - Part 2: Remove the dom.serviceWorkers.interception.opaque.enabled pref; r=bkelly 2016-03-01 09:17:59 -05:00
Ehsan Akhgari
0cd75f330a Bug 1251875 - Part 1: Remove the dom.serviceWorkers.interception.enabled pref; r=bkelly 2016-03-01 09:16:38 -05:00
Ben Kelly
87bff87e35 Bug 1251229 P2 Add wpt test verifying FetchEvent.request.url does not include fragments. r=ehsan 2016-02-29 13:21:19 -05:00