1 line
139 KiB
JavaScript
1 line
139 KiB
JavaScript
(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["developer_tools-debugPanelController"],{8038:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{eval("/* provided dependency */ var $ = __webpack_require__(9755);\n$( document ).on( 'click', '.tt_debug_close_btn', function( e ) {\n\te.preventDefault();\n\tDebug.closePanel();\n} );\n\n$( document ).on( 'change', '#tt_debug_enable_checkbox', function( e ) {\n\te.preventDefault();\n\tDebug.setEnable( $( this ).is( ':checked' ) );\n} );\n\n$( document ).on( 'click', '#trigger_js_exception_button', function( e ) {\n\te.preventDefault();\n\tvar exception_type = $( '#tt_debug_exception_type_select' ).val();\n\n\tswitch ( exception_type ) {\n\t\tcase 'js_error':\n\t\t\tnon_existant_variable.non_existant_function();\n\t\t\tbreak;\n\t\tcase 'js_load_script_parser_error':\n\t\t\tvar script_path = Global.getViewPathByViewId( 'DeveloperTools' ) + 'triggerParserError.js';\n\t\t\t//remove from cache to ensure that we're sending a totally new request\n\t\t\tdelete LocalCacheData.loadedScriptNames[script_path];\n\t\t\t//change the js version number to trigger forced reload\n\t\t\tAPIGlobal.pre_login_data.application_build += '_FORCE';\n\t\t\treturn Global.loadScript( script_path, function( result ) {\n\t\t\t\tDebug.Arr( result, 'no error happened.' );\n\t\t\t} );\n\t\tcase 'js_load_script_404_error':\n\t\t\tGlobal.loadScript( 'nonexistantscript.js', function( result ) {\n\t\t\t\tDebug.Arr( result, 'no error happened.' );\n\t\t\t} );\n\t\t\tbreak;\n\t}\n} );\n\n$( document ).on( 'click', '#trigger_js_timeout_button', function( e ) {\n\te.preventDefault();\n\tGlobal.idle_time = 100;\n\tGlobal.doPingIfNecessary();\n} );\n\n$( document ).on( 'change', '#tt_debug_exception_verbosity', function( e ) {\n\te.preventDefault();\n\tDebug.setVerbosity( $( this ).val() );\n} );\n\n$( document ).on( 'change', '#tt_overlay_disable_checkbox', function( e ) {\n\te.preventDefault();\n\tGlobal.UNIT_TEST_MODE = $( this ).is( ':checked' );\n\tGlobal.event_bus.emit( 'tt_left_container', 'rebuild_menu' );\n} );\n\n$( document ).on( 'click', '#qunit_test_button', function( e ) {\n\te.preventDefault();\n\t$( '#tt_debug_console' ).css( 'width', '80%' );\n\t$( '#tt_debug_console' ).css( 'margin', '0 auto' );\n\trunUnitTests();\n} );\n\n/**\n * Put all unit tests in this function\n */\n\n$( document ).on( 'change', '#tt_output_variable_select', function( e ) {\n\te.preventDefault();\n\toutput_system_data( $( this ).val() );\n} );\n\n$( document ).on( 'click', '#trigger_output_variable_select', function( e ) {\n\te.preventDefault();\n\toutput_system_data( $( '#tt_output_variable_select' ).val() );\n} );\n\n$( document ).on( 'click', '#trigger_arbitrary_script', function( e ) {\n\te.preventDefault();\n\tvar script = $( '#arbitrary_script' ).val();\n\tscript = script.replace( /(\\r\\n|\\n|\\r)/gm, '' ); //strip all line-ends\n\tconsole.log( eval( script ) );\n} );\n\n// #VUETEST\n$( document ).on( 'click', '#load_vue_test_button', function( e ) {\n\te.preventDefault();\n\twindow.VueRouter.push('test');\n} );\n\n\n\n$( document ).on( 'click', '#awesomebox_test', function( e ) {\n\te.preventDefault();\n\tDebug.showAwesomeBoxTest();\n} );\n\n$( document ).on( 'click', '#grid_test', function( e ) {\n\te.preventDefault();\n\tDebug.showGridTest();\n} );\n\n$( document ).on( 'click', '#WidgetTest_test', function( e ) {\n\te.preventDefault();\n\tDebug.showWidgetTest();\n} );\n\nfunction breakOn( obj, propertyName, mode, func ) {\n\t// this is directly from https://github.com/paulmillr/es6-shim\n\tfunction getPropertyDescriptor( obj, name ) {\n\t\tvar property = Object.getOwnPropertyDescriptor( obj, name );\n\t\tvar proto = Object.getPrototypeOf( obj );\n\t\twhile ( property === undefined && proto !== null ) {\n\t\t\tproperty = Object.getOwnPropertyDescriptor( proto, name );\n\t\t\tproto = Object.getPrototypeOf( proto );\n\t\t}\n\t\treturn property;\n\t}\n\n\tfunction verifyNotWritable() {\n\t\tif ( mode !== 'read' )\n\t\t\tthrow \"This property is not writable, so only possible mode is 'read'.\";\n\t}\n\n\tvar enabled = true;\n\tvar originalProperty = getPropertyDescriptor( obj, propertyName );\n\tvar newProperty = { enumerable: originalProperty.enumerable };\n\n\t// write\n\tif ( originalProperty.set ) {// accessor property\n\t\tnewProperty.set = function( val ) {\n\t\t\tif ( enabled && ( !func || func && func( val ) ) )\n\t\t\t\tdebugger;\n\n\t\t\toriginalProperty.set.call( this, val );\n\t\t};\n\t} else if ( originalProperty.writable ) {// value property\n\t\tnewProperty.set = function( val ) {\n\t\t\tif ( enabled && ( !func || func && func( val ) ) )\n\t\t\t\tdebugger;\n\n\t\t\toriginalProperty.value = val;\n\t\t};\n\t} else {\n\t\tverifyNotWritable();\n\t}\n\n\t// read\n\tnewProperty.get = function( val ) {\n\t\tif ( enabled && mode === 'read' && ( !func || func && func( val ) ) )\n\t\t\tdebugger;\n\n\t\treturn originalProperty.get ? originalProperty.get.call( this, val ) : originalProperty.value;\n\t};\n\n\tObject.defineProperty( obj, propertyName, newProperty );\n\n\treturn {\n\t\tdisable: function() {\n\t\t\tenabled = false;\n\t\t},\n\n\t\tenable: function() {\n\t\t\tenabled = true;\n\t\t}\n\t};\n};\n\nfunction runUnitTests() {\n\tif ( $( '#qunit_script' ).length == 0 ) {\n\t\t$( '<script id=\\'qunit_script\\' src=\\'framework/qunit/qunit.js\\'><\/script>' ).appendTo( 'head' );\n\t\t$( '<link rel=\\'stylesheet\\' type=\\'text/css\\' href=\\'framework/qunit/qunit.css\\'>' ).appendTo( 'head' );\n\t\tQUnit.config.autostart = false;\n\t\t$( '#qunit_container' ).css( 'width', '100vw' );\n\t\t$( '#qunit_container' ).css( 'height', '100vh' );\n\t\t$( '#qunit_container' ).css( 'overflow-y', 'scroll' );\n\t\t$( '#qunit_container' ).css( 'position', 'fixed' );\n\t\t$( '#qunit_container' ).css( 'top', '0px' );\n\t\t$( '#qunit_container' ).css( 'left', '0px' );\n\t\t$( '#qunit_container' ).css( 'z-index', '100' );\n\t\t$( '#qunit_container' ).css( 'background', '#fff' );\n\t\t$( '#qunit_container' ).show();\n\n\t\t$( '#tt_debug_console' ).remove();\n\t}\n\tif ( !window.qunit_initiated ) {\n\t\twindow.qunit_initiated = true;\n\t\t//QUnit.start(); //This causes a JavaScript exception, but does not seem to be required. Test ran without it.\n\t}\n\n\tQUnit.module( 'QUnit Sanity' );\n\tQUnit.test( 'QUnit test', function( assert ) {\n\t\tassert.ok( 1 == '1', 'QUnit is loaded and sane!' );\n\t} );\n\n\tQUnit.module( 'Global.js' );\n\tQUnit.test( 'Global.MoneyRound', function( assert ) {\n\t\tassert.ok( Global.MoneyRound( 1.005, 2 ) == '1.01', 'Global.MoneyRound(1.005, 2) == 1.01 -- Passed!' );\n\t\tassert.ok( Global.MoneyRound( 1.77777777, 2 ) == '1.78', 'Global.MoneyRound(1.77777777, 2) == 1.78 -- Passed!' );\n\t\tassert.ok( Global.MoneyRound( 9.1, 2 ) == '9.10', 'Global.MoneyRound(9.1, 2) == 9.10 -- Passed!' );\n\t\tassert.ok( Global.MoneyRound( 1.0049999999999999, 2 ) == '1.01', 'Global.MoneyRound(1.0049999999999999, 2) == 1.01 -- Passed!' );\n\n\t\tassert.ok( Global.MoneyRound( -28.120, 2 ) == '-28.12', 'Global.MoneyRound(-28.120, 2) == -28.12 -- Passed!' );\n\t\tassert.ok( Global.MoneyRound( 28.120, 2 ) == '28.12', 'Global.MoneyRound(28.120, 2) == 28.12 -- Passed!' );\n\n\t\tassert.ok( Global.MoneyRound( -28.124, 2 ) == '-28.12', 'Global.MoneyRound(-28.124, 2) == -28.12 -- Passed!' );\n\t\tassert.ok( Global.MoneyRound( 28.124, 2 ) == '28.12', 'Global.MoneyRound(28.124, 2) == 28.12 -- Passed!' );\n\t\tassert.ok( Global.MoneyRound( -28.125, 2 ) == '-28.13', 'Global.MoneyRound(-28.125, 2) == -28.13 -- Passed!' );\n\t\tassert.ok( Global.MoneyRound( 28.125, 2 ) == '28.13', 'Global.MoneyRound(28.125, 2) == 28.13 -- Passed!' );\n\n\t\tassert.ok( Global.MoneyRound( -28.129, 2 ) == '-28.13', 'Global.MoneyRound(-28.129, 2) == -28.13 -- Passed!' );\n\t\tassert.ok( Global.MoneyRound( 28.129, 2 ) == '28.13', 'Global.MoneyRound(28.129, 2) == 28.13 -- Passed!' );\n\n\t\tassert.ok( Global.MoneyRound( -0.124, 2 ) == '-0.12', 'Global.MoneyRound(-0.124, 2) == -0.12 -- Passed!' );\n\t\tassert.ok( Global.MoneyRound( 0.124, 2 ) == '0.12', 'Global.MoneyRound(0.124, 2) == 0.12 -- Passed!' );\n\t\tassert.ok( Global.MoneyRound( -0.155, 2 ) == '-0.16', 'Global.MoneyRound(-0.155, 2) == -0.16 -- Passed!' );\n\t\tassert.ok( Global.MoneyRound( 0.155, 2 ) == '0.16', 'Global.MoneyRound(0.155, 2) == 0.16 -- Passed!' );\n\n\t\tassert.ok( Global.MoneyRound( -0.001, 2 ) == '0.00', 'Global.MoneyRound(-0.001, 2) == 0.00 -- Passed!' );\n\t\tassert.ok( Global.MoneyRound( 0.001, 2 ) == '0.00', 'Global.MoneyRound(0.001, 2) == 0.00 -- Passed!' );\n\t} );\n\n\tQUnit.test( 'Global.js sort-prefix', function( assert ) {\n\t\tvar res = Global.removeSortPrefix( '-1234-11111111-1111-1111-1111-111111111111' );\n\t\tassert.ok( res == '11111111-1111-1111-1111-111111111111', 'stripped from synth uuid a.' );\n\n\t\tvar res = Global.removeSortPrefix( '11111111-1111-1111-1111-111111111111' );\n\t\tassert.ok( res == '11111111-1111-1111-1111-111111111111', 'stripped from synth uuid no sort-prefix.' );\n\n\t\tvar res = Global.removeSortPrefix( '-1234-05d3d547-0e2b-9233-65ba-4e229fd72bc0' );\n\t\tassert.ok( res == '05d3d547-0e2b-9233-65ba-4e229fd72bc0', 'stripped from valid UUID with 4 digit numeric section in the middle.' );\n\n\t\tvar res = Global.removeSortPrefix( '05d3d547-0e2b-9233-65ba-4e229fd72bc0' );\n\t\tassert.ok( res == '05d3d547-0e2b-9233-65ba-4e229fd72bc0', 'stripped from valid UUID with 4 digit numeric section in the middle.' );\n\n\t\tvar res = Global.removeSortPrefix( '-1234-111' );\n\t\tassert.ok( res == '111', 'stripped from int a.' );\n\n\t\tvar res = Global.removeSortPrefix( '111' );\n\t\tassert.ok( res == '111', 'stripped from int with no sort-prefix.' );\n\n\t\tvar res = Global.removeSortPrefix( '-1234-testStringGalrblyBlah' );\n\t\tassert.ok( res == 'testStringGalrblyBlah', 'stripped from string a.' );\n\n\t\tvar res = Global.removeSortPrefix( 'testStringGalrblyBlah' );\n\t\tassert.ok( res == 'testStringGalrblyBlah', 'stripped from string with no sort-prefix.' );\n\n\t\tvar res = Global.removeSortPrefixFromArray( {\n\t\t\t'-1112-testStringGalrblyBlah': 'string',\n\t\t\t'-1113-1234': 'int',\n\t\t\t'-1234-11111111-1111-1111-1111-111111111111': 'uuid'\n\t\t} );\n\t\tvar cnt = 0;\n\n\t\tassert.ok( res['testStringGalrblyBlah'] == 'string', 'prefix stripped properly' );\n\t\tassert.ok( res['1234'] == 'int', 'prefix stripped properly' );\n\t\tassert.ok( res['11111111-1111-1111-1111-111111111111'] == 'uuid', 'prefix stripped properly' );\n\t} );\n\n\tQUnit.test( 'Global.js parseTimeUnit HH:MM:SS', function( assert ) {\n\t\tassert.equal( Global.parseTimeUnit( '00:01', 10 ), 60 );\n\t\tassert.equal( Global.parseTimeUnit( '-00:01', 10 ), -60 );\n\n\t\tassert.equal( Global.parseTimeUnit( '01:00', 10 ), 3600 );\n\t\tassert.equal( Global.parseTimeUnit( '10:00', 10 ), 36000 );\n\t\tassert.equal( Global.parseTimeUnit( '100:00', 10 ), 360000 );\n\t\tassert.equal( Global.parseTimeUnit( '1000:00', 10 ), 3600000 );\n\t\tassert.equal( Global.parseTimeUnit( '10000:00', 10 ), 36000000 );\n\t\tassert.equal( Global.parseTimeUnit( '10000:01.5', 10 ), 36000060 );\n\n\t\tassert.equal( Global.parseTimeUnit( '01', 10 ), 3600 );\n\t\tassert.equal( Global.parseTimeUnit( '1', 10 ), 3600 );\n\t\tassert.equal( Global.parseTimeUnit( '-1', 10 ), -3600 );\n\t\tassert.equal( Global.parseTimeUnit( '1:', 10 ), 3600 );\n\t\tassert.equal( Global.parseTimeUnit( '1:00:00', 10 ), 3600 );\n\t\tassert.equal( Global.parseTimeUnit( '1:00:01', 10 ), 3601 );\n\t\tassert.equal( Global.parseTimeUnit( '\"1:00:01\"', 10 ), 3601 );\n\n\t\tassert.equal( Global.parseTimeUnit( '00:60', 10 ), 3600 );\n\t\tassert.equal( Global.parseTimeUnit( ':60', 10 ), 3600 );\n\t\tassert.equal( Global.parseTimeUnit( ':1', 10 ), 60 );\n\n\t\tassert.equal( Global.parseTimeUnit( '1:00:01.5', 10 ), 3601 );\n\t\tassert.equal( Global.parseTimeUnit( '\"1:00:01.5\"', 10 ), 3601 );\n\t\tassert.equal( Global.parseTimeUnit( '1:1.5', 10 ), 3660 );\n\n\t\t//Hybrid mode.\n\t\tassert.equal( Global.parseTimeUnit( '1.000', 10 ), 3600 );\n\t\tassert.equal( Global.parseTimeUnit( '1.00', 10 ), 3600 );\n\t\tassert.equal( Global.parseTimeUnit( '1', 10 ), 3600 );\n\t\tassert.equal( Global.parseTimeUnit( '-1', 10 ), -3600 );\n\t\tassert.equal( Global.parseTimeUnit( '01', 10 ), 3600 );\n\n\t\tassert.equal( Global.parseTimeUnit( '0.25', 10 ), 900 );\n\t\tassert.equal( Global.parseTimeUnit( '0.50', 10 ), 1800 );\n\n\t\tassert.equal( Global.parseTimeUnit( '0.34', 10 ), 1200 ); //Automatically rounds to nearest 1min\n\t} );\n\n\tQUnit.test( 'Global.js parseTimeUnit Hours', function( assert ) {\n\t\tassert.equal( Global.parseTimeUnit( '1000.0000', 20 ), 3600000 );\n\t\tassert.equal( Global.parseTimeUnit( '1,000.0000', 20 ), 3600000 );\n\t\tassert.equal( Global.parseTimeUnit( '1 000.0000', 20 ), 3600000 );\n\t\tassert.equal( Global.parseTimeUnit( '-1,000.0000', 20 ), -3600000 );\n\t\tassert.equal( Global.parseTimeUnit( ' \"-1, 000.0000\" ', 20 ), -3600000 );\n\t\tassert.equal( Global.parseTimeUnit( '1.000', 20 ), 3600 );\n\t\tassert.equal( Global.parseTimeUnit( '1.00', 20 ), 3600 );\n\t\tassert.equal( Global.parseTimeUnit( '1', 20 ), 3600 );\n\t\tassert.equal( Global.parseTimeUnit( '-1', 20 ), -3600 );\n\t\tassert.equal( Global.parseTimeUnit( '01', 20 ), 3600 );\n\n\t\tassert.equal( Global.parseTimeUnit( '0.25', 20 ), 900 );\n\t\tassert.equal( Global.parseTimeUnit( '0.50', 20 ), 1800 );\n\n\t\tassert.equal( Global.parseTimeUnit( '0.34', 20 ), 1200 ); //Automatically rounds to nearest 1min\n\n\t\t//Hybrid mode\n\t\tassert.equal( Global.parseTimeUnit( '00:01', 20 ), 60 );\n\t\tassert.equal( Global.parseTimeUnit( '-00:01', 20 ), -60 );\n\n\t\tassert.equal( Global.parseTimeUnit( ':60', 20 ), 3600 );\n\t\tassert.equal( Global.parseTimeUnit( ':1', 20 ), 60 );\n\n\t\tassert.equal( Global.parseTimeUnit( '1:00:01.5', 20 ), 3600 ); //These don't match PHP due to how\n\t\tassert.equal( Global.parseTimeUnit( '1:1.5', 20 ), 3660 );\n\n\t} );\n\n\tQUnit.test( 'Global.js parseTimeUnit Hours Rounding', function( assert ) {\n\t\tassert.equal( Global.parseTimeUnit( '0.02', 20 ), ( 1 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.03', 20 ), ( 2 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.05', 20 ), ( 3 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.06', 20 ), ( 4 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.08', 20 ), ( 5 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.10', 20 ), ( 6 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.12', 20 ), ( 7 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.13', 20 ), ( 8 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.15', 20 ), ( 9 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.17', 20 ), ( 10 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.18', 20 ), ( 11 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.20', 20 ), ( 12 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.22', 20 ), ( 13 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.23', 20 ), ( 14 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.25', 20 ), ( 15 * 60 ) );\n\n\t\tassert.equal( Global.parseTimeUnit( '0.27', 20 ), ( 16 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.28', 20 ), ( 17 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.30', 20 ), ( 18 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.32', 20 ), ( 19 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.33', 20 ), ( 20 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.35', 20 ), ( 21 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.37', 20 ), ( 22 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.39', 20 ), ( 23 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.40', 20 ), ( 24 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.42', 20 ), ( 25 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.43', 20 ), ( 26 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.45', 20 ), ( 27 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.47', 20 ), ( 28 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.48', 20 ), ( 29 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.50', 20 ), ( 30 * 60 ) );\n\n\t\tassert.equal( Global.parseTimeUnit( '0.52', 20 ), ( 31 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.53', 20 ), ( 32 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.55', 20 ), ( 33 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.57', 20 ), ( 34 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.58', 20 ), ( 35 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.60', 20 ), ( 36 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.62', 20 ), ( 37 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.63', 20 ), ( 38 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.65', 20 ), ( 39 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.67', 20 ), ( 40 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.68', 20 ), ( 41 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.70', 20 ), ( 42 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.72', 20 ), ( 43 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.73', 20 ), ( 44 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.75', 20 ), ( 45 * 60 ) );\n\n\t\tassert.equal( Global.parseTimeUnit( '0.77', 20 ), ( 46 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.78', 20 ), ( 47 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.80', 20 ), ( 48 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.82', 20 ), ( 49 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.84', 20 ), ( 50 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.85', 20 ), ( 51 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.87', 20 ), ( 52 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.89', 20 ), ( 53 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.90', 20 ), ( 54 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.92', 20 ), ( 55 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.94', 20 ), ( 56 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.95', 20 ), ( 57 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.97', 20 ), ( 58 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '0.99', 20 ), ( 59 * 60 ) );\n\t\tassert.equal( Global.parseTimeUnit( '1.00', 20 ), ( 60 * 60 ) );\n\t} );\n\n\tQUnit.test( 'Global.js getTimeUnit', function( assert ) {\n\t\tassert.equal( Global.getTimeUnit( 3600, 10 ), '01:00' );\n\t\tassert.equal( Global.getTimeUnit( 3660, 10 ), '01:01' );\n\t\tassert.equal( Global.getTimeUnit( 36060, 10 ), '10:01' );\n\t\tassert.equal( Global.getTimeUnit( 36660, 10 ), '10:11' );\n\t\tassert.equal( Global.getTimeUnit( 360660, 10 ), '100:11' );\n\t\tassert.equal( Global.getTimeUnit( 3600660, 10 ), '1000:11' );\n\t\tassert.equal( Global.getTimeUnit( 36000660, 10 ), '10000:11' );\n\t\tassert.equal( Global.getTimeUnit( 360000660, 10 ), '100000:11' );\n\t\tassert.equal( Global.getTimeUnit( 3600000660, 10 ), '1000000:11' );\n\n\t\tassert.equal( Global.getTimeUnit( -3600, 10 ), '-01:00' );\n\t\tassert.equal( Global.getTimeUnit( -3660, 10 ), '-01:01' );\n\t\tassert.equal( Global.getTimeUnit( -36060, 10 ), '-10:01' );\n\t\tassert.equal( Global.getTimeUnit( -36660, 10 ), '-10:11' );\n\t\tassert.equal( Global.getTimeUnit( -360660, 10 ), '-100:11' );\n\t\tassert.equal( Global.getTimeUnit( -3600660, 10 ), '-1000:11' );\n\t\tassert.equal( Global.getTimeUnit( -36000660, 10 ), '-10000:11' );\n\t\tassert.equal( Global.getTimeUnit( -360000660, 10 ), '-100000:11' );\n\t\tassert.equal( Global.getTimeUnit( -3600000660, 10 ), '-1000000:11' );\n\n\t\tassert.equal( Global.getTimeUnit( 3600, 12 ), '01:00:00' );\n\t\tassert.equal( Global.getTimeUnit( 3661, 12 ), '01:01:01' );\n\t\tassert.equal( Global.getTimeUnit( 36060, 12 ), '10:01:00' );\n\t\tassert.equal( Global.getTimeUnit( 36660, 12 ), '10:11:00' );\n\n\t\tassert.equal( Global.getTimeUnit( 3600, 23 ), '1.0000' );\n\t\tassert.equal( Global.getTimeUnit( 3660, 23 ), '1.0167' );\n\t\tassert.equal( Global.getTimeUnit( 3600660, 23 ), '1000.1833' );\n\n\t\tassert.equal( Global.getTimeUnit( 603, 99 ), '10:03' );\n\t\tassert.equal( Global.getTimeUnit( 3600, 99 ), '60:00' );\n\t} );\n\n\tQUnit.test( 'Global.js getDaysInSpan', function( assert ) {\n\t\tassert.equal( Global.getDaysInSpan( '01-May-2022', '07-May-2022', true, true, true, true, true, true, true ), 7 );\n\t\tassert.equal( Global.getDaysInSpan( '01-May-2022', '07-May-2022', false, true, true, true, true, true, true ), 6 );\n\t\tassert.equal( Global.getDaysInSpan( '01-May-2022', '07-May-2022', false, false, true, true, true, true, true ), 5 );\n\t\tassert.equal( Global.getDaysInSpan( '01-May-2022', '07-May-2022', false, false, false, true, true, true, true ), 4 );\n\t\tassert.equal( Global.getDaysInSpan( '01-May-2022', '07-May-2022', false, false, false, false, true, true, true ), 3 );\n\t\tassert.equal( Global.getDaysInSpan( '01-May-2022', '07-May-2022', false, false, false, false, false, true, true ), 2 );\n\t\tassert.equal( Global.getDaysInSpan( '01-May-2022', '07-May-2022', false, false, false, false, false, false, true ), 1 );\n\t\tassert.equal( Global.getDaysInSpan( '01-May-2022', '07-May-2022', false, false, false, false, false, false, false ), 0 );\n\n\t\tassert.equal( Global.getDaysInSpan( '01-May-2022', '07-May-2022', true, true, true, true, true, true, true ), 7 );\n\t\tassert.equal( Global.getDaysInSpan( '02-May-2022', '07-May-2022', true, true, true, true, true, true, true ), 6 );\n\t\tassert.equal( Global.getDaysInSpan( '03-May-2022', '07-May-2022', true, true, true, true, true, true, true ), 5 );\n\t\tassert.equal( Global.getDaysInSpan( '04-May-2022', '07-May-2022', true, true, true, true, true, true, true ), 4 );\n\t\tassert.equal( Global.getDaysInSpan( '05-May-2022', '07-May-2022', true, true, true, true, true, true, true ), 3 );\n\t\tassert.equal( Global.getDaysInSpan( '06-May-2022', '07-May-2022', true, true, true, true, true, true, true ), 2 );\n\t\tassert.equal( Global.getDaysInSpan( '07-May-2022', '07-May-2022', true, true, true, true, true, true, true ), 1 );\n\t} );\n\n\tQUnit.module( 'UUID Generation' );\n\tvar uuids = [];\n\tQUnit.test( 'UUID TIGHTLOOP (default logged in user seed)', function( assert ) {\n\t\tvar max = 3000;\n\t\tfor ( var i = 0; i < max; i++ ) {\n\t\t\tuuids.push( TTUUID.generateUUID() );\n\t\t}\n\t\tassert.ok( hasDuplicates( uuids, assert ) == false, 'Duplicate UUIDs!' );\n\t\tfor ( var i = 0; i < max; i++ ) {\n\t\t\tassert.ok( TTUUID.isUUID( uuids[i] ), 'is UUID' );\n\t\t}\n\t} );\n\n\tuuids = [];\n\tQUnit.test( 'UUID TIGHTLOOP (random seed)', function( assert ) {\n\t\tvar user_id = LocalCacheData.loginUser.id;\n\t\tLocalCacheData.loginUser.id = null;\n\t\tvar max = 3000;\n\t\tfor ( var i = 0; i < max; i++ ) {\n\t\t\tuuids.push( TTUUID.generateUUID() );\n\t\t}\n\t\tassert.ok( hasDuplicates( uuids, assert ) == false, 'Duplicate UUIDs!' );\n\t\tfor ( var i = 0; i < max; i++ ) {\n\t\t\tassert.ok( TTUUID.isUUID( uuids[i] ), 'is UUID' );\n\t\t}\n\t\tLocalCacheData.loginUser.id = user_id;\n\t} );\n\n\tQUnit.test( 'Global.isNumeric()', function( assert ) {\n\t\tassert.ok( Global.isNumeric( 1483228800 ) == true, '1483228800 is an epoch and numeric' );\n\t\tassert.ok( Global.isNumeric( '1483228800' ) == true, '1483228800 is an epoch and a numeric string' );\n\n\t\t//assert.ok( Global.isNumeric(\"1,483,228,800\") == false , '1,483,228,800 has commas and so is not numeric'); //does not handle commas\n\n\t\tassert.ok( Global.isNumeric( 2.1234 ) == true, '2.1234 is a float and numeric' );\n\t\tassert.ok( Global.isNumeric( -2.1234 ) == true, '-2.1234 is a negative float and numeric' );\n\t\tassert.ok( Global.isNumeric( '2.1234' ) == true, '\"2.1234\" is numeric string' );\n\t\tassert.ok( Global.isNumeric( -3 ) == true, '-3 is numeric' );\n\t\tassert.ok( Global.isNumeric( 0 ) == true, '0 is numeric' );\n\t\tassert.ok( Global.isNumeric( 1 ) == true, '1 is numeric' );\n\t\tassert.ok( Global.isNumeric( '1' ) == true, '\"1\" is a numeric string' );\n\t\tassert.ok( Global.isNumeric( 'asdf' ) == false, '\"asdf\" is not numeric' );\n\t\tassert.ok( Global.isNumeric( '' ) == false, '\"\" is not numeric' );\n\t} );\n\n\t/**\n\t *\n\t * ASYNCHRONOUS TESTS GO AT THE BOTTOM\n\t *\n\t */\n\n\tQUnit.module( 'TTPromise.js' );\n\tQUnit.test( 'TTPromise Case 1: wait(category) on a single promise', function( assert ) {\n\t\tvar done = assert.async();\n\n\t\tTTPromise.clearAllPromises();\n\t\tassert.ok( Object.keys( TTPromise.promises ).length == 0, 'Callback: promises obj length = 0.' );\n\t\tassert.ok( typeof ( TTPromise.promises ) == 'object', 'TTPromise.promises exists.' );\n\n\t\tTTPromise.add( 'test', 'test1' );\n\t\tassert.ok( typeof ( TTPromise.promises['test'] ) == 'object', 'TTPromise.promises[\\'test\\'] exists.' );\n\t\tassert.ok( Object.keys( TTPromise.promises['test'] ).length == 1, 'promises object length = 1.' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'test' ).length == 1, 'TTPromise.filterPromiseArray(test).length == 1' );\n\n\t\tTTPromise.wait( 'test', null, function() {\n\t\t\t//will be run on resolve()\n\t\t\tassert.ok( 1 == '1', 'TEST Promise test resolved.' );\n\t\t\tassert.ok( typeof ( TTPromise.promises['test'] ) == 'undefined', 'promises[test] is null.' );\n\t\t\tassert.ok( TTPromise.filterPromiseArray( 'test' ).length == 0, 'filterPromiseArray(test).length == 0.' );\n\t\t\tassert.ok( TTPromise.filterPromiseArray( 'test', 'test1' ) == false, 'filterPromiseArray(\"test\",\"test1\") length = 0.' );\n\t\t\tdone();\n\t\t} );\n\n\t\tassert.ok( typeof ( TTPromise.promises['test']['test1'] ) == 'object', 'promises object length = 1.' );\n\t\tTTPromise.resolve( 'test', 'test1' );\n\t} );\n\n\tQUnit.test( 'TTPromise Case 1b: wait(category) on a single promise with reject', function( assert ) {\n\t\tvar done = assert.async();\n\n\t\tTTPromise.clearAllPromises();\n\t\tassert.ok( Object.keys( TTPromise.promises ).length == 0, 'Callback: promises obj length = 0.' );\n\t\tassert.ok( typeof ( TTPromise.promises ) == 'object', 'TTPromise.promises exists.' );\n\n\t\tTTPromise.add( 'test', 'test1' );\n\t\tassert.ok( typeof ( TTPromise.promises['test'] ) == 'object', 'TTPromise.promises[\\'test\\'] exists.' );\n\t\tassert.ok( Object.keys( TTPromise.promises['test'] ).length == 1, 'promises object length = 1.' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'test' ).length == 1, 'TTPromise.filterPromiseArray(test).length == 1' );\n\n\t\tTTPromise.wait( 'test', null, function() {\n\t\t\t//will be run on resolve()\n\t\t\tassert.ok( 0 == '1', 'TEST Promise test resolved.' ); //THIS SHOULD NOT BE CALLED.\n\t\t\tdone();\n\t\t}, function() {\n\t\t\t//will be run on reject()\n\t\t\tassert.ok( 1 == '1', 'TEST Promise test rejected.' );\n\t\t\tassert.ok( typeof ( TTPromise.promises['test'] ) == 'undefined', 'promises[test] is null.' );\n\t\t\tassert.ok( TTPromise.filterPromiseArray( 'test' ).length == 0, 'filterPromiseArray(test).length == 0.' );\n\t\t\tassert.ok( TTPromise.filterPromiseArray( 'test', 'test1' ) == false, 'filterPromiseArray(\"test\",\"test1\") length = 0.' );\n\t\t\tdone();\n\t\t} );\n\n\t\tassert.ok( typeof ( TTPromise.promises['test']['test1'] ) == 'object', 'promises object length = 1.' );\n\t\tTTPromise.reject( 'test', 'test1' );\n\t} );\n\n\tQUnit.test( 'TTPromise Case 1c: wait(category) two promises with two rejects on category', function( assert ) {\n\t\tvar done = assert.async();\n\n\t\tTTPromise.clearAllPromises();\n\t\tassert.ok( Object.keys( TTPromise.promises ).length == 0, 'Callback: promises obj length = 0.' );\n\t\tassert.ok( typeof ( TTPromise.promises ) == 'object', 'TTPromise.promises exists.' );\n\n\t\tTTPromise.add( 'test', 'test1' );\n\t\tassert.ok( typeof ( TTPromise.promises['test'] ) == 'object', 'TTPromise.promises[\\'test\\'] exists.' );\n\t\tassert.ok( Object.keys( TTPromise.promises['test'] ).length == 1, 'promises object length = 1.' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'test' ).length == 1, 'TTPromise.filterPromiseArray(test).length == 1' );\n\n\t\tTTPromise.add( 'test', 'test2' );\n\t\tassert.ok( typeof ( TTPromise.promises['test'] ) == 'object', 'TTPromise.promises[\\'test\\'] exists.' );\n\t\tassert.ok( Object.keys( TTPromise.promises['test'] ).length == 2, 'promises object length = 1.' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'test' ).length == 2, 'TTPromise.filterPromiseArray(test).length == 1' );\n\n\t\tremaining_reject_promises = 0;\n\t\tTTPromise.wait( 'test', null, function() {\n\t\t\t//will be run on resolve()\n\t\t\tassert.ok( 0 == '1', 'TEST Promise test resolved.' ); //Fail the test if this is called, since there is a reject.\n\t\t\tdone();\n\t\t}, function() {\n\t\t\t//will be run on reject()\n\t\t\tassert.ok( 1 == '1', 'TEST Promise test rejected.' );\n\n\t\t\tassert.ok( TTPromise.filterPromiseArray( 'test' ).length == 1, 'filterPromiseArray(test).length == 1.' );\n\t\t\tassert.ok( TTPromise.filterPromiseArray( 'test', 'test1' ) == false, 'filterPromiseArray(\"test\",\"test1\") length = 0.' );\n\t\t\tassert.ok( TTPromise.filterPromiseArray( 'test', 'test2' ).length == 1, 'filterPromiseArray(\"test\",\"test2\") length = 0.' );\n\n\t\t\tassert.ok( remaining_reject_promises == 0, 'Make sure error callback is not called more than once.' );\n\n\t\t\tremaining_reject_promises++;\n\n\t\t\tdone(); //Only finish once all promises are rejected.\n\t\t} );\n\n\t\tassert.ok( typeof ( TTPromise.promises['test']['test1'] ) == 'object', 'promises object length = 2.' );\n\t\tassert.ok( typeof ( TTPromise.promises['test']['test2'] ) == 'object', 'promises object length = 2.' );\n\t\tTTPromise.reject( 'test', 'test1' );\n\t\tTTPromise.reject( 'test', 'test2' );\n\t} );\n\n\tQUnit.test( 'TTPromise Case 1d: wait(category) two promises with one reject one resolve on category', function( assert ) {\n\t\tvar done = assert.async();\n\n\t\tTTPromise.clearAllPromises();\n\t\tassert.ok( Object.keys( TTPromise.promises ).length == 0, 'Callback: promises obj length = 0.' );\n\t\tassert.ok( typeof ( TTPromise.promises ) == 'object', 'TTPromise.promises exists.' );\n\n\t\tTTPromise.add( 'test', 'test1' );\n\t\tassert.ok( typeof ( TTPromise.promises['test'] ) == 'object', 'TTPromise.promises[\\'test\\'] exists.' );\n\t\tassert.ok( Object.keys( TTPromise.promises['test'] ).length == 1, 'promises object length = 1.' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'test' ).length == 1, 'TTPromise.filterPromiseArray(test).length == 1' );\n\n\t\tTTPromise.add( 'test', 'test2' );\n\t\tassert.ok( typeof ( TTPromise.promises['test'] ) == 'object', 'TTPromise.promises[\\'test\\'] exists.' );\n\t\tassert.ok( Object.keys( TTPromise.promises['test'] ).length == 2, 'promises object length = 1.' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'test' ).length == 2, 'TTPromise.filterPromiseArray(test).length == 1' );\n\n\t\tremaining_reject_promises = 0;\n\t\tTTPromise.wait( 'test', null, function() {\n\t\t\t//will be run on resolve()\n\t\t\tassert.ok( 0 == '1', 'TEST Promise test resolved.' ); //Fail the test if this is called, since there is a reject.\n\t\t\tdone();\n\t\t}, function() {\n\t\t\t//will be run on reject()\n\t\t\tassert.ok( 1 == '1', 'TEST Promise test rejected.' );\n\n\t\t\tassert.ok( TTPromise.filterPromiseArray( 'test' ).length == 1, 'filterPromiseArray(test).length == 1.' );\n\t\t\tassert.ok( TTPromise.filterPromiseArray( 'test', 'test1' ) == false, 'filterPromiseArray(\"test\",\"test1\") length = 0.' );\n\t\t\tassert.ok( TTPromise.filterPromiseArray( 'test', 'test2' ).length == 1, 'filterPromiseArray(\"test\",\"test2\") length = 0.' );\n\n\t\t\tassert.ok( remaining_reject_promises == 0, 'Make sure error callback is not called more than once.' );\n\n\t\t\tremaining_reject_promises++;\n\n\t\t\tdone(); //Only finish once all promises are rejected.\n\t\t} );\n\n\t\tassert.ok( typeof ( TTPromise.promises['test']['test1'] ) == 'object', 'promises object length = 2.' );\n\t\tassert.ok( typeof ( TTPromise.promises['test']['test2'] ) == 'object', 'promises object length = 2.' );\n\t\tTTPromise.reject( 'test', 'test1' );\n\t\tTTPromise.resolve( 'test', 'test2' );\n\t} );\n\n\tQUnit.test( 'TTPromise Case 1e: wait(category) two promises with one resolve and one reject on category', function( assert ) {\n\t\tvar done = assert.async();\n\n\t\tTTPromise.clearAllPromises();\n\t\tassert.ok( Object.keys( TTPromise.promises ).length == 0, 'Callback: promises obj length = 0.' );\n\t\tassert.ok( typeof ( TTPromise.promises ) == 'object', 'TTPromise.promises exists.' );\n\n\t\tTTPromise.add( 'test', 'test1' );\n\t\tassert.ok( typeof ( TTPromise.promises['test'] ) == 'object', 'TTPromise.promises[\\'test\\'] exists.' );\n\t\tassert.ok( Object.keys( TTPromise.promises['test'] ).length == 1, 'promises object length = 1.' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'test' ).length == 1, 'TTPromise.filterPromiseArray(test).length == 1' );\n\n\t\tTTPromise.add( 'test', 'test2' );\n\t\tassert.ok( typeof ( TTPromise.promises['test'] ) == 'object', 'TTPromise.promises[\\'test\\'] exists.' );\n\t\tassert.ok( Object.keys( TTPromise.promises['test'] ).length == 2, 'promises object length = 1.' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'test' ).length == 2, 'TTPromise.filterPromiseArray(test).length == 1' );\n\n\t\tremaining_reject_promises = 0;\n\t\tTTPromise.wait( 'test', null, function() {\n\t\t\t//will be run on resolve()\n\t\t\tassert.ok( 0 == '1', 'TEST Promise test resolved.' ); //Fail the test if this is called, since there is a reject.\n\t\t\tdone();\n\t\t}, function() {\n\t\t\t//will be run on reject()\n\t\t\tassert.ok( 1 == '1', 'TEST Promise test rejected.' );\n\n\t\t\tassert.ok( TTPromise.filterPromiseArray( 'test' ).length == 1, 'filterPromiseArray(test).length == 1.' );\n\t\t\tassert.ok( TTPromise.filterPromiseArray( 'test', 'test1' ).length == 1, 'filterPromiseArray(\"test\",\"test1\") length = 0.' );\n\t\t\tassert.ok( TTPromise.filterPromiseArray( 'test', 'test2' ) == false, 'filterPromiseArray(\"test\",\"test2\") length = 0.' );\n\n\t\t\tassert.ok( remaining_reject_promises == 0, 'Make sure error callback is not called more than once.' );\n\n\t\t\tremaining_reject_promises++;\n\n\t\t\tdone(); //Only finish once all promises are rejected.\n\t\t} );\n\n\t\tassert.ok( typeof ( TTPromise.promises['test']['test1'] ) == 'object', 'promises object length = 2.' );\n\t\tassert.ok( typeof ( TTPromise.promises['test']['test2'] ) == 'object', 'promises object length = 2.' );\n\t\tTTPromise.resolve( 'test', 'test1' );\n\t\tTTPromise.reject( 'test', 'test2' );\n\t} );\n\n\tQUnit.test( 'TTPromise Case 2: wait(\\'one_of_many_categories\\').', function( assert ) {\n\t\tvar done = assert.async();\n\t\tTTPromise.clearAllPromises();\n\n\t\tassert.ok( Object.keys( TTPromise.promises ).length == 0, 'Callback: promises obj empty.' );\n\t\tassert.ok( typeof ( TTPromise.promises ) == 'object', 'TTPromise.promises exists.' );\n\n\t\tTTPromise.add( 'testa', 'test1' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'testa' ).length == 1, 'filterPromiseArray(testa).length == 1.' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'testa', 'test1' ).length == 1, 'filterPromiseArray(\"testa\",\"test1\") length = 1.' );\n\n\t\tTTPromise.add( 'testa', 'test2' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'testa' ).length == 2, 'filterPromiseArray(testa).length == 2.' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'testa', 'test2' ).length == 1, 'filterPromiseArray(\"testa\",\"test1\") length = 1.' );\n\n\t\tTTPromise.add( 'testb', 'test1b' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'testb' ).length == 1, 'filterPromiseArray(testb).length == 1' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'testb', 'test1b' ).length == 1, 'filterPromiseArray(\"testb\",\"test1b\") length = 1.' );\n\n\t\tTTPromise.add( 'testb', 'test2b' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'testb' ).length == 2, 'filterPromiseArray(testb).length == 2.' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'testb', 'test1b' ).length == 1, 'filterPromiseArray(\"testb\",\"test1b\") length = 1.' );\n\n\t\tTTPromise.wait( 'testa', null, function() {\n\t\t\t//Debug.Arr(TTPromise,'Case2 TTPromise',null,null,null,10);\n\t\t\tassert.ok( 1 == '1', 'TEST Promise testa resolved.' );\n\t\t\t//will be run on resolve()\n\t\t\tassert.ok( typeof ( TTPromise.promises['testa'] ) == 'undefined', 'promises[testa] is null.' );\n\t\t\tassert.ok( typeof ( TTPromise.promises['testb'] ) == 'object', 'promises[testb] is not null.' );\n\n\t\t\tassert.ok( TTPromise.filterPromiseArray( 'testb' ).length == 2, 'filterPromiseArray(testb).length == 1' ); //one is resolved. should return only 1\n\n\t\t\tassert.ok( TTPromise.filterPromiseArray( 'testa', 'test1' ).length == 0, 'filterPromiseArray(\"testb\",\"test1b\") length = ' + TTPromise.filterPromiseArray( 'testa', 'test1' ).length );\n\t\t\tassert.ok( TTPromise.filterPromiseArray( 'testa', 'test2' ).length == 0, 'filterPromiseArray(\"testb\",\"test1b\") length = ' + TTPromise.filterPromiseArray( 'testa', 'test2' ).length );\n\t\t\tdone();\n\t\t} );\n\n\t\tTTPromise.resolve( 'testb', 'test1b' );\n\t\tTTPromise.resolve( 'testa', 'test1' );\n\t\tTTPromise.resolve( 'testa', 'test2' );\n\t} );\n\n\tQUnit.test( 'TTPromise Case 3: wait(null, null, callback) all cateogries.', function( assert ) {\n\t\tvar done = assert.async();\n\n\t\tTTPromise.clearAllPromises();\n\t\tassert.ok( Object.keys( TTPromise.promises ).length == 0, 'Callback: promises obj empty.' );\n\t\tassert.ok( typeof ( TTPromise.promises ) == 'object', 'TTPromise.promises exists.' );\n\n\t\tTTPromise.add( 'testc', 'test1' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'testc', 'test1' ).length == 1, 'TTPromise.filterPromiseArray(testc,test1).length == 1,.' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'testc' ).length == 1, 'TTPromise.filterPromiseArray(testc).length == 1,.' );\n\n\t\tTTPromise.add( 'testc', 'test2' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'testc', 'test2' ).length == 1, 'TTPromise.filterPromiseArray(testc,test1).length == 1,.' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'testc' ).length == 2, 'TTPromise.filterPromiseArray(testc).length == 2,.' );\n\n\t\tTTPromise.add( 'testd', 'test1b' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'testd', 'test1b' ).length == 1, 'TTPromise.filterPromiseArray(testd,test1b).length == 1,.' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'testc' ).length == 2, 'TTPromise.filterPromiseArray(testc).length == 2,.' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'testd' ).length == 1, 'TTPromise.filterPromiseArray(testd).length == 1,.' );\n\n\t\tTTPromise.add( 'testd', 'test2b' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'testd', 'test2b' ).length == 1, 'TTPromise.filterPromiseArray(testd,test2b).length == 1,.' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'testc' ).length == 2, 'TTPromise.filterPromiseArray(testc).length == 2,.' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'testd' ).length == 2, 'TTPromise.filterPromiseArray(testd).length == 2,.' );\n\n\t\tTTPromise.wait( null, null, function() {\n\t\t\t//will be run on resolve()\n\t\t\tassert.ok( typeof ( TTPromise.promises['testc'] ) == 'undefined', 'promises[testc] is null.' );\n\t\t\tassert.ok( typeof ( TTPromise.promises['testd'] ) == 'undefined', 'promises[testd] is null.' );\n\t\t\tassert.ok( typeof ( TTPromise.promises ) == 'object', 'TTPromise.promises exists.' );\n\t\t\tassert.ok( TTPromise.filterPromiseArray( 'testc' ).length == 0, 'TTPromise.filterPromiseArray(testc).length == 0,.' );\n\t\t\tassert.ok( TTPromise.filterPromiseArray( 'testd' ).length == 0, 'TTPromise.filterPromiseArray(testd).length == 0,.' );\n\t\t\tdone();\n\t\t} );\n\n\t\tassert.ok( TTPromise.filterPromiseArray().length == 4, 'TTPromise.filterPromiseArray().length == 4' );\n\n\t\tTTPromise.resolve( 'testd', 'test1b' );\n\t\tTTPromise.resolve( 'testd', 'test2b' );\n\t\tTTPromise.resolve( 'testc', 'test1' );\n\t\tTTPromise.resolve( 'testc', 'test2' );\n\n\t} );\n\n\tQUnit.test( 'TTPromise Case 4: wait(category, key) on a single promise', function( assert ) {\n\t\tvar done = assert.async();\n\n\t\tTTPromise.clearAllPromises();\n\t\tassert.ok( Object.keys( TTPromise.promises ).length == 0, 'Callback: promises obj length = 0.' );\n\t\tassert.ok( typeof ( TTPromise.promises ) == 'object', 'TTPromise.promises exists.' );\n\n\t\tTTPromise.add( 'Reports', 'LoadReports' );\n\t\tassert.ok( typeof ( TTPromise.promises['Reports'] ) == 'object', 'TTPromise.promises[\\'test\\'] exists.' );\n\t\tassert.ok( Object.keys( TTPromise.promises['Reports'] ).length == 1, 'promises object length = 1.' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'Reports' ).length == 1, 'TTPromise.filterPromiseArray(test).length == 1' );\n\n\t\tTTPromise.wait( 'Reports', 'LoadReports', function() {\n\t\t\t//will be run on resolve()\n\t\t\tassert.ok( 1 == '1', 'TEST Promise test resolved.' );\n\t\t\tassert.ok( typeof ( TTPromise.promises['Reports'] ) == 'undefined', 'promises[Reports] is null.' );\n\t\t\tassert.ok( TTPromise.filterPromiseArray( 'Reports' ).length == 0, 'filterPromiseArray(Reports).length == 0.' );\n\t\t\tassert.ok( TTPromise.filterPromiseArray( 'Reports', 'LoadReports' ) == false, 'filterPromiseArray(\"Reports\",\"LoadReports\") length = 0.' );\n\t\t\tdone();\n\t\t} );\n\n\t\tassert.ok( typeof ( TTPromise.promises['Reports']['LoadReports'] ) == 'object', 'promises object length = 1.' );\n\t\tTTPromise.resolve( 'Reports', 'LoadReports' );\n\t} );\n\n\tQUnit.test( 'TTPromise Case 5: wait(category, key,function) vs wait(null,null,function)', function( assert ) {\n\t\tvar done = assert.async();\n\t\tvar group_promise_test = 0;\n\n\t\tTTPromise.clearAllPromises();\n\t\tassert.ok( Object.keys( TTPromise.promises ).length == 0, 'Callback: promises obj length = 0.' );\n\t\tassert.ok( typeof ( TTPromise.promises ) == 'object', 'TTPromise.promises exists.' );\n\n\t\tTTPromise.add( 'groupone', 'one' );\n\t\tassert.ok( typeof ( TTPromise.promises['groupone'] ) == 'object', 'TTPromise.promises[\\'groupone\\'] exists.' );\n\t\tassert.ok( Object.keys( TTPromise.promises['groupone'] ).length == 1, 'promises object length = 1.' );\n\t\tassert.ok( TTPromise.filterPromiseArray( 'groupone' ).length == 1, 'TTPromise.filterPromiseArray(groupone).length == 1' );\n\n\t\tTTPromise.wait( 'groupone', 'one', function() {\n\t\t\t//will be run on resolve()\n\t\t\tDebug.Text( 'SINGLE PROMISE test resolved second.', '', '', '', 10 );\n\t\t\tassert.ok( group_promise_test == '1', 'SINGLE PROMISE test resolved second.' );\n\t\t\tgroup_promise_test = 2;\n\t\t\tdone();\n\t\t} );\n\n\t\tTTPromise.add( 'grouptwo', 'one' );\n\t\tTTPromise.add( 'grouptwo', 'two' );\n\t\tTTPromise.add( 'grouptwo', 'three' );\n\t\tTTPromise.wait( null, null, function() {\n\t\t\t//will be run on resolve()\n\t\t\tassert.ok( group_promise_test == '0', 'ALL PROMISE test resolved first.' );\n\t\t\tgroup_promise_test = 1;\n\t\t\tDebug.Text( 'ALL PROMISE test resolved first.', '', '', '', 10 );\n\t\t} );\n\n\t\tTTPromise.resolve( 'grouptwo', 'one' );\n\t\tTTPromise.resolve( 'grouptwo', 'two' );\n\t\tTTPromise.resolve( 'groupone', 'one' );\n\t\tTTPromise.resolve( 'grouptwo', 'three' );\n\n\t\tTTPromise.resolve( 'Reports', 'LoadReports' );\n\t} );\n\n\tQUnit.test( 'TTPromise Case 6: resolve 2, wait on 1, global wait.', function( assert ) {\n\t\tvar done = assert.async();\n\t\tvar group_promise_test = 0;\n\n\t\tTTPromise.clearAllPromises();\n\n\t\tassert.ok( Object.keys( TTPromise.promises ).length == 0, 'Callback: promises obj length = 0.' );\n\t\tassert.ok( typeof ( TTPromise.promises ) == 'object', 'TTPromise.promises exists.' );\n\n\t\tTTPromise.add( 'a', 'a' );\n\t\tTTPromise.add( 'a', 'b' );\n\t\tTTPromise.add( 'a', 'c' );\n\n\t\tTTPromise.resolve( 'a', 'a' );\n\t\tTTPromise.resolve( 'a', 'b' );\n\t\tTTPromise.resolve( 'a', 'c' );\n\n\t\tTTPromise.add( 'b', 'a' );\n\t\tTTPromise.add( 'b', 'b' );\n\n\t\tvar callbacks = 1;\n\t\tTTPromise.wait( 'a', 'a', function() {\n\t\t\t//will be run on resolve()\n\t\t\tassert.ok( callbacks == 1, 'already resolved promise resolved first.' );\n\t\t\tcallbacks++;\n\t\t} );\n\n\t\tTTPromise.wait( null, null, function() {\n\n\t\t\tassert.ok( callbacks == 2, 'null wait resolves after first resolution' );\n\t\t\tcallbacks++;\n\t\t\tdone();\n\t\t} );\n\n\t\tTTPromise.resolve( 'b', 'a' );\n\t\tTTPromise.resolve( 'b', 'b' );\n\t} );\n\n\tQUnit.test( 'TTPromise Case 7: resolve already resolved stack when other promises exist.', function( assert ) {\n\t\tvar done = assert.async();\n\t\tvar group_promise_test = 0;\n\n\t\tTTPromise.clearAllPromises();\n\n\t\tassert.ok( Object.keys( TTPromise.promises ).length == 0, 'Callback: promises obj length = 0.' );\n\t\tassert.ok( typeof ( TTPromise.promises ) == 'object', 'TTPromise.promises exists.' );\n\n\t\tTTPromise.add( 'a', 'a' );\n\t\tTTPromise.add( 'a', 'b' );\n\t\tTTPromise.add( 'a', 'c' );\n\n\t\tTTPromise.resolve( 'a', 'a' );\n\t\tTTPromise.resolve( 'a', 'b' );\n\t\tTTPromise.resolve( 'a', 'c' );\n\n\t\tTTPromise.add( 'b', 'a' );\n\t\tTTPromise.add( 'b', 'b' );\n\n\t\tvar callbacks = 1;\n\t\tTTPromise.wait( 'a', 'a', function() {\n\t\t\t//will be run on resolve()\n\t\t\tassert.ok( callbacks == 1, 'already resolved promise resolved before resolving unrelated pending promises.' );\n\t\t\tdone();\n\t\t} );\n\t\tcallbacks = 2;\n\t\tTTPromise.resolve( 'b', 'a' );\n\t\tTTPromise.resolve( 'b', 'b' );\n\t} );\n\n\tQUnit.test( 'TTPromise Case 8: resolve already resolved when other promises exist.', function( assert ) {\n\t\tvar done = assert.async();\n\t\tvar group_promise_test = 0;\n\n\t\tTTPromise.clearAllPromises();\n\n\t\tassert.ok( Object.keys( TTPromise.promises ).length == 0, 'Callback: promises obj length = 0.' );\n\t\tassert.ok( typeof ( TTPromise.promises ) == 'object', 'TTPromise.promises exists.' );\n\n\t\tTTPromise.add( 'a', 'a' );\n\t\tTTPromise.add( 'a', 'b' );\n\t\tTTPromise.add( 'a', 'c' );\n\n\t\tTTPromise.resolve( 'a', 'a' );\n\t\tTTPromise.resolve( 'a', 'b' );\n\t\tTTPromise.resolve( 'a', 'c' );\n\n\t\tTTPromise.add( 'b', 'a' );\n\t\tTTPromise.add( 'b', 'b' );\n\n\t\tvar callbacks = 1;\n\t\tTTPromise.wait( 'a', null, function() {\n\t\t\t//will be run on resolve()\n\t\t\tassert.ok( callbacks == 1, 'already resolved promise stack resolved before resolving unrelated pending promises.' );\n\t\t\tdone();\n\t\t} );\n\t\tcallbacks = 2;\n\t\tTTPromise.resolve( 'b', 'a' );\n\t\tTTPromise.resolve( 'b', 'b' );\n\t} );\n\n\tQUnit.test( 'TTPromise Case 9: 3 parallel stacks only 1 and 3 resolve..', function( assert ) {\n\t\tvar done = assert.async();\n\t\tvar group_promise_test = 0;\n\n\t\tTTPromise.clearAllPromises();\n\n\t\tassert.ok( Object.keys( TTPromise.promises ).length == 0, 'Callback: promises obj length = 0.' );\n\t\tassert.ok( typeof ( TTPromise.promises ) == 'object', 'TTPromise.promises exists.' );\n\n\t\tTTPromise.add( 'a', 'a' );\n\t\tTTPromise.add( 'a', 'b' );\n\t\tTTPromise.add( 'a', 'c' );\n\n\t\tTTPromise.add( 'b', 'a' );\n\t\tTTPromise.add( 'b', 'b' );\n\t\tTTPromise.add( 'b', 'c' );\n\n\t\tTTPromise.add( 'c', 'a' );\n\t\tTTPromise.add( 'c', 'b' );\n\t\tTTPromise.add( 'c', 'c' );\n\n\t\tTTPromise.resolve( 'a', 'a' );\n\t\tTTPromise.resolve( 'a', 'b' );\n\t\tTTPromise.resolve( 'a', 'c' );\n\n\t\tvar callbacks = 1;\n\t\tTTPromise.wait( 'a', null, function() {\n\t\t\t//will be run on resolve()\n\t\t\tassert.ok( callbacks == 1, 'already resolved promise resolved before resolving unrelated pending promises.' );\n\t\t\tcallbacks++;\n\t\t} );\n\n\t\tTTPromise.wait( 'b', null, function() {\n\t\t\t//will be run on resolve()\n\t\t\tassert.ok( callbacks == 999, 'should NEVER reolve.' );\n\t\t\tcallbacks++;\n\t\t} );\n\t\tTTPromise.wait( 'c', null, function() {\n\t\t\t//will be run on resolve()\n\t\t\tassert.ok( callbacks == 2, 'already resolved promise resolved before resolving unrelated pending promises.' );\n\t\t\tcallbacks++;\n\t\t\tdone();\n\t\t} );\n\n\t\tTTPromise.resolve( 'a', 'a' );\n\t\tTTPromise.resolve( 'a', 'b' );\n\t\t//TTPromise.resolve('a','c'); //do not fully resolve b\n\n\t\tTTPromise.resolve( 'c', 'a' );\n\t\tTTPromise.resolve( 'c', 'b' );\n\t\tTTPromise.resolve( 'c', 'c' );\n\n\t} );\n\n\tQUnit.test( 'TTPromise Case 10: identical waits fail..', function( assert ) {\n\t\tvar done = assert.async();\n\t\tvar group_promise_test = 0;\n\n\t\tTTPromise.clearAllPromises();\n\n\t\tassert.ok( Object.keys( TTPromise.promises ).length == 0, 'Callback: promises obj length = 0.' );\n\t\tassert.ok( typeof ( TTPromise.promises ) == 'object', 'TTPromise.promises exists.' );\n\n\t\tTTPromise.add( 'a', 'a' );\n\n\t\tvar callbacks = 1;\n\t\tTTPromise.wait( 'a', 'a', function() {\n\t\t\t//will be run on resolve()\n\t\t\tassert.ok( callbacks == 1, 'first resolution.' );\n\t\t\tcallbacks++;\n\t\t} );\n\n\t\tTTPromise.wait( 'a', 'a', function() {\n\t\t\t//will be run on resolve()\n\t\t\tassert.ok( callbacks == 2, 'does not resolve in error case.' );\n\t\t\tcallbacks++;\n\t\t} );\n\n\t\twindow.setTimeout( function() {\n\t\t\tassert.ok( callbacks == 3, 'should complete after both callbacks.' );\n\t\t\tdone();\n\t\t}, 4000 );\n\n\t\twindow.setTimeout( function() {\n\t\t\tTTPromise.resolve( 'a', 'a' );\n\t\t}, 2000 );\n\n\t} );\n\n\tQUnit.test( 'TTPromise Case 11: identical waits fail after resolution of first.', function( assert ) {\n\t\tvar done = assert.async();\n\t\tvar group_promise_test = 0;\n\n\t\tTTPromise.clearAllPromises();\n\n\t\tassert.ok( Object.keys( TTPromise.promises ).length == 0, 'Callback: promises obj length = 0.' );\n\t\tassert.ok( typeof ( TTPromise.promises ) == 'object', 'TTPromise.promises exists.' );\n\n\t\tTTPromise.add( 'a', 'a' );\n\n\t\tvar callbacks = 1;\n\t\tTTPromise.wait( 'a', 'a', function() {\n\t\t\t//will be run on resolve()\n\t\t\tassert.ok( callbacks == 1, 'first resolution.' );\n\t\t\tcallbacks++;\n\t\t} );\n\n\t\tTTPromise.resolve( 'a', 'a' );\n\n\t\twindow.setTimeout( function() {\n\t\t\tTTPromise.wait( 'a', 'a', function() {\n\t\t\t\t//will be run on resolve()\n\t\t\t\tassert.ok( callbacks == 2, 'does not resolve in error case: callbacks: ' + callbacks );\n\t\t\t\tcallbacks++;\n\t\t\t} );\n\n\t\t\twindow.setTimeout( function() {\n\t\t\t\tassert.ok( callbacks == 3, 'should complete after both callbacks.' );\n\t\t\t\tdone();\n\t\t\t}, 8000 );\n\n\t\t\twindow.setTimeout( function() {\n\t\t\t\tTTPromise.resolve( 'a', 'a' );\n\t\t\t}, 5000 );\n\t\t}, 2000 );\n\n\t} );\n}\n\nfunction hasDuplicates( array, assert ) {\n\tvar valuesSoFar = Object.create( null );\n\tfor ( var i = 0; i < array.length; ++i ) {\n\t\tvar value = array[i];\n\t\tif ( value in valuesSoFar ) {\n\t\t\tassert.ok( 1 == 2, value + ' Is not unique.' );\n\t\t\treturn true;\n\t\t}\n\t\tvaluesSoFar[value] = true;\n\t}\n\treturn false;\n}\n\nfunction output_system_data( val ) {\n\tswitch ( val ) {\n\t\tcase '0':\n\t\t\tif ( LocalCacheData.current_open_primary_controller ) {\n\t\t\t\tconsole.log( LocalCacheData.current_open_primary_controller.current_edit_record );\n\t\t\t} else {\n\t\t\t\tDebug.Text( 'Primary current_edit_record does not exist.', 'debugPanelController.js', '', '$(document).on(\\'change\\', \\'#tt_output_variable_select\\')', 10 );\n\t\t\t}\n\t\t\tbreak;\n\t\tcase '1':\n\t\t\tif ( LocalCacheData.current_open_report_controller ) {\n\t\t\t\tconsole.log( LocalCacheData.current_open_report_controller.current_edit_record );\n\t\t\t} else {\n\t\t\t\tDebug.Text( 'Report current_edit_record does not exist.', 'debugPanelController.js', '', '$(document).on(\\'change\\', \\'#tt_output_variable_select\\')', 10 );\n\t\t\t}\n\t\t\tbreak;\n\t\tcase '2':\n\t\t\tif ( LocalCacheData.current_open_sub_controller ) {\n\t\t\t\tconsole.log( LocalCacheData.current_open_sub_controller.current_edit_record );\n\t\t\t} else {\n\t\t\t\tDebug.Text( 'Sub Controller current_edit_record does not exist.', 'debugPanelController.js', '', '$(document).on(\\'change\\', \\'#tt_output_variable_select\\')', 10 );\n\t\t\t}\n\t\t\tbreak;\n\t\tcase '3':\n\t\t\tif ( LocalCacheData.current_open_edit_only_controller ) {\n\t\t\t\tconsole.log( LocalCacheData.current_open_edit_only_controller.current_edit_record );\n\t\t\t} else {\n\t\t\t\tDebug.Text( 'Edit Only current_edit_record does not exist.', 'debugPanelController.js', '', '$(document).on(\\'change\\', \\'#tt_output_variable_select\\')', 10 );\n\t\t\t}\n\t\t\tbreak;\n\t\tcase '4':\n\t\t\tif ( LocalCacheData.current_open_wizard_controllers.length > 0 ) {\n\t\t\t\tfor ( let i = 0; i < LocalCacheData.current_open_wizard_controllers.length; i++ ) {\n\t\t\t\t\tif ( LocalCacheData.current_open_wizard_controllers[i].current_edit_record ) {\n\t\t\t\t\t\tconsole.log( LocalCacheData.current_open_wizard_controllers[i].current_edit_record );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tDebug.Text( 'Wizard current_edit_record does not exist.', 'debugPanelController.js', '', '$(document).on(\\'change\\', \\'#tt_output_variable_select\\')', 10 );\n\t\t\t}\n\t\t\tbreak;\n\t}\n}\n\nwindow.debug_panel_html = `\n\t\t<div id='tt_debug_console' style='width:300pt; background-color:#ffffff; border:1px solid #000000; padding:2em; position:absolute; bottom:0px; right:0px; z-index:1000; border-radius-top-left:10px; border-radius-top-right:10px;'>\n\t\t<a style='float:right; padding:10px; text-align:center; color:red; font-weight:bolder; height:10px; width:10px;' class='tt_debug_close_btn' href='#'>x</a>\n\t\t<h3>Developer Tools (<span>v</span><span class='tt_version'></span>)</h3>\n\t\t<hr>\n\t\t<div class='row' id='enabled_row' style='\"+rowstyle+\"'>\n\t\t\t<input type='checkbox' id='tt_debug_enable_checkbox' checked='\"+ is_enabled +\"'> Enable Console Logging\n\t\t</div>\n\t\t<hr>\n\t\t<div class='row' id='set_verbosity_row' style='\"+rowstyle+\"'>\n\t\t\t<span>Debug Verbosity\n\t\t\t\t<select id=\"tt_debug_exception_verbosity\">\n\t\t\t\t\t<option value=\"0\">0</option>\n\t\t\t\t\t<option value=\"1\">1</option>\n\t\t\t\t\t<option value=\"2\">2</option>\n\t\t\t\t\t<option value=\"3\">3</option>\n\t\t\t\t\t<option value=\"4\">4</option>\n\t\t\t\t\t<option value=\"5\">5</option>\n\t\t\t\t\t<option value=\"6\">6</option>\n\t\t\t\t\t<option value=\"7\">7</option>\n\t\t\t\t\t<option value=\"8\">8</option>\n\t\t\t\t\t<option value=\"9\">9</option>\n\t\t\t\t\t<option value=\"10\">10</option>\n\t\t\t\t\t<option value=\"11\">11</option>\n\t\t\t\t</select>\n\t\t\t</span>\n\t\t</div>\n\t\t<hr>\n\t\t<div class='row' id='trigger_js_exception_row' style='\"+rowstyle+\"'>\n\t\t\t<span>Javascript Errors\n\t\t\t\t<select id=\"tt_debug_exception_type_select\">\n\t\t\t\t\t<option value=\"js_error\">JavaScript Error</option>\n\t\t\t\t\t<option value=\"js_load_script_parser_error\">Script Load Parser Error</option>\n\t\t\t\t\t<option value=\"js_load_script_404_error\">Script Load 404</option>\n\t\t\t\t</select>\n\t\t\t</span>\n\t\t\t<span>\n\t\t\t\t<div class='t-button' id='trigger_js_exception_button'>Trigger</div>\n\t\t\t</span>\n\t\t</div>\n\t\t<hr>\n\t\n\t\t<div class='row' id='trigger_login_timeout_row' style='\"+rowstyle+\"'>\n\t\t\t<p>Note: To trigger idle, must also clear the session at the db</p>\n\t\t\t<div class='t-button' id='trigger_js_timeout_button'>Trigger Idle</div>\n\t\t</div>\n\t\t<hr>\n\t\t<div class='row' id='tt_overlay_disable_row' style='\"+rowstyle+\"'>\n\t\t\t<input type='checkbox' id='tt_overlay_disable_checkbox' checked='\"+ overlay_is_enabled +\"'> Enable Unit Testing Mode\n\t\t</div>\n\t\t<b>Unit Testing</b>\n\t\t<div class='row' id='qunit_row' style='\"+rowstyle+\"'>\n\t\t\t<div class='t-button' id='qunit_test_button'>Run Unit Tests</div>\n\t\t\t<div class='t-button' id='grid_test'>Run Grid Tests</div>\n\t\t\t<div class='t-button' id='awesomebox_test'>Run Awesomebox Tests</div>\n\t\t\t<div class='t-button' id='WidgetTest_test'>Run Widget Tests</div>\n\t\t</div>\n\t\t<hr>\n\t\t<div class='row' id='output_variable_select_row' style='\"+rowstyle+\"'>\n\t\t\t<span>Show Data:\n\t\t\t\t<select id=\"tt_output_variable_select\">\n\t\t\t\t\t<option value=\"-1\">-- Select one --</option>\n\t\t\t\t\t<option value=\"0\">Primary controller->current_edit_record</option>\n\t\t\t\t\t<option value=\"1\">Report controller->current_edit_record</option>\n\t\t\t\t\t<option value=\"2\">Sub controller->current_edit_record</option>\n\t\t\t\t\t<option value=\"3\">Edit Only controller->current_edit_record</option>\n\t\t\t\t\t<option value=\"4\">Wizard controller->current_edit_record</option>\n\t\t\t\t</select>\n\t\t\t</span>\n\t\t\t<span>\n\t\t\t\t<div class='t-button' id='trigger_output_variable_select'>Show</div>\n\t\t\t</span>\n\t\t</div>\n\t\t<hr>\n\t\t<div class=\"row\">\n\t\t\t<h3>breakOn() is active </h3>\n\t\t\t<p>usage: breakOn(myObject, 'myProperty');</p>\n\t\t</div>\n\t\t\x3c!-- keep order --\x3e\n\t\t<hr>\n\t\t<div class='row' id='execute_script_row' style='\"+rowstyle+\"'>\n\t\t\t<b>Script Executor</b>\n\t\t\t<textarea id='arbitrary_script' style=\"width:100%;\" rows=\"5\"></textarea>\n\t\t\t<div class='t-button' id='trigger_arbitrary_script'>Run Js</div>\n\t\t</div>\n\t\t<hr>\n\t\t<div class='row' style='\"+rowstyle+\"'>\n\t\t\t<div class='t-button' id='load_vue_test_button'>Load Vue Test View</div>\n\t\t</div>\n\t</div>\n\t<div id=\"qunit_container\" style=\"display:none;\">\n\t\t<div id=\"qunit\"></div>\n\t\t<div id=\"qunit-fixture\"></div>\n\t</div>\n\t`;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiODAzOC5qcyIsIm1hcHBpbmdzIjoiO0FBQUEsQ0FBQztBQUNEO0FBQ0E7QUFDQSxFQUFFOztBQUVGLENBQUM7QUFDRDtBQUNBLGtCQUFrQixDQUFDO0FBQ25CLEVBQUU7O0FBRUYsQ0FBQztBQUNEO0FBQ0Esc0JBQXNCLENBQUM7O0FBRXZCO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLEtBQUs7QUFDTDtBQUNBO0FBQ0E7QUFDQSxLQUFLO0FBQ0w7QUFDQTtBQUNBLEVBQUU7O0FBRUYsQ0FBQztBQUNEO0FBQ0E7QUFDQTtBQUNBLEVBQUU7O0FBRUYsQ0FBQztBQUNEO0FBQ0EscUJBQXFCLENBQUM7QUFDdEIsRUFBRTs7QUFFRixDQUFDO0FBQ0Q7QUFDQSx5QkFBeUIsQ0FBQztBQUMxQjtBQUNBLEVBQUU7O0FBRUYsQ0FBQztBQUNEO0FBQ0EsQ0FBQyxDQUFDO0FBQ0YsQ0FBQyxDQUFDO0FBQ0Y7QUFDQSxFQUFFOztBQUVGO0FBQ0E7QUFDQTs7QUFFQSxDQUFDO0FBQ0Q7QUFDQSxxQkFBcUIsQ0FBQztBQUN0QixFQUFFOztBQUVGLENBQUM7QUFDRDtBQUNBLHFCQUFxQixDQ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O1xuXHRcdGFzc2VydC5lcXVhbCggR2xvYmFsLmdldERheXNJblNwYW4oICcwMS1NYXktMjAyMicsICcwNy1NYXktMjAyMicsIGZhbHNlLCBmYWxzZSwgZmFsc2UsIGZhbHNlLCBmYWxzZSwgZmFsc2UsIHRydWUgKSwgMSApO1xuXHRcdGFzc2VydC5lcXVhbCggR2xvYmFsLmdldERheXNJblNwYW4oICcwMS1NYXktMjAyMicsICcwNy1NYXktMjAyMicsIGZhbHNlLCBmYWxzZSwgZmFsc2UsIGZhbHNlLCBmYWxzZSwgZmFsc2UsIGZhbHNlICksIDAgKTtcblxuXHRcdGFzc2VydC5lcXVhbCggR2xvYmFsLmdldERheXNJblNwYW4oICcwMS1NYXktMjAyMicsICcwNy1NYXktMjAyMicsIHRydWUsIHRydWUsIHRydWUsIHRydWUsIHRydWUsIHRydWUsIHRydWUgKSwgNyApO1xuXHRcdGFzc2VydC5lcXVhbCggR2xvYmFsLmdldERheXNJblNwYW4oICcwMi1NYXktMjAyMicsICcwNy1NYXktMjAyMicsIHRydWUsIHRydWUsIHRydWUsIHRydWUsIHRydWUsIHRydWUsIHRydWUgKSwgNiApO1xuXHRcdGFzc2VydC5lcXVhbCggR2xvYmFsLmdldERheXNJblNwYW4oICcwMy1NYXktMjAyMicsICcwNy1NYXktMjAyMicsIHRydWUsIHRydWUsIHRydWUsIHRydWUsIHRydWUsIHRydWUsIHRydWUgKSwgNSApO1xuXHRcdGFzc2VydC5lcXVhbCggR2xvYmFsLmdldERheXNJblNwYW4oICcwNC1NYXktMjAyMicsICcwNy1NYXktMjAyMicsIHRydWUsIHRydWUsIHRydWUsIHRydWUsIHRydWUsIHRydWUsIHRydWUgKSwgNCApO1xuXHRcdGFzc2VydC5lcXVhbCggR2xvYmFsLmdldERheXNJblNwYW4oICcwNS1NYXktMjAyMicsICcwNy1NYXktMjAyMicsIHRydWUsIHRydWUsIHRydWUsIHRydWUsIHRydWUsIHRydWUsIHRydWUgKSwgMyApO1xuXHRcdGFzc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