openlayers/openlayers — pull request #878 by elerch (2013-02-11 19:57:31+00:00)
Title: Support for Ajax mocking frameworks

Rather than capturing and reusing the window.XMLHttpRequest at
the time of load, OpenLayers.Request.XMLHttpRequest will
instantiate a new window.XMLHttpRequest object. This allows
mocking frameworks (e.g. sinon.js) to temporarily mock the object
in unit tests.