mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
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:
parent
5aa7f6526c
commit
91f6b1d86c
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue