mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
Merge "Update VE core submodule to master (aaad03a)"
This commit is contained in:
commit
c5c2cb809c
2
lib/ve
2
lib/ve
|
@ -1 +1 @@
|
|||
Subproject commit cd00a93d2f69218ec4796d47205da884b17779cd
|
||||
Subproject commit aaad03aeac4b1dc3bfd01b018b37bc3a115b27d8
|
|
@ -11,7 +11,7 @@ QUnit.module( 've.ce.ContentBranchNode' );
|
|||
|
||||
// FIXME runner copypasted from core, use data provider
|
||||
QUnit.test( 'getRenderedContents', function ( assert ) {
|
||||
var i, len, doc, $rendered, $wrapper,
|
||||
var i, len, doc, $wrapper,
|
||||
cases = [
|
||||
{
|
||||
'msg': 'Annotation spanning text and inline nodes',
|
||||
|
@ -44,8 +44,7 @@ QUnit.test( 'getRenderedContents', function ( assert ) {
|
|||
QUnit.expect( cases.length );
|
||||
for ( i = 0, len = cases.length; i < len; i++ ) {
|
||||
doc = new ve.dm.Document( ve.dm.example.preprocessAnnotations( cases[i].data ) );
|
||||
$rendered = ( new ve.ce.ParagraphNode( doc.getDocumentNode().getChildren()[0] ) ).getRenderedContents();
|
||||
$wrapper = $( '<div>' ).append( $rendered );
|
||||
$wrapper = $( new ve.ce.ParagraphNode( doc.getDocumentNode().getChildren()[0] ).getRenderedContents() );
|
||||
// HACK strip out all the class="ve-ce-TextStyleAnnotation ve-ce-TextStyleBoldAnnotation" crap
|
||||
$wrapper.find( '.ve-ce-TextStyleAnnotation' ).removeAttr( 'class' );
|
||||
assert.equalDomElement( $wrapper[0], $( '<div>' ).html( cases[i].html )[0], cases[i].msg );
|
||||
|
|
Loading…
Reference in a new issue