(f)
| 591 | // Provide the XMLHttpRequest class for IE 5.x-6.x: |
| 592 | jasmine.XmlHttpRequest = (typeof XMLHttpRequest == "undefined") ? function() { |
| 593 | function tryIt(f) { |
| 594 | try { |
| 595 | return f(); |
| 596 | } catch(e) { |
| 597 | } |
| 598 | return null; |
| 599 | } |
| 600 | |
| 601 | var xhr = tryIt(function() { |
| 602 | return new ActiveXObject("Msxml2.XMLHTTP.6.0"); |