angular.js/test
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
..
auto fix($injector): more conservative annotation parsing 2012-09-06 16:06:24 -07:00
bootstrap feat(bootstrap): support code prettify and dropdown from bootstrap 2012-05-04 15:50:37 -07:00
ng fix(currency): Handle not-quite-zero values 2012-10-26 08:51:28 -07:00
ngCookies chore(ngCookies): moved to module 2012-03-28 11:16:36 -07:00
ngMock fix($defer): remove deprecated $defer service 2012-06-12 01:09:07 -07:00
ngResource fix($resource): allow falsy values in URL parameters 2012-09-06 16:06:22 -07:00
ngSanitize chore(ngSanitize): extract $sanitize, ngBindHtml, linkyFilter into a module 2012-04-11 15:50:47 -07:00
ngScenario feat(scenario): add dblclick method to the ngScenario dsl 2012-09-06 16:06:24 -07:00
AngularSpec.js test(bootstrap): test exception siling during bootstrap 2012-08-30 15:15:11 -07:00
ApiSpecs.js fix(ngRepeat): now works with primitive types 2012-09-06 16:06:21 -07:00
BinderSpec.js feat($interpolate): provide contextual error messages 2012-08-30 14:50:22 -07:00
jqLiteSpec.js test(jqLite): add missing test for $destroy event 2012-08-10 13:04:39 -07:00
jquery_alias.js fix(specs): fix jQuery to jqLite binding on IE8 2011-09-16 02:44:33 +02:00
jquery_remove.js fix(specs): fix jQuery to jqLite binding on IE8 2011-09-16 02:44:33 +02:00
jQueryPatchSpec.js chore(formating): clean code to be function() { 2011-10-11 11:01:46 -07:00
loaderSpec.js feat($controller): support controller registration via $controllerProvider 2012-03-26 15:23:29 -07:00
matchers.js fix(matchers.toHaveClass): Correct reference to angular.mock.dump 2012-03-19 17:26:29 -07:00
testabilityPatch.js fix(jqLite): have same expando format as jQuery 2012-05-17 10:36:45 -07:00