mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-23 19:43:19 +00:00
Merge "Update reference paste test with "reference" class"
This commit is contained in:
commit
d7d2faa23e
|
@ -97,9 +97,9 @@ QUnit.test( 'beforePaste/afterPaste', function ( assert ) {
|
||||||
{
|
{
|
||||||
documentHtml: '<p></p>',
|
documentHtml: '<p></p>',
|
||||||
rangeOrSelection: new ve.Range( 1 ),
|
rangeOrSelection: new ve.Range( 1 ),
|
||||||
pasteHtml: 'a<sup typeof="mw:Extension/ref" data-mw="{}" class="mw-ref" about="#mwt1" id="cite_ref-foo-0" rel="dc:references"><a href="./Article#cite_note-foo-0"><span class="mw-reflink-text ve-pasteProtect">[1]</span></a></sup>b',
|
pasteHtml: 'a<sup typeof="mw:Extension/ref" data-mw="{}" class="mw-ref reference" about="#mwt1" id="cite_ref-foo-0" rel="dc:references"><a href="./Article#cite_note-foo-0"><span class="mw-reflink-text ve-pasteProtect">[1]</span></a></sup>b',
|
||||||
expectedRangeOrSelection: new ve.Range( 5 ),
|
expectedRangeOrSelection: new ve.Range( 5 ),
|
||||||
expectedHtml: '<p>a<sup typeof="mw:Extension/ref" data-mw="{"name":"ref"}" class="mw-ref"><a style="counter-reset: mw-Ref 1;"><span class="mw-reflink-text">[1]</span></a></sup>b</p>',
|
expectedHtml: '<p>a<sup typeof="mw:Extension/ref" data-mw="{"name":"ref"}" class="mw-ref reference"><a style="counter-reset: mw-Ref 1;"><span class="mw-reflink-text">[1]</span></a></sup>b</p>',
|
||||||
msg: 'VE references not stripped'
|
msg: 'VE references not stripped'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue