tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

timing-tests.js (907B)


      1 'use strict';
      2 
      3 // =================================
      4 //
      5 // Common timing parameter test data
      6 //
      7 // =================================
      8 
      9 
     10 // ------------------------------
     11 //  Delay values
     12 // ------------------------------
     13 
     14 const gBadDelayValues = [
     15  NaN, Infinity, -Infinity
     16 ];
     17 
     18 // ------------------------------
     19 //  Duration values
     20 // ------------------------------
     21 
     22 const gGoodDurationValues = [
     23  { specified: 123.45, computed: 123.45 },
     24  { specified: 'auto', computed: 0 },
     25  { specified: Infinity, computed: Infinity },
     26 ];
     27 
     28 const gBadDurationValues = [
     29  -1, NaN, -Infinity, 'abc', '100'
     30 ];
     31 
     32 // ------------------------------
     33 //  iterationStart values
     34 // ------------------------------
     35 
     36 const gBadIterationStartValues = [
     37  -1, NaN, Infinity, -Infinity
     38 ];
     39 
     40 // ------------------------------
     41 //  iterations values
     42 // ------------------------------
     43 
     44 const gBadIterationsValues = [
     45  -1, -Infinity, NaN
     46 ];