[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Summary view] [Print] [Text view]
1 /** 2 * Sinon.JS 1.10.3, 2014/07/11 3 * 4 * @author Christian Johansen ([email protected]) 5 * @author Contributors: https://github.com/cjohansen/Sinon.JS/blob/master/AUTHORS 6 * 7 * (The BSD License) 8 * 9 * Copyright (c) 2010-2014, Christian Johansen, [email protected] 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without modification, 13 * are permitted provided that the following conditions are met: 14 * 15 * * Redistributions of source code must retain the above copyright notice, 16 * this list of conditions and the following disclaimer. 17 * * Redistributions in binary form must reproduce the above copyright notice, 18 * this list of conditions and the following disclaimer in the documentation 19 * and/or other materials provided with the distribution. 20 * * Neither the name of Christian Johansen nor the names of his contributors 21 * may be used to endorse or promote products derived from this software 22 * without specific prior written permission. 23 * 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 25 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 26 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 33 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 */ 35 36 /*global sinon, setTimeout, setInterval, clearTimeout, clearInterval, Date*/ 37 /** 38 * Helps IE run the fake timers. By defining global functions, IE allows 39 * them to be overwritten at a later point. If these are not defined like 40 * this, overwriting them will result in anything from an exception to browser 41 * crash. 42 * 43 * If you don't require fake timers to work in IE, don't include this file. 44 * 45 * @author Christian Johansen ([email protected]) 46 * @license BSD 47 * 48 * Copyright (c) 2010-2013 Christian Johansen 49 */ 50 function setTimeout() {} 51 function clearTimeout() {} 52 function setImmediate() {} 53 function clearImmediate() {} 54 function setInterval() {} 55 function clearInterval() {} 56 function Date() {} 57 58 // Reassign the original functions. Now their writable attribute 59 // should be true. Hackish, I know, but it works. 60 setTimeout = sinon.timers.setTimeout; 61 clearTimeout = sinon.timers.clearTimeout; 62 setImmediate = sinon.timers.setImmediate; 63 clearImmediate = sinon.timers.clearImmediate; 64 setInterval = sinon.timers.setInterval; 65 clearInterval = sinon.timers.clearInterval; 66 Date = sinon.timers.Date; 67 68 /*global sinon*/ 69 /** 70 * Helps IE run the fake XMLHttpRequest. By defining global functions, IE allows 71 * them to be overwritten at a later point. If these are not defined like 72 * this, overwriting them will result in anything from an exception to browser 73 * crash. 74 * 75 * If you don't require fake XHR to work in IE, don't include this file. 76 * 77 * @author Christian Johansen ([email protected]) 78 * @license BSD 79 * 80 * Copyright (c) 2010-2013 Christian Johansen 81 */ 82 function XMLHttpRequest() {} 83 84 // Reassign the original function. Now its writable attribute 85 // should be true. Hackish, I know, but it works. 86 XMLHttpRequest = sinon.xhr.XMLHttpRequest || undefined; 87 /*global sinon*/ 88 /** 89 * Helps IE run the fake XDomainRequest. By defining global functions, IE allows 90 * them to be overwritten at a later point. If these are not defined like 91 * this, overwriting them will result in anything from an exception to browser 92 * crash. 93 * 94 * If you don't require fake XDR to work in IE, don't include this file. 95 */ 96 function XDomainRequest() {} 97 98 // Reassign the original function. Now its writable attribute 99 // should be true. Hackish, I know, but it works. 100 XDomainRequest = sinon.xdr.XDomainRequest || undefined;
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |