Fix: getDataFromDom tests should check for body or head

This wasn't updated when Roan split html into body & head, so
0 tests were running!

Change-Id: I4396b94426b2009f20707d64bf3d0f1ae651dbc8
This commit is contained in:
Ed Sanders 2013-10-31 09:02:19 +00:00
parent 5aa7f6526c
commit 91f6b1d86c

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