public/debug/phpunitwebui/js/functions.js
/**
 * Controls for a suite.
 *
 * @param string suite name
 * @param boolean run only/exlude suite
 * @param string testCase used to run a single test case
 * @param boolean generate code coverage
 */
Controls for a suite.
@param string suite name
@param boolean run only/exlude suite
@param string testCase used to run a single test case
@param boolean generate code coverage
Controls for a suite . @param string suite name @param boolean run only / exlude suite @param string testCase used to run a single test case @param boolean generate code coverage
function controlSuite(suite, val, testCase, coverage)
{
    if (val == true)
        setCheckBoxes('menuForm', false); 
    if (testCase != null) {
        setCheckBox(testCase, true);
        setCheckBox(suite, true);
    } else {
        toggleAllTests(suite, val);
    }
    if (coverage == true)
        document.getElementById('coverage').value = "true";
    runTests();
    document.getElementById('coverage').value = "false";
}
function controlSuite ( suite , val , testCase , coverage ) { if ( val == true ) setCheckBoxes ( 'menuForm' , false ) ; if ( testCase != null ) { setCheckBox ( testCase , true ) ; setCheckBox ( suite , true ) ; } else { toggleAllTests ( suite , val ) ; } if ( coverage == true ) document . getElementById ( 'coverage' ) . value = "true" ; runTests ( ) ; document . getElementById ( 'coverage' ) . value = "false" ; }
Controls for a suite.
Controls for a suite .
// run only // uncheck all checkboxes