mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Merge "Fix: getDataFromDom tests should check for body or head"
This commit is contained in:
commit
c00d8d6bb1
|
@ -56,7 +56,7 @@ ve.test.utils.runGetDataFromDomTests = function( assert, cases ) {
|
||||||
ve.dm.modelRegistry.register( ve.dm.PreformattedNode );
|
ve.dm.modelRegistry.register( ve.dm.PreformattedNode );
|
||||||
|
|
||||||
for ( msg in cases ) {
|
for ( msg in cases ) {
|
||||||
if ( cases[msg].html !== undefined ) {
|
if ( cases[msg].head !== undefined || cases[msg].body !== undefined ) {
|
||||||
n++;
|
n++;
|
||||||
if ( cases[msg].storeItems ) {
|
if ( cases[msg].storeItems ) {
|
||||||
n += cases[msg].storeItems.length;
|
n += cases[msg].storeItems.length;
|
||||||
|
@ -66,7 +66,7 @@ ve.test.utils.runGetDataFromDomTests = function( assert, cases ) {
|
||||||
QUnit.expect( n );
|
QUnit.expect( n );
|
||||||
|
|
||||||
for ( msg in cases ) {
|
for ( msg in cases ) {
|
||||||
if ( cases[msg].html !== undefined ) {
|
if ( cases[msg].head !== undefined || cases[msg].body !== undefined ) {
|
||||||
doc = new ve.dm.Document( [] );
|
doc = new ve.dm.Document( [] );
|
||||||
store = doc.getStore();
|
store = doc.getStore();
|
||||||
internalList = doc.getInternalList();
|
internalList = doc.getInternalList();
|
||||||
|
|
Loading…
Reference in a new issue