Merge "Update VE core submodule to master (aaad03a)"

This commit is contained in:
jenkins-bot 2014-03-17 18:52:50 +00:00 committed by Gerrit Code Review
commit c5c2cb809c
2 changed files with 3 additions and 4 deletions

2
lib/ve

@ -1 +1 @@
Subproject commit cd00a93d2f69218ec4796d47205da884b17779cd
Subproject commit aaad03aeac4b1dc3bfd01b018b37bc3a115b27d8

View file

@ -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 );