Merge "Fix: getDataFromDom tests should check for body or head"

This commit is contained in:
jenkins-bot 2013-10-31 18:27:44 +00:00 committed by Gerrit Code Review
commit c00d8d6bb1

View file

@ -56,7 +56,7 @@ ve.test.utils.runGetDataFromDomTests = function( assert, cases ) {
ve.dm.modelRegistry.register( ve.dm.PreformattedNode );
for ( msg in cases ) {
if ( cases[msg].html !== undefined ) {
if ( cases[msg].head !== undefined || cases[msg].body !== undefined ) {
n++;
if ( cases[msg].storeItems ) {
n += cases[msg].storeItems.length;
@ -66,7 +66,7 @@ ve.test.utils.runGetDataFromDomTests = function( assert, cases ) {
QUnit.expect( n );
for ( msg in cases ) {
if ( cases[msg].html !== undefined ) {
if ( cases[msg].head !== undefined || cases[msg].body !== undefined ) {
doc = new ve.dm.Document( [] );
store = doc.getStore();
internalList = doc.getInternalList();