Merge "Make validation for page more strict on djvu to take only numbers"
[mediawiki.git] / resources / lib / sinonjs / sinon-ie-1.9.0.js
blobc9fbd9da2e993a5479d5782f1fd4f8fc0984dc75
1 /**
2  * Sinon.JS 1.9.0, 2014/03/05
3  *
4  * @author Christian Johansen (christian@cjohansen.no)
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, christian@cjohansen.no
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  */
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 (christian@cjohansen.no)
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() {}
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;
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 (christian@cjohansen.no)
78  * @license BSD
79  *
80  * Copyright (c) 2010-2013 Christian Johansen
81  */
82 function XMLHttpRequest() {}
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;