thiemowmde
b02028b671
Move ve-cite QUnit tests to top-level tests/ directory
...
It's just hard to find and confusing when hidden in that
sub-directory.
Bug: T358851
Change-Id: I19ffe73b79fa9add52af12f477afe7abbc6db836
2024-04-03 12:03:33 +02:00
Adam Wight
9535126304
[lint] Satisfy max-len rule
...
These changes mostly improve the code, and align the lint rules with
the MediaWiki base.
Change-Id: Ib4b0595fd9a9298039b8b44a0f1d4a9e90731527
2024-01-30 12:18:52 +01:00
WMDE-Fisch
2a02f5311d
build: Update linter libs
...
* "eslint-config-wikimedia": "0.26.0"
* "grunt-eslint": "24.3.0"
* "grunt-stylelint": "0.19.0"
* "stylelint-config-wikimedia": "0.16.1"
Including auto fixes.
Change-Id: Iadacfc781a48675022144bb8c9489073d0bc19e3
2023-12-12 14:21:07 +01:00
mareikeheuer
1eb405eb54
Convert Cite extention to ES6
...
Bug: T343220
Change-Id: I769f0bfaa5af14d6ea4861ea738b44c98feb6193
2023-08-23 12:39:29 +00:00
Ed Sanders
b7024b6668
Tests: Convert more to template literals
...
Change-Id: I68da55d32ee9ac6c09439c04a7d7ed71c5bafd29
2023-06-01 15:51:43 +01:00
jenkins-bot
c9fb272bdf
Merge "Converter tests: Use template literals to make HTML more legible"
2023-05-31 23:50:12 +00:00
Ed Sanders
18b0b91f50
Converter tests: Use template literals to make HTML more legible
...
Depends-On: Iee8184dd6524b6dc12d19ac79761f6bd15990297
Change-Id: Ie5fd3f180dd2f7882ec10477117f4b0cdee374ad
2023-05-31 17:28:30 +01:00
Adam Wight
00eede66f0
Add a test for "extends" round-tripping
...
Bug: T247922
Change-Id: Iaf8417814aa264fbeca0ad139c1a5f073ea10e8b
2023-05-31 08:15:17 +00:00
thiemowmde
e4e1a38e1e
Add missing space to reference list rendering
...
Minimal test case:
<ref name=a>a</ref>
<ref name=a/>
<references/>
This renders as "1. ↑ 1.0 1.1 a" in both the legacy parser as well
as Parsoid. The moment you start editing this in VisualEditor the
space before "a" disappears. This patch fixes this inconsistency.
Change-Id: Idfea1a445fc98a0433640b4f706fafcc4e236c18
2023-05-16 15:43:16 +00:00
Bartosz Dziewoński
a845923a65
Specify document base URLs in more test cases
...
Depends-On: I0e301bef38d97fa2234aa901c787360d9fbde8a3
Change-Id: I07a8c097dba0f5572c0aedf4febdf1434063ea6f
2023-01-22 16:00:09 +01:00
Bartosz Dziewoński
c0746c7fa8
Remove 'origTitle' in tests
...
Depends-On: I0ad0a655380eb2fb29b5ac01e2e399ac550ce34a
Bug: T325766
Change-Id: Ib5c33aceb9430aba49c692552b54427e64a787f3
2022-12-22 17:57:41 +00:00
Bartosz Dziewoński
b89db98b7a
Use more realistic fake data in test cases
...
Change-Id: Ie5a30fe254bd69db4f8fe363baeb926282897d00
2022-12-22 10:47:15 +00:00
Ed Sanders
e539a60fb9
ve-cite: Add test for simple case of re-used reference
...
In our first case we have a reference re-used before it
is defined, but that doesn't trigger the bug that caused
T296044.
Change-Id: Ia0bbd40528228275f0a978a0a459388a04ea2e79
2021-11-19 13:51:21 +00:00
Ed Sanders
638dbbff60
ve-cite: Update CSS classes in tests
...
Change-Id: I4546a71d541e1d22a4c34e6d0f5173a993792ff9
2021-11-19 13:51:21 +00:00
Bartosz Dziewoński
72f79aae3b
Add "reference" class to references in VisualEditor
...
* Add it to CE HTML, for compatibility with site styles.
* Add it to DM HTML of newly created references only. Existing
references just use whatever classes we got from Parsoid, to avoid
unnecessary DOM changes and dirty diffs.
Bug: T265930
Depends-On: I61a2132f3876e2d9567d985358f51eb51c479813
Change-Id: I9d6856f03071c09617b8ae7db938135a3e30fe8e
2020-11-06 18:04:13 +00:00
Bartosz Dziewoński
fd11b87c5d
Remove "hrefPrefix" from tests
...
Bug: T206357
Change-Id: I8728f63084902c76d1c61193be4367939b069f1a
2019-04-03 20:09:59 +00:00
Kunal Mehta
0395035789
build: Set "root": true, in .eslintrc.json
...
This ensures that each repository's "npm test" command is fully
independent of wherever it might be in the filesystem.
Bug: T206485
Change-Id: I54d052bed4ceed175a938896154fd6ad5c89f964
2018-12-18 10:47:31 +00:00
Ed Sanders
eb7bed046b
Template reflist: Re-render when converting for preview (e.g. visual diff)
...
Bug: T202324
Change-Id: I33dfb26a8f033f5ee5a89b2c1ad9aa081d3a55d1
2018-09-13 21:04:47 +01:00
Ed Sanders
6c38c009d7
Add preview mode converter tests
...
Change-Id: I2e9dc615a82b725d4061b39e6bdc56350e5d3d1d
Depends-On: I3f1a4772cbf67091b5fd52bab610390ebd9b16ef
2018-05-31 16:27:14 +01:00
Ed Sanders
475d825918
Use MWPreviewElement in view mode, instead of building a view node
...
Also "unwrap" paragraphs using CSS instead of DOM manipulation.
Change-Id: I5565c2c43580d5d47bc65ee06d9d14fccace90c6
Depends-On: Ibbf989dcebf2d21fd2ac481f17062f366ff29e41
Depends-On: I284bcd5dd25cdbb883427ebacb41af1bbf50b60f
2018-05-13 20:01:19 +01:00
Thiemo Mättig
bbc1f2c91d
Use standard form for @license tags
...
See https://spdx.org/licenses/
Change-Id: Ic091ebc3844abcd6de90b3241382fb4732200a6d
2018-03-20 03:18:37 +00:00
Ed Sanders
3590446c2c
Fix detection of template-generated ref lists
...
Bug: T188898
Change-Id: I77333323d8e6a324b1655c10c94ae397aad241b3
2018-03-05 16:11:03 +00:00
Ed Sanders
495d9420f0
Treat template-generated reference lists as real ones
...
This will allow them to auto-update, and be used in the
visual diff.
We record a templateGenerated attribute to prevent them
being edited, and to ensure they roundtrip back to
templates.
Bug: T52769
Change-Id: I4460d2c98166581e942e35921b20091990f5f6c7
2018-02-07 10:48:57 +00:00
Ed Sanders
f1d1cf38f5
Render ref list from CE node when converterting for clipboard
...
Bug: T186407
Depends-On: Iee635eaf42e3780da4e46e3c0f12417aa331655b
Depends-On: I1500f42dc0bf761f495e25c2d3d047157292df7d
Change-Id: Ia3b2549eb246fc0af56446a7d6a32ec0f54f4099
2018-02-06 16:47:07 +00:00
Ed Sanders
dd2aeb641d
Remove metadata from unit tests
...
Metadata is being removed from VE.
Change-Id: Icc614ed7a9792b7d9475d7a804bb8eea48424043
2018-01-22 14:31:44 -08:00
jenkins-bot
6b1e7e126f
Merge "doc: Bump copyright year"
2018-01-03 19:18:07 +00:00
James D. Forrester
0999d771b6
doc: Bump copyright year
...
Also make the overly-terse statement clearer.
Change-Id: I752bb82444bf7cb41480076bace42331dc35a598
2018-01-02 17:05:50 -08:00
Ed Sanders
366d44926a
MWReferenceNode: Generate 'sup' tags by default
...
Bug: T45094
Change-Id: I8973328095f36cce2cebbf335ee7421187eedfad
2018-01-02 15:39:08 +00:00
Ed Sanders
a3a4bd945b
VE: Support 'responsive' attribute
...
Bug: T53260
Change-Id: I1e0ae39e8c30653b7ba0f537723a4bcd79ac3162
2017-09-19 17:03:39 +01:00
David Chan
2efa23e5b5
Fix expected remove data to match actual remove data exactly
...
Change-Id: I0fb294265fc41015da842f7505bdedb39db7b91a
2017-08-13 11:41:30 -04:00
Thalia
1a5d90b4e3
Visual diff: Show correct reference indices in diff
...
Bug: T162819
Change-Id: I7eec4ee12a24ff99388cc0c95a24d50f321511f9
2017-06-26 19:19:03 +00:00
James D. Forrester
0d20873fa6
doc: Bump copyright year notice, 'team' name
...
Change-Id: Ia090c417a1aa716b255613199b5e49616bf0517a
2017-04-20 16:50:43 +00:00
Ed Sanders
61a624584b
Send better HTML to the clipboard
...
Change-Id: Id8539697e6b30fd98e672452eda9b9c792c3c366
2017-03-20 13:42:03 +00:00
Ed Sanders
8b0e9c728c
VisualEditor: Bring in unit tests from VE
...
Change-Id: I7da5f25f61d0c7f2331ab927c35d8f6a975041b8
2016-02-05 13:41:43 -08:00