From f11f26d23dabde24b0bcd67ac81b094aa89eb6c9 Mon Sep 17 00:00:00 2001 From: Trevor Bramwell Date: Fri, 10 Nov 2017 15:43:35 -0800 Subject: Remove 'utils/test' Directory and update INFO utils/test has been migrated to the releng-testresults repo Change-Id: If14a30e6abed1424d1e00b0fae048b7d869ec99b Signed-off-by: Trevor Bramwell --- .../assets/lib/jquery/src/css/adjustCSS.js | 71 ---------------------- 1 file changed, 71 deletions(-) delete mode 100644 utils/test/testapi/3rd_party/static/testapi-ui/assets/lib/jquery/src/css/adjustCSS.js (limited to 'utils/test/testapi/3rd_party/static/testapi-ui/assets/lib/jquery/src/css/adjustCSS.js') diff --git a/utils/test/testapi/3rd_party/static/testapi-ui/assets/lib/jquery/src/css/adjustCSS.js b/utils/test/testapi/3rd_party/static/testapi-ui/assets/lib/jquery/src/css/adjustCSS.js deleted file mode 100644 index ded3a1666..000000000 --- a/utils/test/testapi/3rd_party/static/testapi-ui/assets/lib/jquery/src/css/adjustCSS.js +++ /dev/null @@ -1,71 +0,0 @@ -define( [ - "../core", - "../var/rcssNum" -], function( jQuery, rcssNum ) { - -"use strict"; - -function adjustCSS( elem, prop, valueParts, tween ) { - var adjusted, - scale = 1, - maxIterations = 20, - currentValue = tween ? - function() { - return tween.cur(); - } : - function() { - return jQuery.css( elem, prop, "" ); - }, - initial = currentValue(), - unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), - - // Starting value computation is required for potential unit mismatches - initialInUnit = ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) && - rcssNum.exec( jQuery.css( elem, prop ) ); - - if ( initialInUnit && initialInUnit[ 3 ] !== unit ) { - - // Trust units reported by jQuery.css - unit = unit || initialInUnit[ 3 ]; - - // Make sure we update the tween properties later on - valueParts = valueParts || []; - - // Iteratively approximate from a nonzero starting point - initialInUnit = +initial || 1; - - do { - - // If previous iteration zeroed out, double until we get *something*. - // Use string for doubling so we don't accidentally see scale as unchanged below - scale = scale || ".5"; - - // Adjust and apply - initialInUnit = initialInUnit / scale; - jQuery.style( elem, prop, initialInUnit + unit ); - - // Update scale, tolerating zero or NaN from tween.cur() - // Break the loop if scale is unchanged or perfect, or if we've just had enough. - } while ( - scale !== ( scale = currentValue() / initial ) && scale !== 1 && --maxIterations - ); - } - - if ( valueParts ) { - initialInUnit = +initialInUnit || +initial || 0; - - // Apply relative offset (+=/-=) if specified - adjusted = valueParts[ 1 ] ? - initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] : - +valueParts[ 2 ]; - if ( tween ) { - tween.unit = unit; - tween.start = initialInUnit; - tween.end = adjusted; - } - } - return adjusted; -} - -return adjustCSS; -} ); -- cgit 1.2.3-korg