angular.js/test/ng
Pete Bacon Darwin a3172a285f fix($httpBackend): only IE8 and below can't use script.onload for JSONP
IE8, IE9 and IE10 can use `script.onreadystate` so up till now we have been using this
if the sniffer says we are on IE.
But IE11 now does not support `script.onreadystate` and only supports the more standard
`script.onload` and `script.onerror`.
IE9 and IE10 do support `script.onload` and `script.onerror`. So now we only test whether
we are on IE8 or earlier before using `script.onreadystate`.
See http://pieisgood.org/test/script-link-events/

jQuery just uses all these handlers at once and hopes for the best, but since IE9 and IE10
support both sets of handlers, this could cause the handlers to be run more than once.

jQuery also notes that there is a potential memory leak in IE unless we remove the handlers
from the script object once they are run.  So we are doing this too, now.

Closes #4523
Closes #4527
Closes #4922
2013-11-22 13:45:55 +00:00
..
directive fix(ngInclude): Don't throw when the ngInclude element contains content with directives. 2013-11-21 22:20:11 -08:00
filter test(filters): fix timezone-dependent test 2013-10-09 10:18:51 -07:00
anchorScrollSpec.js fix($sniffer): report history false on Android < 4 2012-05-14 15:12:51 -07:00
animateSpec.js fix(jqLite): use get/setAttribute so that jqLite works on SVG nodes 2013-09-27 12:38:27 -07:00
browserSpecs.js fix($location): prevent infinite digest error in IE7 2013-10-02 15:33:31 -07:00
cacheFactorySpec.js feat(minerr): log minerr doc url in development 2013-08-15 13:23:18 -07:00
compileSpec.js test($compile): correct the assertion to make test pass on IE11 2013-11-22 00:52:57 -08:00
controllerSpec.js fix(*): protect calls to hasOwnProperty in public API 2013-10-07 09:01:13 -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
filterSpec.js feat(filter): allow map of filters to be registered 2013-10-01 10:26:36 +01:00
httpBackendSpec.js fix($httpBackend): only IE8 and below can't use script.onload for JSONP 2013-11-22 13:45:55 +00:00
httpSpec.js fix($http): allow empty responses to be cached 2013-09-02 11:47:51 +02:00
interpolateSpec.js feat(minerr): log minerr doc url in development 2013-08-15 13:23:18 -07:00
intervalSpec.js feat($interval): add a service wrapping setInterval 2013-10-07 13:45:40 -07:00
localeSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
locationSpec.js fix(urlUtils): made removal of windows drive from path safer 2013-11-13 15:53:20 -08:00
logSpec.js fix(log): prevent logging undefined for $log in IE 2013-09-27 16:44:21 -07:00
parseSpec.js fix($parse): allow for new lines in expr when promise unwrapping is on 2013-11-22 00:19:08 -08:00
qSpec.js style($qSpec): add semi-colons 2013-10-02 14:12:35 +01:00
rootElementSpec.js feat($rootElement): added application root element 2012-06-02 14:50:58 -07:00
rootScopeSpec.js fix(rootScope): make stopPropagation only stop its own event 2013-10-05 22:45:43 +01:00
sceSpecs.js refactor($sce): Use $sniffer instead of $document for feature detection. 2013-11-20 23:12:39 +00:00
snifferSpec.js fix(tests): Correct tests for IE11 2013-11-21 21:53:09 -08:00
timeoutSpec.js feat($interval): add a service wrapping setInterval 2013-10-07 13:45:40 -07:00
urlUtilsSpec.js refactor(location): $location now uses urlUtils, not RegEx 2013-10-10 11:41:07 -07:00
windowSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00