angular.js/test/ng
Braden Shepherdson bca1604c12 fix(currency): Handle not-quite-zero values
IEEE 754 floating point sometimes results in values that are very small,
rather than zero. One example is 1.0 + 1.07 - 2.07, which returns
4.440892098500626e-16 instead of 0.

This change tweaks the number formatting logic so that an exponential
value with a negative exponent that is larger than the precision+1
returns 0 instead. For example: with precision 2, anything with an
exponent of -4, -5 or more would become 0. 9e-3 = 0.009 = 0.01, but 9e-4
= 0.0009 = 0.001 = 0.00. This detail is unlikely to matter since this
quirk is usually only triggered with values very close to zero.

Closes #1469
2012-10-26 08:51:28 -07:00
..
directive fix(FormController): propagate dirty state to parent forms 2012-09-06 16:06:26 -07:00
filter fix(currency): Handle not-quite-zero values 2012-10-26 08:51:28 -07:00
anchorScrollSpec.js fix($sniffer): report history false on Android < 4 2012-05-14 15:12:51 -07:00
browserSpecs.js fix(browser): prevent ie from getting into redirect loop 2012-06-22 10:21:31 -07:00
cacheFactorySpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
compileSpec.js fix($compile): reference local in isolate scope 2012-09-20 18:32:01 -07:00
controllerSpec.js chore(controller): allow setting map of controllers 2012-05-04 15:50:37 -07:00
documentSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
exceptionHandlerSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
httpBackendSpec.js feat($http): support reponseType 2012-08-10 16:17:59 -07:00
httpSpec.js feat($http): Allow setting withCredentials on defaults 2012-09-11 21:59:31 -07:00
interpolateSpec.js fix($parser): string concatination with undefined model 2012-09-06 16:06:21 -07:00
localeSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
locationSpec.js test(locationSpec): fix broken tests after vojta's commit 2012-08-30 16:25:23 -07:00
logSpec.js feat($sniffer): auto detect CSP mode 2012-08-10 14:53:53 -07:00
parseSpec.js fix($parse): support methods on falsy primitive types 2012-05-05 03:30:19 +02:00
qSpec.js fix($q): $q.reject should forward callbacks if missing 2012-04-02 10:14:04 -07:00
rootElementSpec.js feat($rootElement): added application root element 2012-06-02 14:50:58 -07:00
rootScopeSpec.js fix($evalAsync): have only one global async queue 2012-09-11 16:12:41 -07:00
routeParamsSpec.js feat($route): allow chaining of whens and otherwise 2012-04-04 16:10:44 -07:00
routeSpec.js fix($route): support inline annotation on .resolve 2012-09-11 22:10:26 -07:00
snifferSpec.js feat($sniffer): auto detect CSP mode 2012-08-10 14:53:53 -07:00
timeoutSpec.js fix($timeout): allow calling $timeout.cancel() with undefined 2012-06-04 17:43:14 -07:00
windowSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00