-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtests.js
More file actions
74 lines (43 loc) · 1.37 KB
/
tests.js
File metadata and controls
74 lines (43 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//- JavaScript source code
//- tests.js ~~
// ~~ (c) SRW, 10 May 2014
// ~~ last updated 11 May 2014
(function (global) {
'use strict';
// Pragmas
/*global */
/*jshint maxparams: 1, quotmark: single, strict: true */
/*jslint indent: 4, maxlen: 80 */
/*properties
hasOwnProperty
*/
// Prerequisites
if (global.hasOwnProperty('QM') === false) {
throw new Error('QMachine has not been loaded.');
}
// Declarations
// Definitions
// Prototype definitions
// Out-of-scope definitions
// Demonstrations
(function () {
// (placeholder)
return;
}());
// That's all, folks!
return;
}(Function.prototype.call.call(function (that) {
'use strict';
// See "mapreduce.js" for explanation.
/*global global: false */
/*jslint indent: 4, maxlen: 80 */
/*properties global */
if (this === null) {
// Strict mode has captured us, but we already passed a reference :-)
return (typeof global === 'object') ? global : that;
}
// Strict mode isn't supported in this environment, but we need to make sure
// we don't get fooled by Rhino's `global` function.
return (typeof this.global === 'object') ? this.global : this;
}, null, this)));
//- vim:set syntax=javascript: