From a8fbdcc6dd9ca34a809a8a78e31c7a017ab83fd7 Mon Sep 17 00:00:00 2001 From: "Joshua A. Horton" Date: Mon, 1 Aug 2022 14:36:02 +0700 Subject: [PATCH] chore(web): removes accidentally-added file from feature branch --- .../test/auto/browser/timeoutConfiguration.js | 45 ------------------- 1 file changed, 45 deletions(-) delete mode 100644 common/web/gesture-recognizer/src/test/auto/browser/timeoutConfiguration.js diff --git a/common/web/gesture-recognizer/src/test/auto/browser/timeoutConfiguration.js b/common/web/gesture-recognizer/src/test/auto/browser/timeoutConfiguration.js deleted file mode 100644 index f0a8cc913f..0000000000 --- a/common/web/gesture-recognizer/src/test/auto/browser/timeoutConfiguration.js +++ /dev/null @@ -1,45 +0,0 @@ -// Preprocessing of the Karma configuration's client.args parameter. - -com = com || {}; -com.keyman = com.keyman || {}; -com.keyman.karma = com.keyman.karma || {}; -com.keyman.karma.DEVICE_DETECT_FAILURE = false; - -(function() { - const testconfig = window['testconfig'] = {}; - - // Default value. - let mobile = false; - - // If we've set things up to support Device dection without loading KMW... - if(com.keyman.Device) { - try { - let device = new com.keyman.Device(); - device.detect(); - - mobile = (device.formFactor != 'desktop'); - } catch (err) { - // Sets a warning flag that unit-test files can use to disable themselves. - com.keyman.karma.DEVICE_DETECT_FAILURE = true; - } - } - - let configArgs = window['__karma__'].config.args; // Where Karma gives us our custom args. - for(var i = 0; i < configArgs.length; configArgs++) { - switch(configArgs[i].type) { - case 'timeouts': - var timeouts = JSON.parse(JSON.stringify(configArgs[i])); - delete timeouts.type; - - if(mobile) { - for(var key in timeouts) { - if(key != 'mobileFactor') { - timeouts[key] = timeouts[key] * timeouts['mobileFactor']; - } - } - } - testconfig['timeouts'] = timeouts; - break; - } - } -})();