MCPcopy Create free account
hub / github.com/jquery-validation/jquery-validation / fillFormWithValuesAndExpect

Function fillFormWithValuesAndExpect

test/methods.js:1365–1374  ·  view source on GitHub ↗
( assert, formSelector, inputValues, expected )

Source from the content-addressed store, hash-verified

1363} );
1364
1365function 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
1376QUnit.test( "require_from_group", function( assert ) {
1377 $( "#productInfo" ).validate( {

Callers 1

methods.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…