( assert, formSelector, inputValues, expected )
| 1363 | } ); |
| 1364 | |
| 1365 | function fillFormWithValuesAndExpect( assert, formSelector, inputValues, expected ) { |
| 1366 | var i, actual; |
| 1367 | |
| 1368 | for ( i = 0; i < inputValues.length; i++ ) { |
| 1369 | $( formSelector + " input:eq(" + i + ")" ).val( inputValues[ i ] ); |
| 1370 | } |
| 1371 | actual = $( formSelector ).valid(); |
| 1372 | assert.equal( actual, expected, $.validator.format( "Filled inputs of form '{0}' with {1} values ({2})", formSelector, inputValues.length, inputValues.toString() ) ); |
| 1373 | |
| 1374 | } |
| 1375 | |
| 1376 | QUnit.test( "require_from_group", function( assert ) { |
| 1377 | $( "#productInfo" ).validate( { |
no outgoing calls
no test coverage detected
searching dependent graphs…