Changeset 17927


Ignore:
Timestamp:
07/22/14 13:46:55 (10 years ago)
Author:
tbretz
Message:
Added a timeout to checkStates
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/scripts/CheckStates.js

    r17925 r17927  
    4040 *
    4141 */
    42 function checkStates(table, timeout)
     42function checkStates(table, timeout, wait)
    4343{
    4444    if (timeout===undefined)
     
    6969                    continue;
    7070
    71                 dim.log(table[i][0]+" in ["+states[i]+"] not as it ought to be ["+table[i][1]+"]");
     71                if (!wait)
     72                    dim.log(table[i][0]+" in ["+states[i]+"] not as it ought to be ["+table[i][1]+"]");
     73
    7274                rc = false;
    7375            }
    74 
    75             return rc;
     76            if (rc)
     77                return rc;
     78
     79            if (!wait)
     80                return false;
    7681        }
    7782
Note: See TracChangeset for help on using the changeset viewer.