QUnit: Remove all code for counting tests

Change-Id: Iff2ea4f957cd835ca489b0c189d1511c0409f71f
This commit is contained in:
Ed Sanders 2017-04-28 16:49:43 +01:00
parent 9b6d9874db
commit d937925367
4 changed files with 4 additions and 9 deletions

View file

@ -11,8 +11,6 @@ QUnit.test( 'getModelFromDom', function ( assert ) {
var msg, caseItem,
cases = ve.dm.citeExample.domToDataCases;
QUnit.expect( ve.test.utils.countGetModelFromDomTests( cases ) );
for ( msg in cases ) {
caseItem = ve.copy( cases[ msg ] );
if ( caseItem.mwConfig ) {
@ -27,8 +25,6 @@ QUnit.test( 'getDomFromModel', function ( assert ) {
var msg, caseItem,
cases = ve.dm.citeExample.domToDataCases;
QUnit.expect( 3 * Object.keys( cases ).length );
for ( msg in cases ) {
caseItem = ve.copy( cases[ msg ] );
if ( caseItem.mwConfig ) {

View file

@ -9,7 +9,7 @@ QUnit.module( 've.dm.InternalList (Cite)', ve.test.utils.mwEnvironment );
/* Tests */
QUnit.test( 'addNode/removeNode', 6, function ( assert ) {
QUnit.test( 'addNode/removeNode', function ( assert ) {
var doc = ve.dm.citeExample.createExampleDocument( 'references' ),
newInternalList = new ve.dm.InternalList( doc ),
referenceNodes = [
@ -184,7 +184,7 @@ QUnit.test( 'addNode/removeNode', 6, function ( assert ) {
);
} );
QUnit.test( 'getItemInsertion', 4, function ( assert ) {
QUnit.test( 'getItemInsertion', function ( assert ) {
var insertion, index,
doc = ve.dm.citeExample.createExampleDocument( 'references' ),
internalList = doc.getInternalList();
@ -215,7 +215,7 @@ QUnit.test( 'getItemInsertion', 4, function ( assert ) {
assert.strictEqual( insertion.transaction, null, 'Insertion with duplicate key has null transaction' );
} );
QUnit.test( 'getUniqueListKey', 7, function ( assert ) {
QUnit.test( 'getUniqueListKey', function ( assert ) {
var generatedName,
doc = ve.dm.citeExample.createExampleDocument( 'references' ),
internalList = doc.getInternalList();

View file

@ -162,7 +162,7 @@ QUnit.test( 'newFromDocumentInsertion with references', function ( assert ) {
]
}
];
QUnit.expect( 3 * cases.length );
for ( i = 0; i < cases.length; i++ ) {
doc = ve.dm.citeExample.createExampleDocument( cases[ i ].doc );
if ( cases[ i ].newDocData ) {

View file

@ -85,7 +85,6 @@ QUnit.test( 'convert', function ( assert ) {
}
];
QUnit.expect( cases.length * 2 );
for ( i = 0; i < cases.length; i++ ) {
ve.test.utils.runWikitextStringHandlerTest(
assert, this.server, cases[ i ].pasteString, cases[ i ].pasteType, cases[ i ].parsoidResponse,