How to use Function method in fast-check-monorepo

Best JavaScript code snippet using fast-check-monorepo

d3.min.js

Source:d3.min.js Github

copy

Full Screen

...6487 (e.parse = function (n, t) {6488 var r;6489 return e.parseRows(n, function (n, e) {6490 if (r) return r(n, e - 1);6491 var i = new Function(6492 "d",6493 "return {" +6494 n6495 .map(function (n, t) {6496 return JSON.stringify(n) + ": d[" + t + "]";6497 })6498 .join(",") +6499 "}"6500 );6501 r = t6502 ? function (n, e) {6503 return t(i(n), e);6504 }6505 : i;...

Full Screen

Full Screen

d3.v3.min.js

Source:d3.v3.min.js Github

copy

Full Screen

...4363 var r;4364 return e.parseRows(n, function(n, e) {4365 if (r)4366 return r(n, e - 1);4367 var u = new Function("d", "return {" + n.map(function(n, t) {4368 return JSON.stringify(n) + ": d[" + t + "]"4369 }).join(",") + "}");4370 r = t ? function(n, e) {4371 return t(u(n), e)4372 } : u4373 })4374 }, e.parseRows = function(n, t) {4375 function e() {4376 if (s >= l)4377 return o;4378 if (u)4379 return u=!1, i;4380 var t = s;4381 if (34 === n.charCodeAt(t)) {...

Full Screen

Full Screen

L2Dwidget.min.js

Source:L2Dwidget.min.js Github

copy

Full Screen

...28 o = e(19),29 i = e(1).Symbol,30 c = "function" == typeof i;31 (t.exports = function(t) { return r[t] || (r[t] = c && i[t] || (c ? i : o)("Symbol." + t)) }).store = r32}, function(t, n) { var e = t.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")(); "number" == typeof __g && (__g = e) }, function(t, n) { var e = t.exports = { version: "2.6.1" }; "number" == typeof __e && (__e = e) }, function(t, n, e) {33 var r = e(6);34 t.exports = function(t) { if (!r(t)) throw TypeError(t + " is not an object!"); return t }35}, function(t, n, e) {36 var r = e(11),37 o = e(31);38 t.exports = e(7) ? function(t, n, e) { return r.f(t, n, o(1, e)) } : function(t, n, e) { return t[n] = e, t }39}, function(t, n, e) {40 var r = e(1),41 o = e(4),42 i = e(12),43 c = e(19)("src"),44 u = Function.toString,45 a = ("" + u).split("toString");46 e(2).inspectSource = function(t) { return u.call(t) }, (t.exports = function(t, n, e, u) {47 var f = "function" == typeof e;48 f && (i(e, "name") || o(e, "name", n)), t[n] !== e && (f && (i(e, c) || o(e, c, t[n] ? "" + t[n] : a.join(String(n)))), t === r ? t[n] = e : u ? t[n] ? t[n] = e : o(t, n, e) : (delete t[n], o(t, n, e)))49 })(Function.prototype, "toString", function() { return "function" == typeof this && this[c] || u.call(this) })50}, function(t, n) { t.exports = function(t) { return "object" == typeof t ? null !== t : "function" == typeof t } }, function(t, n, e) { t.exports = !e(30)(function() { return 7 != Object.defineProperty({}, "a", { get: function() { return 7 } }).a }) }, function(t, n) { t.exports = {} }, function(t, n) { t.exports = function(t) { var n = typeof t; return null != t && ("object" == n || "function" == n) } }, function(t, n) {51 var e = {}.toString;52 t.exports = function(t) { return e.call(t).slice(8, -1) }53}, function(t, n, e) {54 var r = e(3),55 o = e(56),56 i = e(57),57 c = Object.defineProperty;58 n.f = e(7) ? Object.defineProperty : function(t, n, e) {59 if (r(t), n = i(n, !0), r(e), o) try { return c(t, n, e) } catch (t) {}60 if ("get" in e || "set" in e) throw TypeError("Accessors not supported!");61 return "value" in e && (t[n] = e.value), t62 }63}, function(t, n) {64 var e = {}.hasOwnProperty;65 t.exports = function(t, n) { return e.call(t, n) }66}, function(t, n, e) {67 var r = e(1),68 o = e(2),69 i = e(4),70 c = e(5),71 u = e(14),72 a = function(t, n, e) {73 var f, s, l, p, v = t & a.F,74 d = t & a.G,75 h = t & a.S,76 y = t & a.P,77 b = t & a.B,78 m = d ? r : h ? r[n] || (r[n] = {}) : (r[n] || {}).prototype,79 w = d ? o : o[n] || (o[n] = {}),80 x = w.prototype || (w.prototype = {});81 for (f in d && (e = n), e) l = ((s = !v && m && void 0 !== m[f]) ? m : e)[f], p = b && s ? u(l, r) : y && "function" == typeof l ? u(Function.call, l) : l, m && c(m, f, l, t & a.U), w[f] != l && i(w, f, p), y && x[f] != l && (x[f] = l)82 };83 r.core = o, a.F = 1, a.G = 2, a.S = 4, a.P = 8, a.B = 16, a.W = 32, a.U = 64, a.R = 128, t.exports = a84}, function(t, n, e) {85 var r = e(15);86 t.exports = function(t, n, e) {87 if (r(t), void 0 === n) return t;88 switch (e) {89 case 1:90 return function(e) { return t.call(n, e) };91 case 2:92 return function(e, r) { return t.call(n, e, r) };93 case 3:94 return function(e, r, o) { return t.call(n, e, r, o) }95 }96 return function() { return t.apply(n, arguments) }97 }98}, function(t, n) { t.exports = function(t) { if ("function" != typeof t) throw TypeError(t + " is not a function!"); return t } }, function(t, n, e) {99 var r = e(27);100 t.exports = function(t, n) {101 for (var e = t.length; e--;)102 if (r(t[e][0], n)) return e;103 return -1104 }105}, function(t, n, e) {106 var r = e(10),107 o = e(0)("toStringTag"),108 i = "Arguments" == r(function() { return arguments }());109 t.exports = function(t) { var n, e, c; return void 0 === t ? "Undefined" : null === t ? "Null" : "string" == typeof(e = function(t, n) { try { return t[n] } catch (t) {} }(n = Object(t), o)) ? e : i ? r(n) : "Object" == (c = r(n)) && "function" == typeof n.callee ? "Arguments" : c }110}, function(t, n) { t.exports = !1 }, function(t, n) {111 var e = 0,112 r = Math.random();113 t.exports = function(t) { return "Symbol(".concat(void 0 === t ? "" : t, ")_", (++e + r).toString(36)) }114}, function(t, n, e) {115 var r = e(6),116 o = e(1).document,117 i = r(o) && r(o.createElement);118 t.exports = function(t) { return i ? o.createElement(t) : {} }119}, function(t, n) {120 var e = Math.ceil,121 r = Math.floor;122 t.exports = function(t) { return isNaN(t = +t) ? 0 : (t > 0 ? r : e)(t) }123}, function(t, n) { t.exports = function(t) { if (void 0 == t) throw TypeError("Can't call method on " + t); return t } }, function(t, n, e) {124 var r = e(64),125 o = e(22);126 t.exports = function(t) { return r(o(t)) }127}, function(t, n, e) {128 var r = e(29)("keys"),129 o = e(19);130 t.exports = function(t) { return r[t] || (r[t] = o(t)) }131}, function(t, n, e) {132 var r = e(11).f,133 o = e(12),134 i = e(0)("toStringTag");135 t.exports = function(t, n, e) { t && !o(t = e ? t : t.prototype, i) && r(t, i, { configurable: !0, value: n }) }136}, function(t, n, e) {137 "use strict";138 var r = e(15);139 t.exports.f = function(t) {140 return new function(t) {141 var n, e;142 this.promise = new t(function(t, r) {143 if (void 0 !== n || void 0 !== e) throw TypeError("Bad Promise constructor");144 n = t, e = r145 }), this.resolve = r(n), this.reject = r(e)146 }(t)147 }148}, function(t, n) { t.exports = function(t, n) { return t === n || t != t && n != n } }, function(t, n, e) {149 var r = e(101);150 t.exports = function(t, n, e) { "__proto__" == n && r ? r(t, n, { configurable: !0, enumerable: !0, value: e, writable: !0 }) : t[n] = e }151}, function(t, n, e) {152 var r = e(2),153 o = e(1),154 i = o["__core-js_shared__"] || (o["__core-js_shared__"] = {});155 (t.exports = function(t, n) { return i[t] || (i[t] = void 0 !== n ? n : {}) })("versions", []).push({ version: r.version, mode: e(18) ? "pure" : "global", copyright: "© 2018 Denis Pushkarev (zloirock.ru)" })156}, function(t, n) { t.exports = function(t) { try { return !!t() } catch (t) { return !0 } } }, function(t, n) { t.exports = function(t, n) { return { enumerable: !(1 & t), configurable: !(2 & t), writable: !(4 & t), value: n } } }, function(t, n, e) {157 "use strict";158 var r = e(18),159 o = e(13),160 i = e(5),161 c = e(4),162 u = e(8),163 a = e(60),164 f = e(25),165 s = e(67),166 l = e(0)("iterator"),167 p = !([].keys && "next" in [].keys()),168 v = function() { return this };169 t.exports = function(t, n, e, d, h, y, b) {170 a(e, n, d);171 var m, w, x, g = function(t) {172 if (!p && t in P) return P[t];173 switch (t) {174 case "keys":175 case "values":176 return function() { return new e(this, t) }177 }178 return function() { return new e(this, t) }179 },180 _ = n + " Iterator",181 j = "values" == h,182 O = !1,183 P = t.prototype,184 k = P[l] || P["@@iterator"] || h && P[h],185 S = k || g(h),186 T = h ? j ? g("entries") : S : void 0,187 L = "Array" == n && P.entries || k;188 if (L && (x = s(L.call(new t))) !== Object.prototype && x.next && (f(x, _, !0), r || "function" == typeof x[l] || c(x, l, v)), j && k && "values" !== k.name && (O = !0, S = function() { return k.call(this) }), r && !b || !p && !O && P[l] || c(P, l, S), u[n] = S, u[_] = v, h)189 if (m = { values: j ? S : g("values"), keys: y ? S : g("keys"), entries: T }, b)190 for (w in m) w in P || i(P, w, m[w]);191 else o(o.P + o.F * (p || O), n, m);192 return m193 }194}, function(t, n, e) {195 var r = e(63),196 o = e(35);197 t.exports = Object.keys || function(t) { return r(t, o) }198}, function(t, n, e) {199 var r = e(21),200 o = Math.min;201 t.exports = function(t) { return t > 0 ? o(r(t), 9007199254740991) : 0 }202}, function(t, n) { t.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",") }, function(t, n, e) {203 var r = e(1).document;204 t.exports = r && r.documentElement205}, function(t, n, e) {206 var r = e(3),207 o = e(15),208 i = e(0)("species");209 t.exports = function(t, n) { var e, c = r(t).constructor; return void 0 === c || void 0 == (e = r(c)[i]) ? n : o(e) }210}, function(t, n, e) {211 var r, o, i, c = e(14),212 u = e(79),213 a = e(36),214 f = e(20),215 s = e(1),216 l = s.process,217 p = s.setImmediate,218 v = s.clearImmediate,219 d = s.MessageChannel,220 h = s.Dispatch,221 y = 0,222 b = {},223 m = function() {224 var t = +this;225 if (b.hasOwnProperty(t)) {226 var n = b[t];227 delete b[t], n()228 }229 },230 w = function(t) { m.call(t.data) };231 p && v || (p = function(t) { for (var n = [], e = 1; arguments.length > e;) n.push(arguments[e++]); return b[++y] = function() { u("function" == typeof t ? t : Function(t), n) }, r(y), y }, v = function(t) { delete b[t] }, "process" == e(10)(l) ? r = function(t) { l.nextTick(c(m, t, 1)) } : h && h.now ? r = function(t) { h.now(c(m, t, 1)) } : d ? (i = (o = new d).port2, o.port1.onmessage = w, r = c(i.postMessage, i, 1)) : s.addEventListener && "function" == typeof postMessage && !s.importScripts ? (r = function(t) { s.postMessage(t + "", "*") }, s.addEventListener("message", w, !1)) : r = "onreadystatechange" in f("script") ? function(t) { a.appendChild(f("script")).onreadystatechange = function() { a.removeChild(this), m.call(t) } } : function(t) { setTimeout(c(m, t, 1), 0) }), t.exports = { set: p, clear: v }232}, function(t, n) { t.exports = function(t) { try { return { e: !1, v: t() } } catch (t) { return { e: !0, v: t } } } }, function(t, n, e) {233 var r = e(3),234 o = e(6),235 i = e(26);236 t.exports = function(t, n) { if (r(t), o(n) && n.constructor === t) return n; var e = i.f(t); return (0, e.resolve)(n), e.promise }237}, function(t, n) {238 t.exports = function(t, n, e) {239 switch (e.length) {240 case 0:241 return t.call(n);242 case 1:243 return t.call(n, e[0]);244 case 2:245 return t.call(n, e[0], e[1]);246 case 3:247 return t.call(n, e[0], e[1], e[2])248 }249 return t.apply(n, e)250 }251}, function(t, n, e) {252 var r = e(91),253 o = e(92),254 i = e(93);255 t.exports = function(t, n) { return i(o(t, n, r), t + "") }256}, function(t, n, e) {257 var r = e(95),258 o = e(44),259 i = e(103),260 c = e(105),261 u = e(9),262 a = e(51),263 f = e(50);264 t.exports = function t(n, e, s, l, p) {265 n !== e && i(e, function(i, a) {266 if (u(i)) p || (p = new r), c(n, e, a, s, t, l, p);267 else {268 var v = l ? l(f(n, a), i, a + "", n, e, p) : void 0;269 void 0 === v && (v = i), o(n, a, v)270 }271 }, a)272 }273}, function(t, n, e) {274 var r = e(28),275 o = e(27);276 t.exports = function(t, n, e) {277 (void 0 === e || o(t[n], e)) && (void 0 !== e || n in t) || r(t, n, e)278 }279}, function(t, n, e) {280 var r = e(108),281 o = "object" == typeof self && self && self.Object === Object && self,282 i = r || o || Function("return this")();283 t.exports = i284}, function(t, n, e) {285 var r = e(116)(Object.getPrototypeOf, Object);286 t.exports = r287}, function(t, n, e) {288 var r = e(48),289 o = e(9),290 i = "[object AsyncFunction]",291 c = "[object Function]",292 u = "[object GeneratorFunction]",293 a = "[object Proxy]";294 t.exports = function(t) { if (!o(t)) return !1; var n = r(t); return n == c || n == u || n == i || n == a }295}, function(t, n) {296 var e = Object.prototype.toString;297 t.exports = function(t) { return e.call(t) }298}, function(t, n) { t.exports = function(t) { return null != t && "object" == typeof t } }, function(t, n) { t.exports = function(t, n) { if ("__proto__" != n) return t[n] } }, function(t, n) {299 t.exports = function(t) {300 var n = [];301 if (null != t)302 for (var e in Object(t)) n.push(e);303 return n304 }305}, function(t, n, e) {306 "use strict";307 Object.defineProperty(n, "__esModule", { value: !0 }), n.config = n.configApplyer = void 0;308 var r = i(e(90)),309 o = i(e(132));310311 function i(t) { return t && t.__esModule ? t : { default: t } }312 var c = {};313 n.configApplyer = function(t) { n.config = c = (0, r.default)(t, o.default) }, n.config = c314}, function(t, n, e) { e(54), e(87), t.exports = e(88) }, function(t, n, e) { e(55), e(58), e(69), e(73), e(85), e(86), t.exports = e(2).Promise }, function(t, n, e) {315 "use strict";316 var r = e(17),317 o = {};318 o[e(0)("toStringTag")] = "z", o + "" != "[object z]" && e(5)(Object.prototype, "toString", function() { return "[object " + r(this) + "]" }, !0)319}, function(t, n, e) { t.exports = !e(7) && !e(30)(function() { return 7 != Object.defineProperty(e(20)("div"), "a", { get: function() { return 7 } }).a }) }, function(t, n, e) {320 var r = e(6);321 t.exports = function(t, n) { if (!r(t)) return t; var e, o; if (n && "function" == typeof(e = t.toString) && !r(o = e.call(t))) return o; if ("function" == typeof(e = t.valueOf) && !r(o = e.call(t))) return o; if (!n && "function" == typeof(e = t.toString) && !r(o = e.call(t))) return o; throw TypeError("Can't convert object to primitive value") }322}, function(t, n, e) {323 "use strict";324 var r = e(59)(!0);325 e(32)(String, "String", function(t) { this._t = String(t), this._i = 0 }, function() {326 var t, n = this._t,327 e = this._i;328 return e >= n.length ? { value: void 0, done: !0 } : (t = r(n, e), this._i += t.length, { value: t, done: !1 })329 })330}, function(t, n, e) {331 var r = e(21),332 o = e(22);333 t.exports = function(t) {334 return function(n, e) {335 var i, c, u = String(o(n)),336 a = r(e),337 f = u.length;338 return a < 0 || a >= f ? t ? "" : void 0 : (i = u.charCodeAt(a)) < 55296 || i > 56319 || a + 1 === f || (c = u.charCodeAt(a + 1)) < 56320 || c > 57343 ? t ? u.charAt(a) : i : t ? u.slice(a, a + 2) : c - 56320 + (i - 55296 << 10) + 65536339 }340 }341}, function(t, n, e) {342 "use strict";343 var r = e(61),344 o = e(31),345 i = e(25),346 c = {};347 e(4)(c, e(0)("iterator"), function() { return this }), t.exports = function(t, n, e) { t.prototype = r(c, { next: o(1, e) }), i(t, n + " Iterator") }348}, function(t, n, e) {349 var r = e(3),350 o = e(62),351 i = e(35),352 c = e(24)("IE_PROTO"),353 u = function() {},354 a = function() {355 var t, n = e(20)("iframe"),356 r = i.length;357 for (n.style.display = "none", e(36).appendChild(n), n.src = "javascript:", (t = n.contentWindow.document).open(), t.write("<script>document.F=Object<\/script>"), t.close(), a = t.F; r--;) delete a.prototype[i[r]];358 return a()359 };360 t.exports = Object.create || function(t, n) { var e; return null !== t ? (u.prototype = r(t), e = new u, u.prototype = null, e[c] = t) : e = a(), void 0 === n ? e : o(e, n) }361}, function(t, n, e) {362 var r = e(11),363 o = e(3),364 i = e(33);365 t.exports = e(7) ? Object.defineProperties : function(t, n) { o(t); for (var e, c = i(n), u = c.length, a = 0; u > a;) r.f(t, e = c[a++], n[e]); return t }366}, function(t, n, e) {367 var r = e(12),368 o = e(23),369 i = e(65)(!1),370 c = e(24)("IE_PROTO");371 t.exports = function(t, n) {372 var e, u = o(t),373 a = 0,374 f = [];375 for (e in u) e != c && r(u, e) && f.push(e);376 for (; n.length > a;) r(u, e = n[a++]) && (~i(f, e) || f.push(e));377 return f378 }379}, function(t, n, e) {380 var r = e(10);381 t.exports = Object("z").propertyIsEnumerable(0) ? Object : function(t) { return "String" == r(t) ? t.split("") : Object(t) }382}, function(t, n, e) {383 var r = e(23),384 o = e(34),385 i = e(66);386 t.exports = function(t) {387 return function(n, e, c) {388 var u, a = r(n),389 f = o(a.length),390 s = i(c, f);391 if (t && e != e) {392 for (; f > s;)393 if ((u = a[s++]) != u) return !0394 } else395 for (; f > s; s++)396 if ((t || s in a) && a[s] === e) return t || s || 0; return !t && -1397 }398 }399}, function(t, n, e) {400 var r = e(21),401 o = Math.max,402 i = Math.min;403 t.exports = function(t, n) { return (t = r(t)) < 0 ? o(t + n, 0) : i(t, n) }404}, function(t, n, e) {405 var r = e(12),406 o = e(68),407 i = e(24)("IE_PROTO"),408 c = Object.prototype;409 t.exports = Object.getPrototypeOf || function(t) { return t = o(t), r(t, i) ? t[i] : "function" == typeof t.constructor && t instanceof t.constructor ? t.constructor.prototype : t instanceof Object ? c : null }410}, function(t, n, e) {411 var r = e(22);412 t.exports = function(t) { return Object(r(t)) }413}, function(t, n, e) {414 for (var r = e(70), o = e(33), i = e(5), c = e(1), u = e(4), a = e(8), f = e(0), s = f("iterator"), l = f("toStringTag"), p = a.Array, v = { CSSRuleList: !0, CSSStyleDeclaration: !1, CSSValueList: !1, ClientRectList: !1, DOMRectList: !1, DOMStringList: !1, DOMTokenList: !0, DataTransferItemList: !1, FileList: !1, HTMLAllCollection: !1, HTMLCollection: !1, HTMLFormElement: !1, HTMLSelectElement: !1, MediaList: !0, MimeTypeArray: !1, NamedNodeMap: !1, NodeList: !0, PaintRequestList: !1, Plugin: !1, PluginArray: !1, SVGLengthList: !1, SVGNumberList: !1, SVGPathSegList: !1, SVGPointList: !1, SVGStringList: !1, SVGTransformList: !1, SourceBufferList: !1, StyleSheetList: !0, TextTrackCueList: !1, TextTrackList: !1, TouchList: !1 }, d = o(v), h = 0; h < d.length; h++) {415 var y, b = d[h],416 m = v[b],417 w = c[b],418 x = w && w.prototype;419 if (x && (x[s] || u(x, s, p), x[l] || u(x, l, b), a[b] = p, m))420 for (y in r) x[y] || i(x, y, r[y], !0)421 }422}, function(t, n, e) {423 "use strict";424 var r = e(71),425 o = e(72),426 i = e(8),427 c = e(23);428 t.exports = e(32)(Array, "Array", function(t, n) { this._t = c(t), this._i = 0, this._k = n }, function() {429 var t = this._t,430 n = this._k,431 e = this._i++;432 return !t || e >= t.length ? (this._t = void 0, o(1)) : o(0, "keys" == n ? e : "values" == n ? t[e] : [e, t[e]])433 }, "values"), i.Arguments = i.Array, r("keys"), r("values"), r("entries")434}, function(t, n, e) {435 var r = e(0)("unscopables"),436 o = Array.prototype;437 void 0 == o[r] && e(4)(o, r, {}), t.exports = function(t) { o[r][t] = !0 }438}, function(t, n) { t.exports = function(t, n) { return { value: n, done: !!t } } }, function(t, n, e) {439 "use strict";440 var r, o, i, c, u = e(18),441 a = e(1),442 f = e(14),443 s = e(17),444 l = e(13),445 p = e(6),446 v = e(15),447 d = e(74),448 h = e(75),449 y = e(37),450 b = e(38).set,451 m = e(80)(),452 w = e(26),453 x = e(39),454 g = e(81),455 _ = e(40),456 j = a.TypeError,457 O = a.process,458 P = O && O.versions,459 k = P && P.v8 || "",460 S = a.Promise,461 T = "process" == s(O),462 L = function() {},463 E = o = w.f,464 M = !! function() {465 try {466 var t = S.resolve(1),467 n = (t.constructor = {})[e(0)("species")] = function(t) { t(L, L) };468 return (T || "function" == typeof PromiseRejectionEvent) && t.then(L) instanceof n && 0 !== k.indexOf("6.6") && -1 === g.indexOf("Chrome/66")469 } catch (t) {}470 }(),471 A = function(t) { var n; return !(!p(t) || "function" != typeof(n = t.then)) && n },472 F = function(t, n) {473 if (!t._n) {474 t._n = !0;475 var e = t._c;476 m(function() {477 for (var r = t._v, o = 1 == t._s, i = 0, c = function(n) {478 var e, i, c, u = o ? n.ok : n.fail,479 a = n.resolve,480 f = n.reject,481 s = n.domain;482 try { u ? (o || (2 == t._h && N(t), t._h = 1), !0 === u ? e = r : (s && s.enter(), e = u(r), s && (s.exit(), c = !0)), e === n.promise ? f(j("Promise-chain cycle")) : (i = A(e)) ? i.call(e, a, f) : a(e)) : f(r) } catch (t) { s && !c && s.exit(), f(t) }483 }; e.length > i;) c(e[i++]);484 t._c = [], t._n = !1, n && !t._h && C(t)485 })486 }487 },488 C = function(t) {489 b.call(a, function() {490 var n, e, r, o = t._v,491 i = D(t);492 if (i && (n = x(function() { T ? O.emit("unhandledRejection", o, t) : (e = a.onunhandledrejection) ? e({ promise: t, reason: o }) : (r = a.console) && r.error && r.error("Unhandled promise rejection", o) }), t._h = T || D(t) ? 2 : 1), t._a = void 0, i && n.e) throw n.v493 })494 },495 D = function(t) { return 1 !== t._h && 0 === (t._a || t._c).length },496 N = function(t) {497 b.call(a, function() {498 var n;499 T ? O.emit("rejectionHandled", t) : (n = a.onrejectionhandled) && n({ promise: t, reason: t._v })500 })501 },502 R = function(t) {503 var n = this;504 n._d || (n._d = !0, (n = n._w || n)._v = t, n._s = 2, n._a || (n._a = n._c.slice()), F(n, !0))505 },506 I = function(t) {507 var n, e = this;508 if (!e._d) {509 e._d = !0, e = e._w || e;510 try {511 if (e === t) throw j("Promise can't be resolved itself");512 (n = A(t)) ? m(function() { var r = { _w: e, _d: !1 }; try { n.call(t, f(I, r, 1), f(R, r, 1)) } catch (t) { R.call(r, t) } }): (e._v = t, e._s = 1, F(e, !1))513 } catch (t) { R.call({ _w: e, _d: !1 }, t) }514 }515 };516 M || (S = function(t) { d(this, S, "Promise", "_h"), v(t), r.call(this); try { t(f(I, this, 1), f(R, this, 1)) } catch (t) { R.call(this, t) } }, (r = function(t) { this._c = [], this._a = void 0, this._s = 0, this._d = !1, this._v = void 0, this._h = 0, this._n = !1 }).prototype = e(82)(S.prototype, { then: function(t, n) { var e = E(y(this, S)); return e.ok = "function" != typeof t || t, e.fail = "function" == typeof n && n, e.domain = T ? O.domain : void 0, this._c.push(e), this._a && this._a.push(e), this._s && F(this, !1), e.promise }, catch: function(t) { return this.then(void 0, t) } }), i = function() {517 var t = new r;518 this.promise = t, this.resolve = f(I, t, 1), this.reject = f(R, t, 1)519 }, w.f = E = function(t) { return t === S || t === c ? new i(t) : o(t) }), l(l.G + l.W + l.F * !M, { Promise: S }), e(25)(S, "Promise"), e(83)("Promise"), c = e(2).Promise, l(l.S + l.F * !M, "Promise", { reject: function(t) { var n = E(this); return (0, n.reject)(t), n.promise } }), l(l.S + l.F * (u || !M), "Promise", { resolve: function(t) { return _(u && this === c ? S : this, t) } }), l(l.S + l.F * !(M && e(84)(function(t) { S.all(t).catch(L) })), "Promise", {520 all: function(t) {521 var n = this,522 e = E(n),523 r = e.resolve,524 o = e.reject,525 i = x(function() {526 var e = [],527 i = 0,528 c = 1;529 h(t, !1, function(t) {530 var u = i++,531 a = !1;532 e.push(void 0), c++, n.resolve(t).then(function(t) { a || (a = !0, e[u] = t, --c || r(e)) }, o)533 }), --c || r(e)534 });535 return i.e && o(i.v), e.promise536 },537 race: function(t) {538 var n = this,539 e = E(n),540 r = e.reject,541 o = x(function() { h(t, !1, function(t) { n.resolve(t).then(e.resolve, r) }) });542 return o.e && r(o.v), e.promise543 }544 })545}, function(t, n) { t.exports = function(t, n, e, r) { if (!(t instanceof n) || void 0 !== r && r in t) throw TypeError(e + ": incorrect invocation!"); return t } }, function(t, n, e) {546 var r = e(14),547 o = e(76),548 i = e(77),549 c = e(3),550 u = e(34),551 a = e(78),552 f = {},553 s = {};554 (n = t.exports = function(t, n, e, l, p) {555 var v, d, h, y, b = p ? function() { return t } : a(t),556 m = r(e, l, n ? 2 : 1),557 w = 0;558 if ("function" != typeof b) throw TypeError(t + " is not iterable!");559 if (i(b)) {560 for (v = u(t.length); v > w; w++)561 if ((y = n ? m(c(d = t[w])[0], d[1]) : m(t[w])) === f || y === s) return y562 } else563 for (h = b.call(t); !(d = h.next()).done;)564 if ((y = o(h, m, d.value, n)) === f || y === s) return y565 }).BREAK = f, n.RETURN = s566}, function(t, n, e) {567 var r = e(3);568 t.exports = function(t, n, e, o) { try { return o ? n(r(e)[0], e[1]) : n(e) } catch (n) { var i = t.return; throw void 0 !== i && r(i.call(t)), n } }569}, function(t, n, e) {570 var r = e(8),571 o = e(0)("iterator"),572 i = Array.prototype;573 t.exports = function(t) { return void 0 !== t && (r.Array === t || i[o] === t) }574}, function(t, n, e) {575 var r = e(17),576 o = e(0)("iterator"),577 i = e(8);578 t.exports = e(2).getIteratorMethod = function(t) { if (void 0 != t) return t[o] || t["@@iterator"] || i[r(t)] }579}, function(t, n) {580 t.exports = function(t, n, e) {581 var r = void 0 === e;582 switch (n.length) {583 case 0:584 return r ? t() : t.call(e);585 case 1:586 return r ? t(n[0]) : t.call(e, n[0]);587 case 2:588 return r ? t(n[0], n[1]) : t.call(e, n[0], n[1]);589 case 3:590 return r ? t(n[0], n[1], n[2]) : t.call(e, n[0], n[1], n[2]);591 case 4:592 return r ? t(n[0], n[1], n[2], n[3]) : t.call(e, n[0], n[1], n[2], n[3])593 }594 return t.apply(e, n)595 }596}, function(t, n, e) {597 var r = e(1),598 o = e(38).set,599 i = r.MutationObserver || r.WebKitMutationObserver,600 c = r.process,601 u = r.Promise,602 a = "process" == e(10)(c);603 t.exports = function() {604 var t, n, e, f = function() {605 var r, o;606 for (a && (r = c.domain) && r.exit(); t;) { o = t.fn, t = t.next; try { o() } catch (r) { throw t ? e() : n = void 0, r } }607 n = void 0, r && r.enter()608 };609 if (a) e = function() { c.nextTick(f) };610 else if (!i || r.navigator && r.navigator.standalone)611 if (u && u.resolve) {612 var s = u.resolve(void 0);613 e = function() { s.then(f) }614 } else e = function() { o.call(r, f) };615 else {616 var l = !0,617 p = document.createTextNode("");618 new i(f).observe(p, { characterData: !0 }), e = function() { p.data = l = !l }619 }620 return function(r) {621 var o = { fn: r, next: void 0 };622 n && (n.next = o), t || (t = o, e()), n = o623 }624 }625}, function(t, n, e) {626 var r = e(1).navigator;627 t.exports = r && r.userAgent || ""628}, function(t, n, e) {629 var r = e(5);630 t.exports = function(t, n, e) { for (var o in n) r(t, o, n[o], e); return t }631}, function(t, n, e) {632 "use strict";633 var r = e(1),634 o = e(11),635 i = e(7),636 c = e(0)("species");637 t.exports = function(t) {638 var n = r[t];639 i && n && !n[c] && o.f(n, c, { configurable: !0, get: function() { return this } })640 }641}, function(t, n, e) {642 var r = e(0)("iterator"),643 o = !1;644 try {645 var i = [7][r]();646 i.return = function() { o = !0 }, Array.from(i, function() { throw 2 })647 } catch (t) {}648 t.exports = function(t, n) {649 if (!n && !o) return !1;650 var e = !1;651 try {652 var i = [7],653 c = i[r]();654 c.next = function() { return { done: e = !0 } }, i[r] = function() { return c }, t(i)655 } catch (t) {}656 return e657 }658}, function(t, n, e) {659 "use strict";660 var r = e(13),661 o = e(2),662 i = e(1),663 c = e(37),664 u = e(40);665 r(r.P + r.R, "Promise", {666 finally: function(t) {667 var n = c(this, o.Promise || i.Promise),668 e = "function" == typeof t;669 return this.then(e ? function(e) { return u(n, t()).then(function() { return e }) } : t, e ? function(e) { return u(n, t()).then(function() { throw e }) } : t)670 }671 })672}, function(t, n, e) {673 "use strict";674 var r = e(13),675 o = e(26),676 i = e(39);677 r(r.S, "Promise", {678 try: function(t) {679 var n = o.f(this),680 e = i(t);681 return (e.e ? n.reject : n.resolve)(e.v), n.promise682 }683 })684}, function(t, n, e) {685 "use strict";686687 function r() { try { return document.currentScript.src } catch (n) { var t = document.getElementsByTagName("script"); return t[t.length - 1].src } }688 Object.defineProperty(n, "__esModule", { value: !0 }), e.p = r().replace(/[^/\\\\]+$/, ""), n.getCurrentPath = r689}, function(t, n, e) {690 "use strict";691 Object.defineProperty(n, "__esModule", { value: !0 }), n.L2Dwidget = void 0;692 var r, o = function() {693 function t(t, n) {694 for (var e = 0; e < n.length; e++) {695 var r = n[e];696 r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r)697 }698 }699 return function(n, e, r) { return e && t(n.prototype, e), r && t(n, r), n }700 }(),701 i = e(89),702 c = (r = i) && r.__esModule ? r : { default: r },703 u = e(52);704 var a = void 0,705 f = new(function() {706 function t() {! function(t, n) { if (!(t instanceof n)) throw new TypeError("Cannot call a class as a function") }(this, t) }707 return o(t, [{708 key: "init",709 value: function() {710 var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};711 (0, u.configApplyer)(t), !u.config.mobile.show && c.default.mobile() || e.e(0).then(e.bind(null, 133)).then(function(t) {712 (a = t).theRealInit()713 }).catch(function(t) { console.error(t) })714 }715 }, { key: "captureFrame", value: function(t) { return a.captureFrame(t) } }, {716 key: "downloadFrame",717 value: function() {718 this.captureFrame(function(t) {719 var n = document.createElement("a");720 document.body.appendChild(n), n.setAttribute("type", "hidden"), n.href = t, n.download = "live2d.png", n.click()721 })722 }723 }]), t724 }());725 n.L2Dwidget = f726}, function(t, n, e) {727 "use strict";728 Object.defineProperty(n, "__esModule", { value: !0 });729 var r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { return typeof t } : function(t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t },730 o = window.device,731 i = {},732 c = [];733 window.device = i;734 var u = window.document.documentElement,735 a = window.navigator.userAgent.toLowerCase(),736 f = ["googletv", "viera", "smarttv", "internet.tv", "netcast", "nettv", "appletv", "boxee", "kylo", "roku", "dlnadoc", "roku", "pov_tv", "hbbtv", "ce-html"];737738 function s(t) { return -1 !== a.indexOf(t) }739740 function l(t) { return u.className.match(new RegExp(t, "i")) }741742 function p(t) {743 var n = null;744 l(t) || (n = u.className.replace(/^\s+|\s+$/g, ""), u.className = n + " " + t)745 }746747 function v(t) { l(t) && (u.className = u.className.replace(" " + t, "")) }748749 function d() { i.landscape() ? (v("portrait"), p("landscape"), h("landscape")) : (v("landscape"), p("portrait"), h("portrait")), m() }750751 function h(t) { for (var n in c) c[n](t) }752 i.macos = function() { return s("mac") }, i.ios = function() { return i.iphone() || i.ipod() || i.ipad() }, i.iphone = function() { return !i.windows() && s("iphone") }, i.ipod = function() { return s("ipod") }, i.ipad = function() { return s("ipad") }, i.android = function() { return !i.windows() && s("android") }, i.androidPhone = function() { return i.android() && s("mobile") }, i.androidTablet = function() { return i.android() && !s("mobile") }, i.blackberry = function() { return s("blackberry") || s("bb10") || s("rim") }, i.blackberryPhone = function() { return i.blackberry() && !s("tablet") }, i.blackberryTablet = function() { return i.blackberry() && s("tablet") }, i.windows = function() { return s("windows") }, i.windowsPhone = function() { return i.windows() && s("phone") }, i.windowsTablet = function() { return i.windows() && s("touch") && !i.windowsPhone() }, i.fxos = function() { return (s("(mobile") || s("(tablet")) && s(" rv:") }, i.fxosPhone = function() { return i.fxos() && s("mobile") }, i.fxosTablet = function() { return i.fxos() && s("tablet") }, i.meego = function() { return s("meego") }, i.cordova = function() { return window.cordova && "file:" === location.protocol }, i.nodeWebkit = function() { return "object" === r(window.process) }, i.mobile = function() { return i.androidPhone() || i.iphone() || i.ipod() || i.windowsPhone() || i.blackberryPhone() || i.fxosPhone() || i.meego() }, i.tablet = function() { return i.ipad() || i.androidTablet() || i.blackberryTablet() || i.windowsTablet() || i.fxosTablet() }, i.desktop = function() { return !i.tablet() && !i.mobile() }, i.television = function() {753 for (var t = 0; t < f.length;) {754 if (s(f[t])) return !0;755 t++756 }757 return !1758 }, i.portrait = function() { return screen.orientation && Object.prototype.hasOwnProperty.call(window, "onorientationchange") ? screen.orientation.type.includes("portrait") : window.innerHeight / window.innerWidth > 1 }, i.landscape = function() { return screen.orientation && Object.prototype.hasOwnProperty.call(window, "onorientationchange") ? screen.orientation.type.includes("landscape") : window.innerHeight / window.innerWidth < 1 }, i.noConflict = function() { return window.device = o, this }, i.ios() ? i.ipad() ? p("ios ipad tablet") : i.iphone() ? p("ios iphone mobile") : i.ipod() && p("ios ipod mobile") : i.macos() ? p("macos desktop") : i.android() ? i.androidTablet() ? p("android tablet") : p("android mobile") : i.blackberry() ? i.blackberryTablet() ? p("blackberry tablet") : p("blackberry mobile") : i.windows() ? i.windowsTablet() ? p("windows tablet") : i.windowsPhone() ? p("windows mobile") : p("windows desktop") : i.fxos() ? i.fxosTablet() ? p("fxos tablet") : p("fxos mobile") : i.meego() ? p("meego mobile") : i.nodeWebkit() ? p("node-webkit") : i.television() ? p("television") : i.desktop() && p("desktop"), i.cordova() && p("cordova"), i.onChangeOrientation = function(t) { "function" == typeof t && c.push(t) };759 var y = "resize";760761 function b(t) {762 for (var n = 0; n < t.length; n++)763 if (i[t[n]]()) return t[n];764 return "unknown"765 }766767 function m() { i.orientation = b(["portrait", "landscape"]) }768 Object.prototype.hasOwnProperty.call(window, "onorientationchange") && (y = "orientationchange"), window.addEventListener ? window.addEventListener(y, d, !1) : window.attachEvent ? window.attachEvent(y, d) : window[y] = d, d(), i.type = b(["mobile", "tablet", "desktop"]), i.os = b(["ios", "iphone", "ipad", "ipod", "android", "blackberry", "windows", "fxos", "meego", "television"]), m(), n.default = i769}, function(t, n, e) {770 var r = e(41),771 o = e(42),772 i = e(94),773 c = e(129),774 u = o(function(t) { return t.push(void 0, i), r(c, void 0, t) });775 t.exports = u776}, function(t, n) { t.exports = function(t) { return t } }, function(t, n, e) {777 var r = e(41),778 o = Math.max;779 t.exports = function(t, n, e) {780 return n = o(void 0 === n ? t.length - 1 : n, 0),781 function() {782 for (var i = arguments, c = -1, u = o(i.length - n, 0), a = Array(u); ++c < u;) a[c] = i[n + c];783 c = -1;784 for (var f = Array(n + 1); ++c < n;) f[c] = i[c];785 return f[n] = e(a), r(t, this, f)786 }787 }788}, function(t, n) { t.exports = function(t) { return t } }, function(t, n, e) {789 var r = e(43),790 o = e(9);791 t.exports = function t(n, e, i, c, u, a) { return o(n) && o(e) && (a.set(e, n), r(n, e, void 0, t, a), a.delete(e)), n }792}, function(t, n, e) {793 var r = e(96),794 o = e(97),795 i = e(98),796 c = e(99),797 u = e(100);798799 function a(t) {800 var n = -1,801 e = null == t ? 0 : t.length;802 for (this.clear(); ++n < e;) {803 var r = t[n];804 this.set(r[0], r[1])805 }806 }807 a.prototype.clear = r, a.prototype.delete = o, a.prototype.get = i, a.prototype.has = c, a.prototype.set = u, t.exports = a808}, function(t, n) { t.exports = function() { this.__data__ = [], this.size = 0 } }, function(t, n, e) {809 var r = e(16),810 o = Array.prototype.splice;811 t.exports = function(t) {812 var n = this.__data__,813 e = r(n, t);814 return !(e < 0 || (e == n.length - 1 ? n.pop() : o.call(n, e, 1), --this.size, 0))815 }816}, function(t, n, e) {817 var r = e(16);818 t.exports = function(t) {819 var n = this.__data__,820 e = r(n, t);821 return e < 0 ? void 0 : n[e][1]822 }823}, function(t, n, e) {824 var r = e(16);825 t.exports = function(t) { return r(this.__data__, t) > -1 }826}, function(t, n, e) {827 var r = e(16);828 t.exports = function(t, n) {829 var e = this.__data__,830 o = r(e, t);831 return o < 0 ? (++this.size, e.push([t, n])) : e[o][1] = n, this832 }833}, function(t, n, e) {834 var r = e(102),835 o = function() { try { var t = r(Object, "defineProperty"); return t({}, "", {}), t } catch (t) {} }();836 t.exports = o837}, function(t, n) { t.exports = function(t, n) { return null == t ? void 0 : t[n] } }, function(t, n, e) {838 var r = e(104)();839 t.exports = r840}, function(t, n) { t.exports = function(t) { return function(n, e, r) { for (var o = -1, i = Object(n), c = r(n), u = c.length; u--;) { var a = c[t ? u : ++o]; if (!1 === e(i[a], a, i)) break } return n } } }, function(t, n, e) {841 var r = e(44),842 o = e(106),843 i = e(110),844 c = e(113),845 u = e(114),846 a = e(118),847 f = e(119),848 s = e(120),849 l = e(123),850 p = e(47),851 v = e(9),852 d = e(124),853 h = e(125),854 y = e(50),855 b = e(126);856 t.exports = function(t, n, e, m, w, x, g) {857 var _ = y(t, e),858 j = y(n, e),859 O = g.get(j);860 if (O) r(t, e, O);861 else {862 var P = x ? x(_, j, e + "", t, n, g) : void 0,863 k = void 0 === P;864 if (k) {865 var S = f(j),866 T = !S && l(j),867 L = !S && !T && h(j);868 P = j, S || T || L ? f(_) ? P = _ : s(_) ? P = c(_) : T ? (k = !1, P = o(j, !0)) : L ? (k = !1, P = i(j, !0)) : P = [] : d(j) || a(j) ? (P = _, a(_) ? P = b(_) : v(_) && !p(_) || (P = u(j))) : k = !1869 }870 k && (g.set(j, P), w(P, j, m, x, g), g.delete(j)), r(t, e, P)871 }872 }873}, function(t, n, e) {874 (function(t) {875 var r = e(45),876 o = "object" == typeof n && n && !n.nodeType && n,877 i = o && "object" == typeof t && t && !t.nodeType && t,878 c = i && i.exports === o ? r.Buffer : void 0,879 u = c ? c.allocUnsafe : void 0;880 t.exports = function(t, n) {881 if (n) return t.slice();882 var e = t.length,883 r = u ? u(e) : new t.constructor(e);884 return t.copy(r), r885 }886 }).call(n, e(107)(t))887}, function(t, n) { t.exports = function(t) { return t.webpackPolyfill || (t.deprecate = function() {}, t.paths = [], t.children || (t.children = []), Object.defineProperty(t, "loaded", { enumerable: !0, get: function() { return t.l } }), Object.defineProperty(t, "id", { enumerable: !0, get: function() { return t.i } }), t.webpackPolyfill = 1), t } }, function(t, n, e) {888 (function(n) {889 var e = "object" == typeof n && n && n.Object === Object && n;890 t.exports = e891 }).call(n, e(109))892}, function(t, n) {893 var e;894 e = function() { return this }();895 try { e = e || Function("return this")() || (0, eval)("this") } catch (t) { "object" == typeof window && (e = window) }896 t.exports = e897}, function(t, n, e) {898 var r = e(111);899 t.exports = function(t, n) { var e = n ? r(t.buffer) : t.buffer; return new t.constructor(e, t.byteOffset, t.length) }900}, function(t, n, e) {901 var r = e(112);902 t.exports = function(t) { var n = new t.constructor(t.byteLength); return new r(n).set(new r(t)), n }903}, function(t, n, e) {904 var r = e(45).Uint8Array;905 t.exports = r906}, function(t, n) {907 t.exports = function(t, n) {908 var e = -1,909 r = t.length; ...

Full Screen

Full Screen

publicApiSpec.js

Source:publicApiSpec.js Github

copy

Full Screen

1describe('Plugin initialization and component basic construction', function () {2 'use strict';3 it('loads jquery plugin properly', function () {4 expect($('<div>').datetimepicker).toBeDefined();5 expect(typeof $('<div>').datetimepicker).toEqual('function');6 expect($('<div>').datetimepicker.defaults).toBeDefined();7 });8 it('creates the component with default options on an input element', function () {9 var dtpElement = $('<input>'),10 dtp;11 $(document).find('body').append(dtpElement);12 expect(function () {13 expect(dtpElement.datetimepicker()).toBe(dtpElement);14 }).not.toThrow();15 dtp = dtpElement.data('DateTimePicker');16 expect(dtpElement).not.toBe(null);17 });18 it('creates the component with default options merged with those provided on an input element', function () {19 var options = {locale: 'fr'},20 dtpElement = $('<input>'),21 dtp;22 $(document).find('body').append(dtpElement);23 expect(function () {24 expect(dtpElement.datetimepicker(options)).toBe(dtpElement);25 }).not.toThrow();26 dtp = dtpElement.data('DateTimePicker');27 expect(dtp).not.toBe(null);28 expect(dtp.options()).toEqual($.extend(true, {}, dtpElement.datetimepicker.defaults, options));29 });30 it('does not accept non-object or string types', function () {31 var dtpElement = $('<input>');32 $(document).find('body').append(dtpElement);33 expect(function () {34 dtpElement.datetimepicker(true);35 }).toThrow();36 });37 xit('calls destroy when Element that the component is attached is removed', function () {38 var dtpElement = $('<div>').attr('class', 'row').append($('<div>').attr('class', 'col-md-12').append($('<input>'))),39 dtp;40 $(document).find('body').append(dtpElement);41 dtpElement.datetimepicker();42 dtp = dtpElement.data('DateTimePicker');43 spyOn(dtp, 'destroy').and.callThrough();44 dtpElement.remove();45 expect(dtp.destroy).toHaveBeenCalled();46 });47});48describe('Public API method tests', function () {49 'use strict';50 var dtp,51 dtpElement,52 dpChangeSpy,53 dpShowSpy,54 dpHideSpy,55 dpErrorSpy,56 dpClassifySpy;57 beforeEach(function () {58 dpChangeSpy = jasmine.createSpy('dp.change event Spy');59 dpShowSpy = jasmine.createSpy('dp.show event Spy');60 dpHideSpy = jasmine.createSpy('dp.hide event Spy');61 dpErrorSpy = jasmine.createSpy('dp.error event Spy');62 dpClassifySpy = jasmine.createSpy('dp.classify event Spy');63 dtpElement = $('<input>').attr('id', 'dtp');64 $(document).find('body').append($('<div>').attr('class', 'row').append($('<div>').attr('class', 'col-md-12').append(dtpElement)));65 $(document).find('body').on('dp.change', dpChangeSpy);66 $(document).find('body').on('dp.show', dpShowSpy);67 $(document).find('body').on('dp.hide', dpHideSpy);68 $(document).find('body').on('dp.error', dpErrorSpy);69 $(document).find('body').on('dp.classify', dpClassifySpy);70 dtpElement.datetimepicker();71 dtp = dtpElement.data('DateTimePicker');72 });73 afterEach(function () {74 dtp.destroy();75 dtpElement.remove();76 });77 describe('configuration option name match to public api function', function () {78 Object.getOwnPropertyNames($.fn.datetimepicker.defaults).forEach(function (key) {79 it('has function ' + key + '()', function () {80 expect(dtp[key]).toBeDefined();81 });82 });83 });84 describe('unknown functions', function () {85 it('are not allowed', function () {86 expect(function () {87 dtpElement.datetimepicker('abcdef');88 }).toThrow();89 });90 });91 describe('date() function', function () {92 describe('typechecking', function () {93 it('accepts a null', function () {94 expect(function () {95 dtp.date(null);96 }).not.toThrow();97 });98 it('accepts a string', function () {99 expect(function () {100 dtp.date('2013/05/24');101 }).not.toThrow();102 });103 it('accepts a Date object', function () {104 expect(function () {105 dtp.date(new Date());106 }).not.toThrow();107 });108 it('accepts a Moment object', function () {109 expect(function () {110 dtp.date(moment());111 }).not.toThrow();112 });113 it('does not accept undefined', function () {114 expect(function () {115 dtp.date(undefined);116 }).toThrow();117 });118 it('does not accept a number', function () {119 expect(function () {120 dtp.date(0);121 }).toThrow();122 });123 it('does not accept a generic Object', function () {124 expect(function () {125 dtp.date({});126 }).toThrow();127 });128 it('does not accept a boolean', function () {129 expect(function () {130 dtp.date(false);131 }).toThrow();132 });133 });134 describe('functionality', function () {135 it('has no date set upon construction', function () {136 expect(dtp.date()).toBe(null);137 });138 it('sets the date correctly', function () {139 var timestamp = moment();140 dtp.date(timestamp);141 expect(dtp.date().isSame(timestamp)).toBe(true);142 });143 });144 describe('access', function () {145 it('gets date', function () {146 expect(dtpElement.datetimepicker('date')).toBe(null);147 });148 it('sets date', function () {149 var timestamp = moment();150 expect(dtpElement.datetimepicker('date', timestamp)).toBe(dtpElement);151 expect(dtpElement.datetimepicker('date').isSame(timestamp)).toBe(true);152 });153 });154 });155 describe('format() function', function () {156 describe('typechecking', function () {157 it('accepts a false value', function () {158 expect(function () {159 dtp.format(false);160 }).not.toThrow();161 });162 it('accepts a string', function () {163 expect(function () {164 dtp.format('YYYY-MM-DD');165 }).not.toThrow();166 });167 it('does not accept undefined', function () {168 expect(function () {169 dtp.format(undefined);170 }).toThrow();171 });172 it('does not accept true', function () {173 expect(function () {174 dtp.format(true);175 }).toThrow();176 });177 it('does not accept a generic Object', function () {178 expect(function () {179 dtp.format({});180 }).toThrow();181 });182 });183 describe('functionality', function () {184 it('returns no format before format is set', function () {185 expect(dtp.format()).toBe(false);186 });187 it('sets the format correctly', function () {188 var format = 'YYYY-MM-DD';189 dtp.format(format);190 expect(dtp.format()).toBe(format);191 });192 });193 describe('access', function () {194 it('gets format', function () {195 expect(dtpElement.datetimepicker('format')).toBe(false);196 });197 it('sets format', function () {198 var format = 'YYYY-MM-DD';199 expect(dtpElement.datetimepicker('format', format)).toBe(dtpElement);200 expect(dtpElement.datetimepicker('format')).toBe(format);201 });202 });203 });204 describe('destroy() function', function () {205 describe('existence', function () {206 it('is defined', function () {207 expect(dtp.destroy).toBeDefined();208 });209 });210 describe('access', function () {211 it('returns jQuery object', function () {212 expect(dtpElement.datetimepicker('destroy')).toBe(dtpElement);213 });214 });215 });216 describe('toggle() function', function () {217 describe('existence', function () {218 it('is defined', function () {219 expect(dtp.toggle).toBeDefined();220 });221 });222 // describe('functionality', function () {223 // it('')224 // });225 describe('access', function () {226 it('returns jQuery object', function () {227 expect(dtpElement.datetimepicker('toggle')).toBe(dtpElement);228 });229 });230 });231 describe('show() function', function () {232 describe('existence', function () {233 it('is defined', function () {234 expect(dtp.show).toBeDefined();235 });236 });237 describe('functionality', function () {238 it('emits a show event when called while widget is hidden', function () {239 dtp.show();240 expect(dpShowSpy).toHaveBeenCalled();241 });242 it('does not emit a show event when called and widget is already showing', function () {243 dtp.hide();244 dtp.show();245 dpShowSpy.calls.reset();246 dtp.show();247 expect(dpShowSpy).not.toHaveBeenCalled();248 });249 it('calls the classify event for each day that is shown', function () {250 dtp.show();251 expect(dpClassifySpy.calls.count()).toEqual(42);252 });253 it('actually shows the widget', function () {254 dtp.show();255 expect($(document).find('body').find('.bootstrap-datetimepicker-widget').length).toEqual(1);256 });257 it('applies the styles appended in the classify event handler', function () {258 var handler = function (event) {259 if (event.date.get('weekday') === 4) {260 event.classNames.push('humpday');261 }262 event.classNames.push('injected');263 };264 $(document).find('body').on('dp.classify', handler);265 dtp.show();266 $(document).find('body').off('dp.classify', handler);267 expect($(document).find('body').find('.bootstrap-datetimepicker-widget td.day.injected').length).toEqual(42);268 expect($(document).find('body').find('.bootstrap-datetimepicker-widget td.day.humpday').length).toEqual(6);269 });270 });271 describe('access', function () {272 it('returns jQuery object', function () {273 expect(dtpElement.datetimepicker('show')).toBe(dtpElement);274 });275 });276 });277 describe('hide() function', function () {278 describe('existence', function () {279 it('is defined', function () {280 expect(dtp.hide).toBeDefined();281 });282 });283 describe('functionality', function () {284 it('emits a hide event when called while widget is shown', function () {285 dtp.show();286 dtp.hide();287 expect(dpHideSpy).toHaveBeenCalled();288 });289 it('does not emit a hide event when called while widget is hidden', function () {290 dtp.hide();291 expect(dpHideSpy).not.toHaveBeenCalled();292 });293 it('actually hides the widget', function () {294 dtp.show();295 dtp.hide();296 expect($(document).find('body').find('.bootstrap-datetimepicker-widget').length).toEqual(0);297 });298 });299 describe('access', function () {300 it('returns jQuery object', function () {301 expect(dtpElement.datetimepicker('hide')).toBe(dtpElement);302 });303 });304 });305 describe('disable() function', function () {306 describe('existence', function () {307 it('is defined', function () {308 expect(dtp.disable).toBeDefined();309 });310 });311 describe('access', function () {312 it('returns jQuery object', function () {313 expect(dtpElement.datetimepicker('disable')).toBe(dtpElement);314 });315 });316 });317 describe('enable() function', function () {318 describe('existence', function () {319 it('is defined', function () {320 expect(dtp.enable).toBeDefined();321 });322 });323 describe('access', function () {324 it('returns jQuery object', function () {325 expect(dtpElement.datetimepicker('enable')).toBe(dtpElement);326 });327 });328 });329 describe('options() function', function () {330 describe('existence', function () {331 it('is defined', function () {332 expect(dtp.options).toBeDefined();333 });334 });335 describe('access', function () {336 it('gets options', function () {337 expect(dtpElement.datetimepicker('options')).toEqual(dtpElement.datetimepicker.defaults);338 });339 it('sets options', function () {340 var options = {locale: 'fr'};341 expect(dtpElement.datetimepicker('options', options)).toBe(dtpElement);342 expect(dtpElement.datetimepicker('options')).toEqual($.extend(true, {}, dtpElement.datetimepicker.defaults, options));343 });344 });345 });346 describe('disabledDates() function', function () {347 describe('existence', function () {348 it('is defined', function () {349 expect(dtp.disabledDates).toBeDefined();350 });351 });352 describe('access', function () {353 it('gets disabled dates', function () {354 expect(dtpElement.datetimepicker('disabledDates')).toBe(false);355 });356 it('sets disabled dates', function () {357 var timestamps = [moment()];358 expect(dtpElement.datetimepicker('disabledDates', timestamps)).toBe(dtpElement);359 expect(dtpElement.datetimepicker('disabledDates')).not.toBe(false);360 });361 });362 });363 describe('enabledDates() function', function () {364 describe('existence', function () {365 it('is defined', function () {366 expect(dtp.enabledDates).toBeDefined();367 });368 });369 describe('access', function () {370 it('gets enabled dates', function () {371 expect(dtpElement.datetimepicker('enabledDates')).toBe(false);372 });373 it('sets enabled dates', function () {374 var timestamps = [moment()];375 expect(dtpElement.datetimepicker('enabledDates', timestamps)).toBe(dtpElement);376 expect(dtpElement.datetimepicker('enabledDates')).not.toBe(false);377 });378 });379 });380 describe('daysOfWeekDisabled() function', function () {381 describe('existence', function () {382 it('is defined', function () {383 expect(dtp.daysOfWeekDisabled).toBeDefined();384 });385 });386 describe('access', function () {387 xit('gets days of week disabled', function () {388 expect(dtpElement.datetimepicker('daysOfWeekDisabled')).toEqual([]);389 });390 it('sets days of week disabled', function () {391 var daysOfWeek = [0];392 expect(dtpElement.datetimepicker('daysOfWeekDisabled', daysOfWeek)).toBe(dtpElement);393 expect(dtpElement.datetimepicker('daysOfWeekDisabled')).toEqual(daysOfWeek);394 });395 });396 });397 describe('maxDate() function', function () {398 describe('existence', function () {399 it('is defined', function () {400 expect(dtp.maxDate).toBeDefined();401 });402 });403 describe('access', function () {404 it('gets max date', function () {405 expect(dtpElement.datetimepicker('maxDate')).toBe(false);406 });407 it('sets max date', function () {408 var timestamp = moment();409 expect(dtpElement.datetimepicker('maxDate', timestamp)).toBe(dtpElement);410 expect(dtpElement.datetimepicker('maxDate').isSame(timestamp)).toBe(true);411 });412 });413 });414 describe('minDate() function', function () {415 describe('existence', function () {416 it('is defined', function () {417 expect(dtp.minDate).toBeDefined();418 });419 });420 describe('access', function () {421 it('gets min date', function () {422 expect(dtpElement.datetimepicker('minDate')).toBe(false);423 });424 it('sets min date', function () {425 var timestamp = moment();426 expect(dtpElement.datetimepicker('minDate', timestamp)).toBe(dtpElement);427 expect(dtpElement.datetimepicker('minDate').isSame(timestamp)).toBe(true);428 });429 });430 });431 describe('defaultDate() function', function () {432 describe('existence', function () {433 it('is defined', function () {434 expect(dtp.defaultDate).toBeDefined();435 });436 });437 describe('functionality', function () {438 it('returns no defaultDate before defaultDate is set', function () {439 expect(dtp.defaultDate()).toBe(false);440 });441 it('sets the defaultDate correctly', function () {442 var timestamp = moment();443 dtp.defaultDate(timestamp);444 expect(dtp.defaultDate().isSame(timestamp)).toBe(true);445 expect(dtp.date().isSame(timestamp)).toBe(true);446 });447 it('triggers a change event upon setting a default date and input field is empty', function () {448 dtp.date(null);449 dtp.defaultDate(moment());450 expect(dpChangeSpy).toHaveBeenCalled();451 });452 it('does not override input value if it already has one', function () {453 var timestamp = moment();454 dtp.date(timestamp);455 dtp.defaultDate(moment().year(2000));456 expect(dtp.date().isSame(timestamp)).toBe(true);457 });458 });459 describe('access', function () {460 it('gets default date', function () {461 expect(dtpElement.datetimepicker('defaultDate')).toBe(false);462 });463 it('sets default date', function () {464 var timestamp = moment();465 expect(dtpElement.datetimepicker('defaultDate', timestamp)).toBe(dtpElement);466 expect(dtpElement.datetimepicker('defaultDate').isSame(timestamp)).toBe(true);467 });468 });469 });470 describe('locale() function', function () {471 describe('functionality', function () {472 it('it has the same locale as the global moment locale with default options', function () {473 expect(dtp.locale()).toBe(moment.locale());474 });475 it('it switches to a selected locale without affecting global moment locale', function () {476 dtp.locale('el');477 dtp.date(moment());478 expect(dtp.locale()).toBe('el');479 expect(dtp.date().locale()).toBe('el');480 expect(moment.locale()).toBe('en');481 });482 });483 describe('access', function () {484 it('gets locale', function () {485 expect(dtpElement.datetimepicker('locale')).toBe(moment.locale());486 });487 it('sets locale', function () {488 var locale = 'fr';489 expect(dtpElement.datetimepicker('locale', locale)).toBe(dtpElement);490 expect(dtpElement.datetimepicker('locale')).toBe(locale);491 });492 });493 });494 describe('useCurrent() function', function () {495 describe('existence', function () {496 it('is defined', function () {497 expect(dtp.useCurrent).toBeDefined();498 });499 });500 describe('check type and parameter validity', function () {501 it('accepts either a boolean value or string', function () {502 var useCurrentOptions = ['year', 'month', 'day', 'hour', 'minute'];503 expect(function () {504 dtp.useCurrent(false);505 }).not.toThrow();506 expect(function () {507 dtp.useCurrent(true);508 }).not.toThrow();509 useCurrentOptions.forEach(function (value) {510 expect(function () {511 dtp.useCurrent(value);512 }).not.toThrow();513 });514 expect(function () {515 dtp.useCurrent('test');516 }).toThrow();517 expect(function () {518 dtp.useCurrent({});519 }).toThrow();520 });521 });522 describe('functionality', function () {523 it('triggers a change event upon show() and input field is empty', function () {524 dtp.useCurrent(true);525 dtp.show();526 expect(dpChangeSpy).toHaveBeenCalled();527 });528 });529 describe('access', function () {530 it('gets use current', function () {531 expect(dtpElement.datetimepicker('useCurrent')).toBe(true);532 });533 it('sets use current', function () {534 var useCurrent = false;535 expect(dtpElement.datetimepicker('useCurrent', useCurrent)).toBe(dtpElement);536 expect(dtpElement.datetimepicker('useCurrent')).toBe(useCurrent);537 });538 });539 });540 describe('ignoreReadonly() function', function () {541 describe('existence', function () {542 it('is defined', function () {543 expect(dtp.ignoreReadonly).toBeDefined();544 });545 });546 describe('access', function () {547 it('gets ignore readonly', function () {548 expect(dtpElement.datetimepicker('ignoreReadonly')).toBe(false);549 });550 it('sets ignore readonly', function () {551 var ignoreReadonly = true;552 expect(dtpElement.datetimepicker('ignoreReadonly', ignoreReadonly)).toBe(dtpElement);553 expect(dtpElement.datetimepicker('ignoreReadonly')).toBe(ignoreReadonly);554 });555 });556 });557 describe('stepping() function', function () {558 describe('existence', function () {559 it('is defined', function () {560 expect(dtp.stepping).toBeDefined();561 });562 });563 describe('access', function () {564 it('gets stepping', function () {565 expect(dtpElement.datetimepicker('stepping')).toBe(1);566 });567 it('sets stepping', function () {568 var stepping = 2;569 expect(dtpElement.datetimepicker('stepping', stepping)).toBe(dtpElement);570 expect(dtpElement.datetimepicker('stepping')).toBe(stepping);571 });572 });573 });574 describe('collapse() function', function () {575 describe('existence', function () {576 it('is defined', function () {577 expect(dtp.collapse).toBeDefined();578 });579 });580 describe('access', function () {581 it('gets collapse', function () {582 expect(dtpElement.datetimepicker('collapse')).toBe(true);583 });584 it('sets collapse', function () {585 var collapse = false;586 expect(dtpElement.datetimepicker('collapse', collapse)).toBe(dtpElement);587 expect(dtpElement.datetimepicker('collapse')).toBe(collapse);588 });589 });590 });591 describe('icons() function', function () {592 describe('existence', function () {593 it('is defined', function () {594 expect(dtp.icons).toBeDefined();595 });596 });597 describe('access', function () {598 it('gets icons', function () {599 expect(dtpElement.datetimepicker('icons')).toEqual(dtpElement.datetimepicker.defaults.icons);600 });601 it('sets icons', function () {602 var icons = {time: 'fa fa-time'};603 expect(dtpElement.datetimepicker('icons', icons)).toBe(dtpElement);604 expect(dtpElement.datetimepicker('icons')).toEqual($.extend(true, {}, dtpElement.datetimepicker.defaults.icons, icons));605 });606 });607 });608 describe('useStrict() function', function () {609 describe('existence', function () {610 it('is defined', function () {611 expect(dtp.useStrict).toBeDefined();612 });613 });614 describe('access', function () {615 it('gets use strict', function () {616 expect(dtpElement.datetimepicker('useStrict')).toBe(false);617 });618 it('sets use strict', function () {619 var useStrict = true;620 expect(dtpElement.datetimepicker('useStrict', useStrict)).toBe(dtpElement);621 expect(dtpElement.datetimepicker('useStrict')).toBe(useStrict);622 });623 });624 });625 describe('sideBySide() function', function () {626 describe('existence', function () {627 it('is defined', function () {628 expect(dtp.sideBySide).toBeDefined();629 });630 });631 describe('access', function () {632 it('gets side-by-side', function () {633 expect(dtpElement.datetimepicker('sideBySide')).toBe(false);634 });635 it('sets side-by-side', function () {636 var sideBySide = true;637 expect(dtpElement.datetimepicker('sideBySide', sideBySide)).toBe(dtpElement);638 expect(dtpElement.datetimepicker('sideBySide')).toBe(sideBySide);639 });640 });641 });642 describe('viewMode() function', function () {643 describe('existence', function () {644 it('is defined', function () {645 expect(dtp.viewMode).toBeDefined();646 });647 });648 describe('access', function () {649 it('gets view mode', function () {650 expect(dtpElement.datetimepicker('viewMode')).toBe('days');651 });652 it('sets view mode', function () {653 var viewMode = 'years';654 expect(dtpElement.datetimepicker('viewMode', viewMode)).toBe(dtpElement);655 expect(dtpElement.datetimepicker('viewMode')).toBe(viewMode);656 });657 });658 });659 describe('widgetPositioning() function', function () {660 describe('existence', function () {661 it('is defined', function () {662 expect(dtp.widgetPositioning).toBeDefined();663 });664 });665 describe('access', function () {666 it('gets widget positioning', function () {667 expect(dtpElement.datetimepicker('widgetPositioning')).toEqual(dtpElement.datetimepicker.defaults.widgetPositioning);668 });669 it('sets widget positioning', function () {670 var widgetPositioning = {horizontal: 'left'};671 expect(dtpElement.datetimepicker('widgetPositioning', widgetPositioning)).toBe(dtpElement);672 expect(dtpElement.datetimepicker('widgetPositioning')).toEqual($.extend(true, {}, dtpElement.datetimepicker.defaults.widgetPositioning, widgetPositioning));673 });674 });675 });676 describe('calendarWeeks() function', function () {677 describe('existence', function () {678 it('is defined', function () {679 expect(dtp.calendarWeeks).toBeDefined();680 });681 });682 describe('access', function () {683 it('gets calendar weeks', function () {684 expect(dtpElement.datetimepicker('calendarWeeks')).toBe(false);685 });686 it('sets calendar weeks', function () {687 var calendarWeeks = true;688 expect(dtpElement.datetimepicker('calendarWeeks', calendarWeeks)).toBe(dtpElement);689 expect(dtpElement.datetimepicker('calendarWeeks')).toBe(calendarWeeks);690 });691 });692 });693 describe('showTodayButton() function', function () {694 describe('existence', function () {695 it('is defined', function () {696 expect(dtp.showTodayButton).toBeDefined();697 });698 });699 describe('access', function () {700 it('gets show today button', function () {701 expect(dtpElement.datetimepicker('showTodayButton')).toBe(false);702 });703 it('sets show today button', function () {704 var showTodayButton = true;705 expect(dtpElement.datetimepicker('showTodayButton', showTodayButton)).toBe(dtpElement);706 expect(dtpElement.datetimepicker('showTodayButton')).toBe(showTodayButton);707 });708 });709 });710 describe('showClear() function', function () {711 describe('existence', function () {712 it('is defined', function () {713 expect(dtp.showClear).toBeDefined();714 });715 });716 describe('access', function () {717 it('gets show clear', function () {718 expect(dtpElement.datetimepicker('showClear')).toBe(false);719 });720 it('sets show clear', function () {721 var showClear = true;722 expect(dtpElement.datetimepicker('showClear', showClear)).toBe(dtpElement);723 expect(dtpElement.datetimepicker('showClear')).toBe(showClear);724 });725 });726 });727 describe('dayViewHeaderFormat() function', function () {728 describe('typechecking', function () {729 it('does not accept a false value', function () {730 expect(function () {731 dtp.dayViewHeaderFormat(false);732 }).toThrow();733 });734 it('accepts a string', function () {735 expect(function () {736 dtp.dayViewHeaderFormat('YYYY-MM-DD');737 }).not.toThrow();738 });739 it('does not accept undefined', function () {740 expect(function () {741 dtp.dayViewHeaderFormat(undefined);742 }).toThrow();743 });744 it('does not accept true', function () {745 expect(function () {746 dtp.dayViewHeaderFormat(true);747 }).toThrow();748 });749 it('does not accept a generic Object', function () {750 expect(function () {751 dtp.dayViewHeaderFormat({});752 }).toThrow();753 });754 });755 describe('functionality', function () {756 it('expects dayViewHeaderFormat to be default of MMMM YYYY', function () {757 expect(dtp.dayViewHeaderFormat()).toBe('MMMM YYYY');758 });759 it('sets the dayViewHeaderFormat correctly', function () {760 dtp.dayViewHeaderFormat('MM YY');761 expect(dtp.dayViewHeaderFormat()).toBe('MM YY');762 });763 });764 describe('access', function () {765 it('gets day view header format', function () {766 expect(dtpElement.datetimepicker('dayViewHeaderFormat')).toBe('MMMM YYYY');767 });768 it('sets day view header format', function () {769 var dayViewHeaderFormat = 'MM YY';770 expect(dtpElement.datetimepicker('dayViewHeaderFormat', dayViewHeaderFormat)).toBe(dtpElement);771 expect(dtpElement.datetimepicker('dayViewHeaderFormat')).toBe(dayViewHeaderFormat);772 });773 });774 });775 describe('extraFormats() function', function () {776 describe('typechecking', function () {777 it('accepts a false value', function () {778 expect(function () {779 dtp.extraFormats(false);780 }).not.toThrow();781 });782 it('does not accept a string', function () {783 expect(function () {784 dtp.extraFormats('YYYY-MM-DD');785 }).toThrow();786 });787 it('does not accept undefined', function () {788 expect(function () {789 dtp.extraFormats(undefined);790 }).toThrow();791 });792 it('does not accept true', function () {793 expect(function () {794 dtp.extraFormats(true);795 }).toThrow();796 });797 it('accepts an Array', function () {798 expect(function () {799 dtp.extraFormats(['YYYY-MM-DD']);800 }).not.toThrow();801 });802 });803 describe('functionality', function () {804 it('returns no extraFormats before extraFormats is set', function () {805 expect(dtp.extraFormats()).toBe(false);806 });807 it('sets the extraFormats correctly', function () {808 dtp.extraFormats(['YYYY-MM-DD']);809 expect(dtp.extraFormats()[0]).toBe('YYYY-MM-DD');810 });811 });812 describe('access', function () {813 it('gets extra formats', function () {814 expect(dtpElement.datetimepicker('extraFormats')).toBe(false);815 });816 it('sets extra formats', function () {817 var extraFormats = ['YYYY-MM-DD'];818 expect(dtpElement.datetimepicker('extraFormats', extraFormats)).toBe(dtpElement);819 expect(dtpElement.datetimepicker('extraFormats')).toEqual(extraFormats);820 });821 });822 });823 describe('toolbarPlacement() function', function () {824 describe('existence', function () {825 it('is defined', function () {826 expect(dtp.toolbarPlacement).toBeDefined();827 });828 });829 describe('check type and parameter validity', function () {830 it('does not accept a false value', function () {831 expect(function () {832 dtp.dayViewHeaderFormat(false);833 }).toThrow();834 });835 it('does not accept a false value', function () {836 expect(function () {837 dtp.dayViewHeaderFormat(false);838 }).toThrow();839 });840 it('accepts a string', function () {841 var toolbarPlacementOptions = ['default', 'top', 'bottom'];842 toolbarPlacementOptions.forEach(function (value) {843 expect(function () {844 dtp.toolbarPlacement(value);845 }).not.toThrow();846 });847 expect(function () {848 dtp.toolbarPlacement('test');849 }).toThrow();850 expect(function () {851 dtp.toolbarPlacement({});852 }).toThrow();853 });854 });855 describe('access', function () {856 it('gets toolbar placement', function () {857 expect(dtpElement.datetimepicker('toolbarPlacement')).toBe('default');858 });859 it('sets toolbar placement', function () {860 var toolbarPlacement = 'top';861 expect(dtpElement.datetimepicker('toolbarPlacement', toolbarPlacement)).toBe(dtpElement);862 expect(dtpElement.datetimepicker('toolbarPlacement')).toBe(toolbarPlacement);863 });864 });865 });866 describe('widgetParent() function', function () {867 describe('typechecking', function () {868 it('accepts a null', function () {869 expect(function () {870 dtp.widgetParent(null);871 }).not.toThrow();872 });873 it('accepts a string', function () {874 expect(function () {875 dtp.widgetParent('testDiv');876 }).not.toThrow();877 });878 it('accepts a jquery object', function () {879 expect(function () {880 dtp.widgetParent($('#testDiv'));881 }).not.toThrow();882 });883 it('does not accept undefined', function () {884 expect(function () {885 dtp.widgetParent(undefined);886 }).toThrow();887 });888 it('does not accept a number', function () {889 expect(function () {890 dtp.widgetParent(0);891 }).toThrow();892 });893 it('does not accept a generic Object', function () {894 expect(function () {895 dtp.widgetParent({});896 }).toThrow();897 });898 it('does not accept a boolean', function () {899 expect(function () {900 dtp.widgetParent(false);901 }).toThrow();902 });903 });904 describe('access', function () {905 it('gets widget parent', function () {906 expect(dtpElement.datetimepicker('widgetParent')).toBe(null);907 });908 it('sets widget parent', function () {909 expect(dtpElement.datetimepicker('widgetParent', 'testDiv')).toBe(dtpElement);910 expect(dtpElement.datetimepicker('widgetParent')).not.toBe(null);911 });912 });913 });914 describe('keepOpen() function', function () {915 describe('existence', function () {916 it('is defined', function () {917 expect(dtp.keepOpen).toBeDefined();918 });919 });920 describe('access', function () {921 it('gets keep open', function () {922 expect(dtpElement.datetimepicker('keepOpen')).toBe(false);923 });924 it('sets keep open', function () {925 var keepOpen = true;926 expect(dtpElement.datetimepicker('keepOpen', keepOpen)).toBe(dtpElement);927 expect(dtpElement.datetimepicker('keepOpen')).toBe(keepOpen);928 });929 });930 });931 describe('inline() function', function () {932 describe('existence', function () {933 it('is defined', function () {934 expect(dtp.inline).toBeDefined();935 });936 });937 describe('access', function () {938 it('gets inline', function () {939 expect(dtpElement.datetimepicker('inline')).toBe(false);940 });941 it('sets inline', function () {942 var inline = true;943 expect(dtpElement.datetimepicker('inline', inline)).toBe(dtpElement);944 expect(dtpElement.datetimepicker('inline')).toBe(inline);945 });946 });947 });948 describe('clear() function', function () {949 describe('existence', function () {950 it('is defined', function () {951 expect(dtp.clear).toBeDefined();952 });953 });954 describe('access', function () {955 it('returns jQuery object', function () {956 expect(dtpElement.datetimepicker('clear')).toBe(dtpElement);957 });958 });959 });960 describe('keyBinds() function', function () {961 describe('existence', function () {962 it('is defined', function () {963 expect(dtp.keyBinds).toBeDefined();964 });965 });966 describe('access', function () {967 it('gets key binds', function () {968 expect(dtpElement.datetimepicker('keyBinds')).toEqual(dtpElement.datetimepicker.defaults.keyBinds);969 });970 it('sets key binds', function () {971 var keyBinds = {up: function () {}};972 expect(dtpElement.datetimepicker('keyBinds', keyBinds)).toBe(dtpElement);973 expect(dtpElement.datetimepicker('keyBinds')).toEqual(keyBinds);974 });975 });976 });977 describe('parseInputDate() function', function () {978 describe('existence', function () {979 it('is defined', function () {980 expect(dtp.parseInputDate).toBeDefined();981 });982 });983 describe('access', function () {984 it('gets parse input date', function () {985 expect(dtpElement.datetimepicker('parseInputDate')).toBe(undefined);986 });987 it('sets parse input date', function () {988 var parseInputDate = function () {};989 expect(dtpElement.datetimepicker('parseInputDate', parseInputDate)).toBe(dtpElement);990 expect(dtpElement.datetimepicker('parseInputDate')).toBe(parseInputDate);991 });992 });993 });994 describe('Time zone tests', function () {995 function makeFormatTest (format, displayTimeZone) {996 it('should not change the value that was set when using format ' + format, function () { // #1326997 var oldFormat = dtp.format(),998 oldTimeZone = dtp.timeZone(),999 now = moment().startOf('second');1000 dtp.timeZone(displayTimeZone);1001 dtp.format(format);1002 dtp.date(now);1003 dpChangeSpy.calls.reset();1004 dtp.show();1005 dtp.hide();1006 expect(dpChangeSpy).not.toHaveBeenCalled();1007 expect(dtp.date().format()).toEqual(now.tz(displayTimeZone).format());1008 dtp.format(oldFormat);1009 dtp.timeZone(oldTimeZone);1010 });1011 }1012 makeFormatTest('YYYY-MM-DD HH:mm:ss Z', 'UTC');1013 makeFormatTest('YYYY-MM-DD HH:mm:ss', 'UTC');1014 makeFormatTest('YYYY-MM-DD HH:mm:ss Z', 'America/New_York');1015 makeFormatTest('YYYY-MM-DD HH:mm:ss', 'America/New_York');1016 });...

Full Screen

Full Screen

index.js

Source:index.js Github

copy

Full Screen

1Date.Specification = new Specification({2 'Overview': {3 setup: function() { },4 'Now': {5 run: function() { this.date = Date.parse('Now') },6 assert: function() { 7 // clear milliseconds since there is a delay between parsing and testing8 if(this.date != null)9 return this.date.setMilliseconds(0) == ( Date.now() ).setMilliseconds(0) 10 else11 return false;12 }13 },14 'Today': {15 run: function() { this.date = Date.parse('Today'); },16 assert: function() { return Date.today().equals( this.date ) }17 },18 'Yesterday': {19 run: function() { this.date = Date.parse('Yesterday') },20 assert: function() { return Date.today().addDays(-1).equals( this.date ) } 21 },22 'Tomorrow': {23 run: function() { this.date = Date.parse('Tomorrow') },24 assert: function() { return Date.today().addDays(1).equals( this.date ) }25 }, 26 'Last Tuesday': {27 run: function() { this.date = Date.parse('last tuesday') },28 assert: function() { return Date.today().last().tuesday().equals( this.date ) } 29 },30 'Next Tuesday': {31 run: function() { this.date = Date.parse('next tuesday') },32 assert: function() { return Date.today().next().tuesday().equals( this.date ) } 33 },34 'Last July': {35 run: function() { this.date = Date.parse('Last July') },36 assert: function() { return Date.today().last().july().equals( this.date ) }37 },38 'Next July': {39 run: function() { this.date = Date.parse('Next July') },40 assert: function() { return Date.today().next().july().equals( this.date ) }41 }, 42 43 'Next Week': {44 run: function() { this.date = Date.parse('Next Week') },45 assert: function() { return Date.today().next().week().equals( this.date ) }46 }, 47 'Last Week': {48 run: function() { this.date = Date.parse('Last Week') },49 assert: function() { return Date.today().last().week().equals( this.date ) }50 }, 51 'Next Month': {52 run: function() { this.date = Date.parse('Next Month') },53 assert: function() { return Date.today().next().month().equals( this.date ) }54 }, 55 'Last Month': {56 run: function() { this.date = Date.parse('Last Month') },57 assert: function() { return Date.today().last().month().equals( this.date ) }58 },59 'Next Year': {60 run: function() { this.date = Date.parse('Next Year') },61 assert: function() { return Date.today().next().year().equals( this.date ) }62 }, 63 'Last Year': {64 run: function() { this.date = Date.parse('Last Year') },65 assert: function() { return Date.today().last().year().equals( this.date ) } 66 }67 68 },69'Date Math': {70 setup: function() { 71 var dow = function(dow,orient,date) { 72 date.setDate(date.getDate() + (( dow - date.getDay() ) + ( 7 * orient )) % 7);73 return date;74 };75 76 this.today = new Date().clearTime(); 77 var y = new Date; y.setDate( y.getDate() - 1 ); this.yesterday = y;78 79 this.last_tuesday = dow(2,-1, new Date().clearTime() );80 this.next_tuesday = dow(2,+1, new Date().clearTime() );81 82 this.last_july = new Date().clearTime();83 this.last_july.setMonth(6);84 if(this.today.compareTo(this.last_july) == -1)85 this.last_july.addYears(-1);86 87 this.next_july = new Date().clearTime();88 this.next_july.setMonth(6);89 if(this.today.compareTo(this.next_july) == 1)90 this.next_july.addYears(1);91 }, 92 't': {93 run: function() { this.date = Date.parse('t') },94 assert: function() { return this.today.equals( this.date) } 95 }, 96 'today+': {97 run: function() { this.date = Date.parse('today+') },98 assert: function() { return this.today.addDays(1).equals( this.date ) } 99 },100 't+': {101 run: function() { this.date = Date.parse('t+') },102 assert: function() { return this.today.addDays(1).equals( this.date ) } 103 }, 104105 't+1 d': {106 run: function() { this.date = Date.parse('t+1 d') },107 assert: function() { return this.today.addDays(1).equals( this.date ) } 108 }, 109 't + 1 d': {110 run: function() { this.date = Date.parse('t + 1 d') },111 assert: function() { return this.today.addDays(1).equals( this.date ) }112 }, 113 'today + 1 d': {114 run: function() { this.date = Date.parse('today + 1 d') },115 assert: function() { return this.today.addDays(1).equals( this.date ) }116 },117118 't+1 day': {119 run: function() { this.date = Date.parse('t+1 day') },120 assert: function() { return this.today.addDays(1).equals( this.date ) } 121 }, 122 't + 1 day': {123 run: function() { this.date = Date.parse('t + 1 day') },124 assert: function() { return this.today.addDays(1).equals( this.date ) }125 },126 'today + 1 day': {127 run: function() { this.date = Date.parse('today + 1 day') },128 assert: function() { return this.today.addDays(1).equals( this.date ) }129 }, 130 131 'today+5': {132 run: function() { this.date = Date.parse('today+5') },133 assert: function() { return this.today.addDays(5).equals( this.date ) } 134 }, 135 't+5': {136 run: function() { this.date = Date.parse('t+5') },137 assert: function() { return this.today.addDays(5).equals( this.date ) } 138 }, 139 't + 5': {140 run: function() { this.date = Date.parse('t + 5') },141 assert: function() { return this.today.addDays(5).equals( this.date ) }142 }, 143 'today + 5': {144 run: function() { this.date = Date.parse('today + 5') },145 assert: function() { return this.today.addDays(5).equals( this.date ) }146 },147148 't+5d': {149 run: function() { this.date = Date.parse('t+5d') },150 assert: function() { return this.today.addDays(5).equals( this.date ) } 151 }, 152 't + 5d': {153 run: function() { this.date = Date.parse('t + 5d') },154 assert: function() { return this.today.addDays(5).equals( this.date ) }155 }, 156 'today + 5d': {157 run: function() { this.date = Date.parse('today + 5d') },158 assert: function() { return this.today.addDays(5).equals( this.date ) }159 }, 160161 't+5days': {162 run: function() { this.date = Date.parse('t+5days') },163 assert: function() { return this.today.addDays(5).equals( this.date ) } 164 }, 165 't + 5days': {166 run: function() { this.date = Date.parse('t + 5days') },167 assert: function() { return this.today.addDays(5).equals( this.date ) }168 }, 169 'today + 5days': {170 run: function() { this.date = Date.parse('today + 5days') },171 assert: function() { return this.today.addDays(5).equals( this.date ) }172 }, 173 174 't+5 days': {175 run: function() { this.date = Date.parse('t+5 days') },176 assert: function() { return this.today.addDays(5).equals( this.date ) } 177 }, 178 't + 5 days': {179 run: function() { this.date = Date.parse('t + 5 days') },180 assert: function() { return this.today.addDays(5).equals( this.date ) }181 }, 182 'today + 5 days': {183 run: function() { this.date = Date.parse('today + 5 days') },184 assert: function() { return this.today.addDays(5).equals( this.date ) }185 }, 186187 't+1 m': {188 run: function() { this.date = Date.parse('t+1 m') },189 assert: function() { return this.today.addMonths(1).equals( this.date ) } 190 }, 191 't + 1 m': {192 run: function() { this.date = Date.parse('t + 1 m') },193 assert: function() { return this.today.addMonths(1).equals( this.date ) }194 }, 195 'today + 1 m': {196 run: function() { this.date = Date.parse('today + 1 m') },197 assert: function() { return this.today.addMonths(1).equals( this.date ) }198 },199200 't+1 month': {201 run: function() { this.date = Date.parse('t+1 month') },202 assert: function() { return this.today.addMonths(1).equals( this.date ) } 203 }, 204 't + 1 month': {205 run: function() { this.date = Date.parse('t + 1 month') },206 assert: function() { return this.today.addMonths(1).equals( this.date ) }207 }, 208 'today + 1 month': {209 run: function() { this.date = Date.parse('today + 1 month') },210 assert: function() { return this.today.addMonths(1).equals( this.date ) }211 }, 212 213 't+5m': {214 run: function() { this.date = Date.parse('t+5m') },215 assert: function() { return this.today.addMonths(5).equals( this.date ) } 216 }, 217 't + 5m': {218 run: function() { this.date = Date.parse('t + 5m') },219 assert: function() { return this.today.addMonths(5).equals( this.date ) }220 }, 221 'today + 5m': {222 run: function() { this.date = Date.parse('today + 5m') },223 assert: function() { return this.today.addMonths(5).equals( this.date ) }224 }, 225226 't+5months': {227 run: function() { this.date = Date.parse('t+5months') },228 assert: function() { return this.today.addMonths(5).equals( this.date ) } 229 }, 230 't + 5months': {231 run: function() { this.date = Date.parse('t + 5months') },232 assert: function() { return this.today.addMonths(5).equals( this.date ) }233 }, 234 'today + 5months': {235 run: function() { this.date = Date.parse('today + 5months') },236 assert: function() { return this.today.addMonths(5).equals( this.date ) }237 }, 238 239 't+5 months': {240 run: function() { this.date = Date.parse('t+5 months') },241 assert: function() { return this.today.addMonths(5).equals( this.date ) } 242 }, 243 't + 5 months': {244 run: function() { this.date = Date.parse('t + 5 months') },245 assert: function() { return this.today.addMonths(5).equals( this.date ) }246 }, 247 'today + 5 months': {248 run: function() { this.date = Date.parse('today + 5 months') },249 assert: function() { return this.today.addMonths(5).equals( this.date ) }250 }, 251 252 't+1 y': {253 run: function() { this.date = Date.parse('t+1 y') },254 assert: function() { return this.today.addYears(1).equals( this.date ) } 255 }, 256 't + 1 y': {257 run: function() { this.date = Date.parse('t + 1 y') },258 assert: function() { return this.today.addYears(1).equals( this.date ) }259 }, 260 'today + 1 y': {261 run: function() { this.date = Date.parse('today + 1 y') },262 assert: function() { return this.today.addYears(1).equals( this.date ) }263 },264265 't+1 year': {266 run: function() { this.date = Date.parse('t+1 year') },267 assert: function() { return this.today.addYears(1).equals( this.date ) } 268 }, 269 't + 1 year': {270 run: function() { this.date = Date.parse('t + 1 year') },271 assert: function() { return this.today.addYears(1).equals( this.date ) }272 }, 273 'today + 1 year': {274 run: function() { this.date = Date.parse('today + 1 year') },275 assert: function() { return this.today.addYears(1).equals( this.date ) }276 }, 277 278 't+5y': {279 run: function() { this.date = Date.parse('t+5y') },280 assert: function() { return this.today.addYears(5).equals( this.date ) } 281 }, 282 't + 5y': {283 run: function() { this.date = Date.parse('t + 5y') },284 assert: function() { return this.today.addYears(5).equals( this.date ) }285 }, 286 'today + 5y': {287 run: function() { this.date = Date.parse('today + 5y') },288 assert: function() { return this.today.addYears(5).equals( this.date ) }289 }, 290291 't+5years': {292 run: function() { this.date = Date.parse('t+5years') },293 assert: function() { return this.today.addYears(5).equals( this.date ) } 294 }, 295 't + 5years': {296 run: function() { this.date = Date.parse('t + 5years') },297 assert: function() { return this.today.addYears(5).equals( this.date ) }298 }, 299 'today + 5years': {300 run: function() { this.date = Date.parse('today + 5years') },301 assert: function() { return this.today.addYears(5).equals( this.date ) }302 }, 303 304 't+5 years': {305 run: function() { this.date = Date.parse('t+5 years') },306 assert: function() { return this.today.addYears(5).equals( this.date ) } 307 }, 308 't + 5 years': {309 run: function() { this.date = Date.parse('t + 5 years') },310 assert: function() { return this.today.addYears(5).equals( this.date ) }311 }, 312 'today + 5 years': {313 run: function() { this.date = Date.parse('today + 5 years') },314 assert: function() { return this.today.addYears(5).equals( this.date ) }315 },316 317 'today-': {318 run: function() { this.date = Date.parse('today-') },319 assert: function() { return this.today.addDays(-1).equals( this.date ) } 320 },321 't-': {322 run: function() { this.date = Date.parse('t-') },323 assert: function() { return this.today.addDays(-1).equals( this.date ) } 324 }, 325326 't-1 d': {327 run: function() { this.date = Date.parse('t-1 d') },328 assert: function() { return this.today.addDays(-1).equals( this.date ) } 329 }, 330 't - 1 d': {331 run: function() { this.date = Date.parse('t - 1 d') },332 assert: function() { return this.today.addDays(-1).equals( this.date ) }333 }, 334 'today - 1 d': {335 run: function() { this.date = Date.parse('today - 1 d') },336 assert: function() { return this.today.addDays(-1).equals( this.date ) }337 },338339 't-1 day': {340 run: function() { this.date = Date.parse('t-1 day') },341 assert: function() { return this.today.addDays(-1).equals( this.date ) } 342 }, 343 't - 1 day': {344 run: function() { this.date = Date.parse('t - 1 day') },345 assert: function() { return this.today.addDays(-1).equals( this.date ) }346 }, 347 'today - 1 day': {348 run: function() { this.date = Date.parse('today - 1 day') },349 assert: function() { return this.today.addDays(-1).equals( this.date ) }350 }, 351 352 'today-5': {353 run: function() { this.date = Date.parse('today-5') },354 assert: function() { return this.today.addDays(-5).equals( this.date ) } 355 }, 356 't-5': {357 run: function() { this.date = Date.parse('t-5') },358 assert: function() { return this.today.addDays(-5).equals( this.date ) } 359 }, 360 't - 5': {361 run: function() { this.date = Date.parse('t - 5') },362 assert: function() { return this.today.addDays(-5).equals( this.date ) }363 }, 364 'today - 5': {365 run: function() { this.date = Date.parse('today - 5') },366 assert: function() { return this.today.addDays(-5).equals( this.date ) }367 },368369 't-5d': {370 run: function() { this.date = Date.parse('t-5d') },371 assert: function() { return this.today.addDays(-5).equals( this.date ) } 372 }, 373 't - 5d': {374 run: function() { this.date = Date.parse('t - 5d') },375 assert: function() { return this.today.addDays(-5).equals( this.date ) }376 }, 377 'today - 5d': {378 run: function() { this.date = Date.parse('today - 5d') },379 assert: function() { return this.today.addDays(-5).equals( this.date ) }380 }, 381382 't-5days': {383 run: function() { this.date = Date.parse('t-5days') },384 assert: function() { return this.today.addDays(-5).equals( this.date ) } 385 }, 386 't - 5days': {387 run: function() { this.date = Date.parse('t - 5days') },388 assert: function() { return this.today.addDays(-5).equals( this.date ) }389 }, 390 'today - 5days': {391 run: function() { this.date = Date.parse('today - 5days') },392 assert: function() { return this.today.addDays(-5).equals( this.date ) }393 }, 394 395 't-5 days': {396 run: function() { this.date = Date.parse('t-5 days') },397 assert: function() { return this.today.addDays(-5).equals( this.date ) } 398 }, 399 't - 5 days': {400 run: function() { this.date = Date.parse('t - 5 days') },401 assert: function() { return this.today.addDays(-5).equals( this.date ) }402 }, 403 'today - 5 days': {404 run: function() { this.date = Date.parse('today - 5 days') },405 assert: function() { return this.today.addDays(-5).equals( this.date ) }406 }, 407 't-1 m': {408 run: function() { this.date = Date.parse('t-1 m') },409 assert: function() { return this.today.addMonths(-1).equals( this.date ) } 410 }, 411 't - 1 m': {412 run: function() { this.date = Date.parse('t - 1 m') },413 assert: function() { return this.today.addMonths(-1).equals( this.date ) }414 }, 415 'today - 1 m': {416 run: function() { this.date = Date.parse('today - 1 m') },417 assert: function() { return this.today.addMonths(-1).equals( this.date ) }418 },419 't-1 month': {420 run: function() { this.date = Date.parse('t-1 month') },421 assert: function() { return this.today.addMonths(-1).equals( this.date ) } 422 }, 423 't - 1 month': {424 run: function() { this.date = Date.parse('t - 1 month') },425 assert: function() { return this.today.addMonths(-1).equals( this.date ) }426 }, 427 'today - 1 month': {428 run: function() { this.date = Date.parse('today - 1 month') },429 assert: function() { return this.today.addMonths(-1).equals( this.date ) }430 }, 431 't-5m': {432 run: function() { this.date = Date.parse('t-5m') },433 assert: function() { return this.today.addMonths(-5).equals( this.date ) } 434 }, 435 't - 5m': {436 run: function() { this.date = Date.parse('t - 5m') },437 assert: function() { return this.today.addMonths(-5).equals( this.date ) }438 }, 439 'today - 5m': {440 run: function() { this.date = Date.parse('today - 5m') },441 assert: function() { return this.today.addMonths(-5).equals( this.date ) }442 }, 443 't-5months': {444 run: function() { this.date = Date.parse('t-5months') },445 assert: function() { return this.today.addMonths(-5).equals( this.date ) } 446 }, 447 't - 5months': {448 run: function() { this.date = Date.parse('t - 5months') },449 assert: function() { return this.today.addMonths(-5).equals( this.date ) }450 }, 451 'today - 5months': {452 run: function() { this.date = Date.parse('today - 5months') },453 assert: function() { return this.today.addMonths(-5).equals( this.date ) }454 }, 455 't-5 months': {456 run: function() { this.date = Date.parse('t-5 months') },457 assert: function() { return this.today.addMonths(-5).equals( this.date ) } 458 }, 459 't - 5 months': {460 run: function() { this.date = Date.parse('t - 5 months') },461 assert: function() { return this.today.addMonths(-5).equals( this.date ) }462 }, 463 'today - 5 months': {464 run: function() { this.date = Date.parse('today - 5 months') },465 assert: function() { return this.today.addMonths(-5).equals( this.date ) }466 }, 467 't-1 y': {468 run: function() { this.date = Date.parse('t-1 y') },469 assert: function() { return this.today.addYears(-1).equals( this.date ) } 470 }, 471 't - 1 y': {472 run: function() { this.date = Date.parse('t - 1 y') },473 assert: function() { return this.today.addYears(-1).equals( this.date ) }474 }, 475 'today - 1 y': {476 run: function() { this.date = Date.parse('today - 1 y') },477 assert: function() { return this.today.addYears(-1).equals( this.date ) }478 },479 't-1 year': {480 run: function() { this.date = Date.parse('t-1 year') },481 assert: function() { return this.today.addYears(-1).equals( this.date ) } 482 }, 483 't - 1 year': {484 run: function() { this.date = Date.parse('t - 1 year') },485 assert: function() { return this.today.addYears(-1).equals( this.date ) }486 }, 487 'today - 1 year': {488 run: function() { this.date = Date.parse('today - 1 year') },489 assert: function() { return this.today.addYears(-1).equals( this.date ) }490 }, 491 't-5y': {492 run: function() { this.date = Date.parse('t-5y') },493 assert: function() { return this.today.addYears(-5).equals( this.date ) } 494 }, 495 't - 5y': {496 run: function() { this.date = Date.parse('t - 5y') },497 assert: function() { return this.today.addYears(-5).equals( this.date ) }498 }, 499 'today - 5y': {500 run: function() { this.date = Date.parse('today - 5y') },501 assert: function() { return this.today.addYears(-5).equals( this.date ) }502 }, 503504 't-5years': {505 run: function() { this.date = Date.parse('t-5years') },506 assert: function() { return this.today.addYears(-5).equals( this.date ) } 507 }, 508 't - 5years': {509 run: function() { this.date = Date.parse('t - 5years') },510 assert: function() { return this.today.addYears(-5).equals( this.date ) }511 }, 512 'today - 5years': {513 run: function() { this.date = Date.parse('today - 5years') },514 assert: function() { return this.today.addYears(-5).equals( this.date ) }515 }, 516 517 't-5 years': {518 run: function() { this.date = Date.parse('t-5 years') },519 assert: function() { return this.today.addYears(-5).equals( this.date ) } 520 }, 521 't - 5 years': {522 run: function() { this.date = Date.parse('t - 5 years') },523 assert: function() { return this.today.addYears(-5).equals( this.date ) }524 }, 525 'today - 5 years': {526 run: function() { this.date = Date.parse('today - 5 years') },527 assert: function() { return this.today.addYears(-5).equals( this.date ) }528 },529 '+': {530 run: function() { this.date = Date.parse('+') },531 assert: function() { return this.today.addDays(1).equals( this.date ) } 532 }, 533534 '+1 d': {535 run: function() { this.date = Date.parse('+1 d') },536 assert: function() { return this.today.addDays(1).equals( this.date ) } 537 }, 538 '+ 1 d': {539 run: function() { this.date = Date.parse('+ 1 d') },540 assert: function() { return this.today.addDays(1).equals( this.date ) }541 }, 542 '+1 day': {543 run: function() { this.date = Date.parse('+1 day') },544 assert: function() { return this.today.addDays(1).equals( this.date ) } 545 }, 546 '+ 1 day': {547 run: function() { this.date = Date.parse('+ 1 day') },548 assert: function() { return this.today.addDays(1).equals( this.date ) }549 },550 '+5': {551 run: function() { this.date = Date.parse('+5') },552 assert: function() { return this.today.addDays(5).equals( this.date ) } 553 }, 554 '+ 5': {555 run: function() { this.date = Date.parse('+ 5') },556 assert: function() { return this.today.addDays(5).equals( this.date ) }557 }, 558 '+5d': {559 run: function() { this.date = Date.parse('+5d') },560 assert: function() { return this.today.addDays(5).equals( this.date ) } 561 }, 562 '+ 5d': {563 run: function() { this.date = Date.parse('+ 5d') },564 assert: function() { return this.today.addDays(5).equals( this.date ) }565 }, 566 '+5days': {567 run: function() { this.date = Date.parse('+5days') },568 assert: function() { return this.today.addDays(5).equals( this.date ) } 569 }, 570 '+ 5days': {571 run: function() { this.date = Date.parse('+ 5days') },572 assert: function() { return this.today.addDays(5).equals( this.date ) }573 }, 574 '+5 days': {575 run: function() { this.date = Date.parse('+5 days') },576 assert: function() { return this.today.addDays(5).equals( this.date ) } 577 }, 578 '+ 5 days': {579 run: function() { this.date = Date.parse('+ 5 days') },580 assert: function() { return this.today.addDays(5).equals( this.date ) }581 }, 582 '+1 m': {583 run: function() { this.date = Date.parse('+1 m') },584 assert: function() { return this.today.addMonths(1).equals( this.date ) } 585 }, 586 '+ 1 m': {587 run: function() { this.date = Date.parse('+ 1 m') },588 assert: function() { return this.today.addMonths(1).equals( this.date ) }589 }, 590 '+1 month': {591 run: function() { this.date = Date.parse('+1 month') },592 assert: function() { return this.today.addMonths(1).equals( this.date ) } 593 }, 594 '+ 1 month': {595 run: function() { this.date = Date.parse('+ 1 month') },596 assert: function() { return this.today.addMonths(1).equals( this.date ) }597 }, 598 '+5m': {599 run: function() { this.date = Date.parse('+5m') },600 assert: function() { return this.today.addMonths(5).equals( this.date ) } 601 }, 602 '+ 5m': {603 run: function() { this.date = Date.parse('+ 5m') },604 assert: function() { return this.today.addMonths(5).equals( this.date ) }605 }, 606 '+5months': {607 run: function() { this.date = Date.parse('+5months') },608 assert: function() { return this.today.addMonths(5).equals( this.date ) } 609 }, 610 '+ 5months': {611 run: function() { this.date = Date.parse('+ 5months') },612 assert: function() { return this.today.addMonths(5).equals( this.date ) }613 }, 614 '+5 months': {615 run: function() { this.date = Date.parse('+5 months') },616 assert: function() { return this.today.addMonths(5).equals( this.date ) } 617 }, 618 '+ 5 months': {619 run: function() { this.date = Date.parse('+ 5 months') },620 assert: function() { return this.today.addMonths(5).equals( this.date ) }621 }, 622 '+1 y': {623 run: function() { this.date = Date.parse('+1 y') },624 assert: function() { return this.today.addYears(1).equals( this.date ) } 625 }, 626 '+ 1 y': {627 run: function() { this.date = Date.parse('+ 1 y') },628 assert: function() { return this.today.addYears(1).equals( this.date ) }629 }, 630 '+1 year': {631 run: function() { this.date = Date.parse('+1 year') },632 assert: function() { return this.today.addYears(1).equals( this.date ) } 633 }, 634 '+ 1 year': {635 run: function() { this.date = Date.parse('+ 1 year') },636 assert: function() { return this.today.addYears(1).equals( this.date ) }637 }, 638 '+5y': {639 run: function() { this.date = Date.parse('+5y') },640 assert: function() { return this.today.addYears(5).equals( this.date ) } 641 }, 642 '+ 5y': {643 run: function() { this.date = Date.parse('+ 5y') },644 assert: function() { return this.today.addYears(5).equals( this.date ) }645 }, 646 '+5years': {647 run: function() { this.date = Date.parse('+5years') },648 assert: function() { return this.today.addYears(5).equals( this.date ) } 649 }, 650 '+ 5years': {651 run: function() { this.date = Date.parse('+ 5years') },652 assert: function() { return this.today.addYears(5).equals( this.date ) }653 }, 654 '+5 years': {655 run: function() { this.date = Date.parse('+5 years') },656 assert: function() { return this.today.addYears(5).equals( this.date ) } 657 }, 658 '+ 5 years': {659 run: function() { this.date = Date.parse('+ 5 years') },660 assert: function() { return this.today.addYears(5).equals( this.date ) }661 }, 662 '-': {663 run: function() { this.date = Date.parse('-') },664 assert: function() { return this.today.addDays(-1).equals( this.date ) } 665 }, 666 '-1 d': {667 run: function() { this.date = Date.parse('-1 d') },668 assert: function() { return this.today.addDays(-1).equals( this.date ) } 669 }, 670 '- 1 d': {671 run: function() { this.date = Date.parse(' - 1 d') },672 assert: function() { return this.today.addDays(-1).equals( this.date ) }673 }, 674 '-1 day': {675 run: function() { this.date = Date.parse('-1 day') },676 assert: function() { return this.today.addDays(-1).equals( this.date ) } 677 }, 678 '- 1 day': {679 run: function() { this.date = Date.parse(' - 1 day') },680 assert: function() { return this.today.addDays(-1).equals( this.date ) }681 }, 682 '-5': {683 run: function() { this.date = Date.parse('-5') },684 assert: function() { return this.today.addDays(-5).equals( this.date ) } 685 }, 686 '- 5': {687 run: function() { this.date = Date.parse('- 5') },688 assert: function() { return this.today.addDays(-5).equals( this.date ) }689 }, 690 '-5d': {691 run: function() { this.date = Date.parse('-5d') },692 assert: function() { return this.today.addDays(-5).equals( this.date ) } 693 }, 694 '- 5d': {695 run: function() { this.date = Date.parse('- 5d') },696 assert: function() { return this.today.addDays(-5).equals( this.date ) }697 }, 698 '-5days': {699 run: function() { this.date = Date.parse('-5days') },700 assert: function() { return this.today.addDays(-5).equals( this.date ) } 701 }, 702 '- 5days': {703 run: function() { this.date = Date.parse('- 5days') },704 assert: function() { return this.today.addDays(-5).equals( this.date ) }705 }, 706 '-5 days': {707 run: function() { this.date = Date.parse('-5 days') },708 assert: function() { return this.today.addDays(-5).equals( this.date ) } 709 }, 710 '- 5 days': {711 run: function() { this.date = Date.parse('- 5 days') },712 assert: function() { return this.today.addDays(-5).equals( this.date ) }713 }, 714 '-1 m': {715 run: function() { this.date = Date.parse('-1 m') },716 assert: function() { return this.today.addMonths(-1).equals( this.date ) } 717 }, 718 '- 1 m': {719 run: function() { this.date = Date.parse('- 1 m') },720 assert: function() { return this.today.addMonths(-1).equals( this.date ) }721 }, 722 '-1 month': {723 run: function() { this.date = Date.parse('-1 month') },724 assert: function() { return this.today.addMonths(-1).equals( this.date ) } 725 }, 726 '- 1 month': {727 run: function() { this.date = Date.parse('- 1 month') },728 assert: function() { return this.today.addMonths(-1).equals( this.date ) }729 }, 730 '-5m': {731 run: function() { this.date = Date.parse('-5m') },732 assert: function() { return this.today.addMonths(-5).equals( this.date ) } 733 }, 734 '- 5m': {735 run: function() { this.date = Date.parse('- 5m') },736 assert: function() { return this.today.addMonths(-5).equals( this.date ) }737 }, 738 '-5months': {739 run: function() { this.date = Date.parse('-5months') },740 assert: function() { return this.today.addMonths(-5).equals( this.date ) } 741 }, 742 '- 5months': {743 run: function() { this.date = Date.parse('- 5months') },744 assert: function() { return this.today.addMonths(-5).equals( this.date ) }745 }, 746 '-5 months': {747 run: function() { this.date = Date.parse('-5 months') },748 assert: function() { return this.today.addMonths(-5).equals( this.date ) } 749 }, 750 '- 5 months': {751 run: function() { this.date = Date.parse('- 5 months') },752 assert: function() { return this.today.addMonths(-5).equals( this.date ) }753 }, 754 '-1 y': {755 run: function() { this.date = Date.parse('-1 y') },756 assert: function() { return this.today.addYears(-1).equals( this.date ) } 757 }, 758 '- 1 y': {759 run: function() { this.date = Date.parse('- 1 y') },760 assert: function() { return this.today.addYears(-1).equals( this.date ) }761 }, 762 '-1 year': {763 run: function() { this.date = Date.parse('-1 year') },764 assert: function() { return this.today.addYears(-1).equals( this.date ) } 765 }, 766 '-5y': {767 run: function() { this.date = Date.parse('-5y') },768 assert: function() { return this.today.addYears(-5).equals( this.date ) } 769 }, 770 '- 5y': {771 run: function() { this.date = Date.parse('- 5y') },772 assert: function() { return this.today.addYears(-5).equals( this.date ) }773 }, 774 '-5years': {775 run: function() { this.date = Date.parse('-5years') },776 assert: function() { return this.today.addYears(-5).equals( this.date ) } 777 }, 778 '- 5years': {779 run: function() { this.date = Date.parse('- 5years') },780 assert: function() { return this.today.addYears(-5).equals( this.date ) }781 },782 '-5 years': {783 run: function() { this.date = Date.parse('-5 years') },784 assert: function() { return this.today.addYears(-5).equals( this.date ) } 785 }, 786 '- 5 years': {787 run: function() { this.date = Date.parse('- 5 years') },788 assert: function() { return this.today.addYears(-5).equals( this.date ) }789 }790 } 791});...

Full Screen

Full Screen

closure-externs.js

Source:closure-externs.js Github

copy

Full Screen

1/**2 * This file contains definitions for things that we'd really rather the closure compiler *didn't* minify.3 * See http://code.google.com/p/closure-compiler/wiki/FAQ#How_do_I_write_an_externs_file4 * See also the discussion here: https://github.com/kripken/emscripten/issues/19795 *6 * The closure_compiler() method in tools/shared.py refers to this file when calling closure.7 */8// Closure externs used by library_uuid.js9/**10 * @param {Array} typedArray11 */12crypto.getRandomValues = function(typedArray) {};13/**14 BEGIN_NODE_INCLUDE15 var crypto = require('crypto');16 END_NODE_INCLUDE17 */18/**19 * @type {Object.<string,*>}20 */21var crypto = {};22/**23 * @param {number} size24 * @param {function(Error, buffer.Buffer)} callback25 */26crypto.randomBytes = function(size, callback) {};27// Closure externs used by library_sockfs.js28/**29 BEGIN_NODE_INCLUDE30 var ws = require('ws');31 END_NODE_INCLUDE32 */33/**34 * @type {Object.<string,*>}35 */36var ws = {};37/**38 * @param {string} event39 * @param {function()} callback40 */41ws.on = function(event, callback) {};42/**43 * @param {Object} data44 * @param {Object} flags45 * @param {function()=} callback46 */47ws.send = function(data, flags, callback) {};48/**49* @type {boolean}50*/51ws.binaryType;52/**53 * @type {Object.<string,*>}54 */55var wss = ws.Server;56/**57 * @param {string} event58 * @param {function()} callback59 */60wss.on = function(event, callback) {};61/**62 * @param {function()} callback63 */64wss.broadcast = function(callback) {};65/**66* @type {Object.<string,*>}67*/68wss._socket;69/**70* @type {string}71*/72wss.url;73/**74* @type {string}75*/76wss._socket.remoteAddress;77/**78* @type {number}79*/80wss._socket.remotePort;81/**82* @type {Object.<string,*>}83*/84var flags = {};85/**86* @type {boolean}87*/88flags.binary;89/**90 * @fileoverview Definitions for W3C's Gamepad specification.91 * @see http://www.w3.org/TR/gamepad/92 * @externs93 */94/**95 * @typedef {{id: string, index: number, timestamp: number, axes: Array.<number>, buttons: Array.<number>}}96 */97var Gamepad;98/**99* @type {Array.<number>}100*/101Gamepad.buttons;102/**103* @type {Array.<number>}104*/105Gamepad.axes;106/**107* @type {number}108*/109Gamepad.index;110/**111* @type {string}112*/113Gamepad.id;114/**115* @type {number}116*/117Gamepad.timestamp;118/**119 * @return {Array.<Gamepad>}120 */121navigator.getGamepads = function() {};122/**123 * @return {Array.<Gamepad>}124 */125navigator.webkitGetGamepads = function() {};126/**127 * @return {Array.<Gamepad>}128 */129navigator.webkitGamepads = function() {};130/**131 * @return {Array.<Gamepad>}132 */133navigator.mozGamepads = function() {};134/**135 * @return {Array.<Gamepad>}136 */137navigator.gamepads = function() {};138/**139 * Backported from latest closure...140 * @see https://developer.mozilla.org/en-US/docs/Web/API/Document/currentScript141 */142Document.prototype.currentScript;143//Atomics library (not yet in latest closure):144//See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics145var Atomics;146Atomics.prototype.NOTEQUAL = -1;147Atomics.prototype.OK = 0;148Atomics.prototype.TIMEDOUT = -2;149Atomics.prototype.add = function(typedArray, index, value) {};150Atomics.prototype.and = function(typedArray, index, value) {};151Atomics.prototype.compareExchange = function(typedArray, index, expectedValue, replacementValue) {};152Atomics.prototype.exchange = function(typedArray, index, value) {};153Atomics.prototype.load = function(typedArray, index) {};154Atomics.prototype.or = function(typedArray, index, value) {};155Atomics.prototype.store = function(typedArray, index, value) {};156Atomics.prototype.sub = function(typedArray, index, value) {};157Atomics.prototype.xor = function(typedArray, index, value) {};158Atomics.prototype.wait = function(typedArray, index, valuei, timeout) {};159Atomics.prototype.wake = function(typedArray, index, value) {};160Atomics.prototype.isLockFree = function(size) {};161/**162 * SIMD.js support (not in upstream closure yet).163 */164var SIMD;165//Base objects166SIMD.Float32x4;167SIMD.Float64x2;168SIMD.Int8x16;169SIMD.Int16x8;170SIMD.Int32x4;171SIMD.Uint8x16;172SIMD.Uint16x8;173SIMD.Uint32x4;174SIMD.Bool8x16;175SIMD.Bool16x8;176SIMD.Bool32x4;177SIMD.Bool64x2;178SIMD.Float32x4.abs = function() {};179SIMD.Float64x2.abs = function() {};180SIMD.Int8x16.abs = function() {};181SIMD.Int16x8.abs = function() {};182SIMD.Int32x4.abs = function() {};183SIMD.Uint8x16.abs = function() {};184SIMD.Uint16x8.abs = function() {};185SIMD.Uint32x4.abs = function() {};186SIMD.Bool8x16.abs = function() {};187SIMD.Bool16x8.abs = function() {};188SIMD.Bool32x4.abs = function() {};189SIMD.Bool64x2.abs = function() {};190SIMD.Float32x4.add = function() {};191SIMD.Float64x2.add = function() {};192SIMD.Int8x16.add = function() {};193SIMD.Int16x8.add = function() {};194SIMD.Int32x4.add = function() {};195SIMD.Uint8x16.add = function() {};196SIMD.Uint16x8.add = function() {};197SIMD.Uint32x4.add = function() {};198SIMD.Bool8x16.add = function() {};199SIMD.Bool16x8.add = function() {};200SIMD.Bool32x4.add = function() {};201SIMD.Bool64x2.add = function() {};202SIMD.Float32x4.addSaturate = function() {};203SIMD.Float64x2.addSaturate = function() {};204SIMD.Int8x16.addSaturate = function() {};205SIMD.Int16x8.addSaturate = function() {};206SIMD.Int32x4.addSaturate = function() {};207SIMD.Uint8x16.addSaturate = function() {};208SIMD.Uint16x8.addSaturate = function() {};209SIMD.Uint32x4.addSaturate = function() {};210SIMD.Bool8x16.addSaturate = function() {};211SIMD.Bool16x8.addSaturate = function() {};212SIMD.Bool32x4.addSaturate = function() {};213SIMD.Bool64x2.addSaturate = function() {};214SIMD.Float32x4.allTrue = function() {};215SIMD.Float64x2.allTrue = function() {};216SIMD.Int8x16.allTrue = function() {};217SIMD.Int16x8.allTrue = function() {};218SIMD.Int32x4.allTrue = function() {};219SIMD.Uint8x16.allTrue = function() {};220SIMD.Uint16x8.allTrue = function() {};221SIMD.Uint32x4.allTrue = function() {};222SIMD.Bool8x16.allTrue = function() {};223SIMD.Bool16x8.allTrue = function() {};224SIMD.Bool32x4.allTrue = function() {};225SIMD.Bool64x2.allTrue = function() {};226SIMD.Float32x4.and = function() {};227SIMD.Float64x2.and = function() {};228SIMD.Int8x16.and = function() {};229SIMD.Int16x8.and = function() {};230SIMD.Int32x4.and = function() {};231SIMD.Uint8x16.and = function() {};232SIMD.Uint16x8.and = function() {};233SIMD.Uint32x4.and = function() {};234SIMD.Bool8x16.and = function() {};235SIMD.Bool16x8.and = function() {};236SIMD.Bool32x4.and = function() {};237SIMD.Bool64x2.and = function() {};238SIMD.Float32x4.check = function() {};239SIMD.Float64x2.check = function() {};240SIMD.Int8x16.check = function() {};241SIMD.Int16x8.check = function() {};242SIMD.Int32x4.check = function() {};243SIMD.Uint8x16.check = function() {};244SIMD.Uint16x8.check = function() {};245SIMD.Uint32x4.check = function() {};246SIMD.Bool8x16.check = function() {};247SIMD.Bool16x8.check = function() {};248SIMD.Bool32x4.check = function() {};249SIMD.Bool64x2.check = function() {};250SIMD.Float32x4.div = function() {};251SIMD.Float64x2.div = function() {};252SIMD.Int8x16.div = function() {};253SIMD.Int16x8.div = function() {};254SIMD.Int32x4.div = function() {};255SIMD.Uint8x16.div = function() {};256SIMD.Uint16x8.div = function() {};257SIMD.Uint32x4.div = function() {};258SIMD.Bool8x16.div = function() {};259SIMD.Bool16x8.div = function() {};260SIMD.Bool32x4.div = function() {};261SIMD.Bool64x2.div = function() {};262SIMD.Float32x4.equal = function() {};263SIMD.Float64x2.equal = function() {};264SIMD.Int8x16.equal = function() {};265SIMD.Int16x8.equal = function() {};266SIMD.Int32x4.equal = function() {};267SIMD.Uint8x16.equal = function() {};268SIMD.Uint16x8.equal = function() {};269SIMD.Uint32x4.equal = function() {};270SIMD.Bool8x16.equal = function() {};271SIMD.Bool16x8.equal = function() {};272SIMD.Bool32x4.equal = function() {};273SIMD.Bool64x2.equal = function() {};274SIMD.Float32x4.extractLane = function() {};275SIMD.Float64x2.extractLane = function() {};276SIMD.Int8x16.extractLane = function() {};277SIMD.Int16x8.extractLane = function() {};278SIMD.Int32x4.extractLane = function() {};279SIMD.Uint8x16.extractLane = function() {};280SIMD.Uint16x8.extractLane = function() {};281SIMD.Uint32x4.extractLane = function() {};282SIMD.Bool8x16.extractLane = function() {};283SIMD.Bool16x8.extractLane = function() {};284SIMD.Bool32x4.extractLane = function() {};285SIMD.Bool64x2.extractLane = function() {};286SIMD.Float32x4.fromFloat32x4 = function() {};287SIMD.Float64x2.fromFloat32x4 = function() {};288SIMD.Int8x16.fromFloat32x4 = function() {};289SIMD.Int16x8.fromFloat32x4 = function() {};290SIMD.Int32x4.fromFloat32x4 = function() {};291SIMD.Uint8x16.fromFloat32x4 = function() {};292SIMD.Uint16x8.fromFloat32x4 = function() {};293SIMD.Uint32x4.fromFloat32x4 = function() {};294SIMD.Bool8x16.fromFloat32x4 = function() {};295SIMD.Bool16x8.fromFloat32x4 = function() {};296SIMD.Bool32x4.fromFloat32x4 = function() {};297SIMD.Bool64x2.fromFloat32x4 = function() {};298SIMD.Float32x4.fromFloat32x4Bits = function() {};299SIMD.Float64x2.fromFloat32x4Bits = function() {};300SIMD.Int8x16.fromFloat32x4Bits = function() {};301SIMD.Int16x8.fromFloat32x4Bits = function() {};302SIMD.Int32x4.fromFloat32x4Bits = function() {};303SIMD.Uint8x16.fromFloat32x4Bits = function() {};304SIMD.Uint16x8.fromFloat32x4Bits = function() {};305SIMD.Uint32x4.fromFloat32x4Bits = function() {};306SIMD.Bool8x16.fromFloat32x4Bits = function() {};307SIMD.Bool16x8.fromFloat32x4Bits = function() {};308SIMD.Bool32x4.fromFloat32x4Bits = function() {};309SIMD.Bool64x2.fromFloat32x4Bits = function() {};310SIMD.Float32x4.fromFloat64x2Bits = function() {};311SIMD.Float64x2.fromFloat64x2Bits = function() {};312SIMD.Int8x16.fromFloat64x2Bits = function() {};313SIMD.Int16x8.fromFloat64x2Bits = function() {};314SIMD.Int32x4.fromFloat64x2Bits = function() {};315SIMD.Uint8x16.fromFloat64x2Bits = function() {};316SIMD.Uint16x8.fromFloat64x2Bits = function() {};317SIMD.Uint32x4.fromFloat64x2Bits = function() {};318SIMD.Bool8x16.fromFloat64x2Bits = function() {};319SIMD.Bool16x8.fromFloat64x2Bits = function() {};320SIMD.Bool32x4.fromFloat64x2Bits = function() {};321SIMD.Bool64x2.fromFloat64x2Bits = function() {};322SIMD.Float32x4.fromInt16x8Bits = function() {};323SIMD.Float64x2.fromInt16x8Bits = function() {};324SIMD.Int8x16.fromInt16x8Bits = function() {};325SIMD.Int16x8.fromInt16x8Bits = function() {};326SIMD.Int32x4.fromInt16x8Bits = function() {};327SIMD.Uint8x16.fromInt16x8Bits = function() {};328SIMD.Uint16x8.fromInt16x8Bits = function() {};329SIMD.Uint32x4.fromInt16x8Bits = function() {};330SIMD.Bool8x16.fromInt16x8Bits = function() {};331SIMD.Bool16x8.fromInt16x8Bits = function() {};332SIMD.Bool32x4.fromInt16x8Bits = function() {};333SIMD.Bool64x2.fromInt16x8Bits = function() {};334SIMD.Float32x4.fromInt32x4 = function() {};335SIMD.Float64x2.fromInt32x4 = function() {};336SIMD.Int8x16.fromInt32x4 = function() {};337SIMD.Int16x8.fromInt32x4 = function() {};338SIMD.Int32x4.fromInt32x4 = function() {};339SIMD.Uint8x16.fromInt32x4 = function() {};340SIMD.Uint16x8.fromInt32x4 = function() {};341SIMD.Uint32x4.fromInt32x4 = function() {};342SIMD.Bool8x16.fromInt32x4 = function() {};343SIMD.Bool16x8.fromInt32x4 = function() {};344SIMD.Bool32x4.fromInt32x4 = function() {};345SIMD.Bool64x2.fromInt32x4 = function() {};346SIMD.Float32x4.fromInt32x4Bits = function() {};347SIMD.Float64x2.fromInt32x4Bits = function() {};348SIMD.Int8x16.fromInt32x4Bits = function() {};349SIMD.Int16x8.fromInt32x4Bits = function() {};350SIMD.Int32x4.fromInt32x4Bits = function() {};351SIMD.Uint8x16.fromInt32x4Bits = function() {};352SIMD.Uint16x8.fromInt32x4Bits = function() {};353SIMD.Uint32x4.fromInt32x4Bits = function() {};354SIMD.Bool8x16.fromInt32x4Bits = function() {};355SIMD.Bool16x8.fromInt32x4Bits = function() {};356SIMD.Bool32x4.fromInt32x4Bits = function() {};357SIMD.Bool64x2.fromInt32x4Bits = function() {};358SIMD.Float32x4.fromInt8x16Bits = function() {};359SIMD.Float64x2.fromInt8x16Bits = function() {};360SIMD.Int8x16.fromInt8x16Bits = function() {};361SIMD.Int16x8.fromInt8x16Bits = function() {};362SIMD.Int32x4.fromInt8x16Bits = function() {};363SIMD.Uint8x16.fromInt8x16Bits = function() {};364SIMD.Uint16x8.fromInt8x16Bits = function() {};365SIMD.Uint32x4.fromInt8x16Bits = function() {};366SIMD.Bool8x16.fromInt8x16Bits = function() {};367SIMD.Bool16x8.fromInt8x16Bits = function() {};368SIMD.Bool32x4.fromInt8x16Bits = function() {};369SIMD.Bool64x2.fromInt8x16Bits = function() {};370SIMD.Float32x4.fromUint16x8Bits = function() {};371SIMD.Float64x2.fromUint16x8Bits = function() {};372SIMD.Int8x16.fromUint16x8Bits = function() {};373SIMD.Int16x8.fromUint16x8Bits = function() {};374SIMD.Int32x4.fromUint16x8Bits = function() {};375SIMD.Uint8x16.fromUint16x8Bits = function() {};376SIMD.Uint16x8.fromUint16x8Bits = function() {};377SIMD.Uint32x4.fromUint16x8Bits = function() {};378SIMD.Bool8x16.fromUint16x8Bits = function() {};379SIMD.Bool16x8.fromUint16x8Bits = function() {};380SIMD.Bool32x4.fromUint16x8Bits = function() {};381SIMD.Bool64x2.fromUint16x8Bits = function() {};382SIMD.Float32x4.fromUint32x4 = function() {};383SIMD.Float64x2.fromUint32x4 = function() {};384SIMD.Int8x16.fromUint32x4 = function() {};385SIMD.Int16x8.fromUint32x4 = function() {};386SIMD.Int32x4.fromUint32x4 = function() {};387SIMD.Uint8x16.fromUint32x4 = function() {};388SIMD.Uint16x8.fromUint32x4 = function() {};389SIMD.Uint32x4.fromUint32x4 = function() {};390SIMD.Bool8x16.fromUint32x4 = function() {};391SIMD.Bool16x8.fromUint32x4 = function() {};392SIMD.Bool32x4.fromUint32x4 = function() {};393SIMD.Bool64x2.fromUint32x4 = function() {};394SIMD.Float32x4.fromUint32x4Bits = function() {};395SIMD.Float64x2.fromUint32x4Bits = function() {};396SIMD.Int8x16.fromUint32x4Bits = function() {};397SIMD.Int16x8.fromUint32x4Bits = function() {};398SIMD.Int32x4.fromUint32x4Bits = function() {};399SIMD.Uint8x16.fromUint32x4Bits = function() {};400SIMD.Uint16x8.fromUint32x4Bits = function() {};401SIMD.Uint32x4.fromUint32x4Bits = function() {};402SIMD.Bool8x16.fromUint32x4Bits = function() {};403SIMD.Bool16x8.fromUint32x4Bits = function() {};404SIMD.Bool32x4.fromUint32x4Bits = function() {};405SIMD.Bool64x2.fromUint32x4Bits = function() {};406SIMD.Float32x4.fromUint8x16Bits = function() {};407SIMD.Float64x2.fromUint8x16Bits = function() {};408SIMD.Int8x16.fromUint8x16Bits = function() {};409SIMD.Int16x8.fromUint8x16Bits = function() {};410SIMD.Int32x4.fromUint8x16Bits = function() {};411SIMD.Uint8x16.fromUint8x16Bits = function() {};412SIMD.Uint16x8.fromUint8x16Bits = function() {};413SIMD.Uint32x4.fromUint8x16Bits = function() {};414SIMD.Bool8x16.fromUint8x16Bits = function() {};415SIMD.Bool16x8.fromUint8x16Bits = function() {};416SIMD.Bool32x4.fromUint8x16Bits = function() {};417SIMD.Bool64x2.fromUint8x16Bits = function() {};418SIMD.Float32x4.greaterThan = function() {};419SIMD.Float64x2.greaterThan = function() {};420SIMD.Int8x16.greaterThan = function() {};421SIMD.Int16x8.greaterThan = function() {};422SIMD.Int32x4.greaterThan = function() {};423SIMD.Uint8x16.greaterThan = function() {};424SIMD.Uint16x8.greaterThan = function() {};425SIMD.Uint32x4.greaterThan = function() {};426SIMD.Bool8x16.greaterThan = function() {};427SIMD.Bool16x8.greaterThan = function() {};428SIMD.Bool32x4.greaterThan = function() {};429SIMD.Bool64x2.greaterThan = function() {};430SIMD.Float32x4.greaterThanOrEqual = function() {};431SIMD.Float64x2.greaterThanOrEqual = function() {};432SIMD.Int8x16.greaterThanOrEqual = function() {};433SIMD.Int16x8.greaterThanOrEqual = function() {};434SIMD.Int32x4.greaterThanOrEqual = function() {};435SIMD.Uint8x16.greaterThanOrEqual = function() {};436SIMD.Uint16x8.greaterThanOrEqual = function() {};437SIMD.Uint32x4.greaterThanOrEqual = function() {};438SIMD.Bool8x16.greaterThanOrEqual = function() {};439SIMD.Bool16x8.greaterThanOrEqual = function() {};440SIMD.Bool32x4.greaterThanOrEqual = function() {};441SIMD.Bool64x2.greaterThanOrEqual = function() {};442SIMD.Float32x4.lessThan = function() {};443SIMD.Float64x2.lessThan = function() {};444SIMD.Int8x16.lessThan = function() {};445SIMD.Int16x8.lessThan = function() {};446SIMD.Int32x4.lessThan = function() {};447SIMD.Uint8x16.lessThan = function() {};448SIMD.Uint16x8.lessThan = function() {};449SIMD.Uint32x4.lessThan = function() {};450SIMD.Bool8x16.lessThan = function() {};451SIMD.Bool16x8.lessThan = function() {};452SIMD.Bool32x4.lessThan = function() {};453SIMD.Bool64x2.lessThan = function() {};454SIMD.Float32x4.lessThanOrEqual = function() {};455SIMD.Float64x2.lessThanOrEqual = function() {};456SIMD.Int8x16.lessThanOrEqual = function() {};457SIMD.Int16x8.lessThanOrEqual = function() {};458SIMD.Int32x4.lessThanOrEqual = function() {};459SIMD.Uint8x16.lessThanOrEqual = function() {};460SIMD.Uint16x8.lessThanOrEqual = function() {};461SIMD.Uint32x4.lessThanOrEqual = function() {};462SIMD.Bool8x16.lessThanOrEqual = function() {};463SIMD.Bool16x8.lessThanOrEqual = function() {};464SIMD.Bool32x4.lessThanOrEqual = function() {};465SIMD.Bool64x2.lessThanOrEqual = function() {};466SIMD.Float32x4.load = function() {};467SIMD.Float64x2.load = function() {};468SIMD.Int8x16.load = function() {};469SIMD.Int16x8.load = function() {};470SIMD.Int32x4.load = function() {};471SIMD.Uint8x16.load = function() {};472SIMD.Uint16x8.load = function() {};473SIMD.Uint32x4.load = function() {};474SIMD.Bool8x16.load = function() {};475SIMD.Bool16x8.load = function() {};476SIMD.Bool32x4.load = function() {};477SIMD.Bool64x2.load = function() {};478SIMD.Float32x4.max = function() {};479SIMD.Float64x2.max = function() {};480SIMD.Int8x16.max = function() {};481SIMD.Int16x8.max = function() {};482SIMD.Int32x4.max = function() {};483SIMD.Uint8x16.max = function() {};484SIMD.Uint16x8.max = function() {};485SIMD.Uint32x4.max = function() {};486SIMD.Bool8x16.max = function() {};487SIMD.Bool16x8.max = function() {};488SIMD.Bool32x4.max = function() {};489SIMD.Bool64x2.max = function() {};490SIMD.Float32x4.maxNum = function() {};491SIMD.Float64x2.maxNum = function() {};492SIMD.Int8x16.maxNum = function() {};493SIMD.Int16x8.maxNum = function() {};494SIMD.Int32x4.maxNum = function() {};495SIMD.Uint8x16.maxNum = function() {};496SIMD.Uint16x8.maxNum = function() {};497SIMD.Uint32x4.maxNum = function() {};498SIMD.Bool8x16.maxNum = function() {};499SIMD.Bool16x8.maxNum = function() {};500SIMD.Bool32x4.maxNum = function() {};501SIMD.Bool64x2.maxNum = function() {};502SIMD.Float32x4.min = function() {};503SIMD.Float64x2.min = function() {};504SIMD.Int8x16.min = function() {};505SIMD.Int16x8.min = function() {};506SIMD.Int32x4.min = function() {};507SIMD.Uint8x16.min = function() {};508SIMD.Uint16x8.min = function() {};509SIMD.Uint32x4.min = function() {};510SIMD.Bool8x16.min = function() {};511SIMD.Bool16x8.min = function() {};512SIMD.Bool32x4.min = function() {};513SIMD.Bool64x2.min = function() {};514SIMD.Float32x4.minNum = function() {};515SIMD.Float64x2.minNum = function() {};516SIMD.Int8x16.minNum = function() {};517SIMD.Int16x8.minNum = function() {};518SIMD.Int32x4.minNum = function() {};519SIMD.Uint8x16.minNum = function() {};520SIMD.Uint16x8.minNum = function() {};521SIMD.Uint32x4.minNum = function() {};522SIMD.Bool8x16.minNum = function() {};523SIMD.Bool16x8.minNum = function() {};524SIMD.Bool32x4.minNum = function() {};525SIMD.Bool64x2.minNum = function() {};526SIMD.Float32x4.mul = function() {};527SIMD.Float64x2.mul = function() {};528SIMD.Int8x16.mul = function() {};529SIMD.Int16x8.mul = function() {};530SIMD.Int32x4.mul = function() {};531SIMD.Uint8x16.mul = function() {};532SIMD.Uint16x8.mul = function() {};533SIMD.Uint32x4.mul = function() {};534SIMD.Bool8x16.mul = function() {};535SIMD.Bool16x8.mul = function() {};536SIMD.Bool32x4.mul = function() {};537SIMD.Bool64x2.mul = function() {};538SIMD.Float32x4.neg = function() {};539SIMD.Float64x2.neg = function() {};540SIMD.Int8x16.neg = function() {};541SIMD.Int16x8.neg = function() {};542SIMD.Int32x4.neg = function() {};543SIMD.Uint8x16.neg = function() {};544SIMD.Uint16x8.neg = function() {};545SIMD.Uint32x4.neg = function() {};546SIMD.Bool8x16.neg = function() {};547SIMD.Bool16x8.neg = function() {};548SIMD.Bool32x4.neg = function() {};549SIMD.Bool64x2.neg = function() {};550SIMD.Float32x4.not = function() {};551SIMD.Float64x2.not = function() {};552SIMD.Int8x16.not = function() {};553SIMD.Int16x8.not = function() {};554SIMD.Int32x4.not = function() {};555SIMD.Uint8x16.not = function() {};556SIMD.Uint16x8.not = function() {};557SIMD.Uint32x4.not = function() {};558SIMD.Bool8x16.not = function() {};559SIMD.Bool16x8.not = function() {};560SIMD.Bool32x4.not = function() {};561SIMD.Bool64x2.not = function() {};562SIMD.Float32x4.notEqual = function() {};563SIMD.Float64x2.notEqual = function() {};564SIMD.Int8x16.notEqual = function() {};565SIMD.Int16x8.notEqual = function() {};566SIMD.Int32x4.notEqual = function() {};567SIMD.Uint8x16.notEqual = function() {};568SIMD.Uint16x8.notEqual = function() {};569SIMD.Uint32x4.notEqual = function() {};570SIMD.Bool8x16.notEqual = function() {};571SIMD.Bool16x8.notEqual = function() {};572SIMD.Bool32x4.notEqual = function() {};573SIMD.Bool64x2.notEqual = function() {};574SIMD.Float32x4.or = function() {};575SIMD.Float64x2.or = function() {};576SIMD.Int8x16.or = function() {};577SIMD.Int16x8.or = function() {};578SIMD.Int32x4.or = function() {};579SIMD.Uint8x16.or = function() {};580SIMD.Uint16x8.or = function() {};581SIMD.Uint32x4.or = function() {};582SIMD.Bool8x16.or = function() {};583SIMD.Bool16x8.or = function() {};584SIMD.Bool32x4.or = function() {};585SIMD.Bool64x2.or = function() {};586SIMD.Float32x4.prototype.toSource = function() {};587SIMD.Float64x2.prototype.toSource = function() {};588SIMD.Int8x16.prototype.toSource = function() {};589SIMD.Int16x8.prototype.toSource = function() {};590SIMD.Int32x4.prototype.toSource = function() {};591SIMD.Uint8x16.prototype.toSource = function() {};592SIMD.Uint16x8.prototype.toSource = function() {};593SIMD.Uint32x4.prototype.toSource = function() {};594SIMD.Bool8x16.prototype.toSource = function() {};595SIMD.Bool16x8.prototype.toSource = function() {};596SIMD.Bool32x4.prototype.toSource = function() {};597SIMD.Bool64x2.prototype.toSource = function() {};598SIMD.Float32x4.reciprocalApproximation = function() {};599SIMD.Float64x2.reciprocalApproximation = function() {};600SIMD.Int8x16.reciprocalApproximation = function() {};601SIMD.Int16x8.reciprocalApproximation = function() {};602SIMD.Int32x4.reciprocalApproximation = function() {};603SIMD.Uint8x16.reciprocalApproximation = function() {};604SIMD.Uint16x8.reciprocalApproximation = function() {};605SIMD.Uint32x4.reciprocalApproximation = function() {};606SIMD.Bool8x16.reciprocalApproximation = function() {};607SIMD.Bool16x8.reciprocalApproximation = function() {};608SIMD.Bool32x4.reciprocalApproximation = function() {};609SIMD.Bool64x2.reciprocalApproximation = function() {};610SIMD.Float32x4.reciprocalSqrtApproximation = function() {};611SIMD.Float64x2.reciprocalSqrtApproximation = function() {};612SIMD.Int8x16.reciprocalSqrtApproximation = function() {};613SIMD.Int16x8.reciprocalSqrtApproximation = function() {};614SIMD.Int32x4.reciprocalSqrtApproximation = function() {};615SIMD.Uint8x16.reciprocalSqrtApproximation = function() {};616SIMD.Uint16x8.reciprocalSqrtApproximation = function() {};617SIMD.Uint32x4.reciprocalSqrtApproximation = function() {};618SIMD.Bool8x16.reciprocalSqrtApproximation = function() {};619SIMD.Bool16x8.reciprocalSqrtApproximation = function() {};620SIMD.Bool32x4.reciprocalSqrtApproximation = function() {};621SIMD.Bool64x2.reciprocalSqrtApproximation = function() {};622SIMD.Float32x4.replaceLane = function() {};623SIMD.Float64x2.replaceLane = function() {};624SIMD.Int8x16.replaceLane = function() {};625SIMD.Int16x8.replaceLane = function() {};626SIMD.Int32x4.replaceLane = function() {};627SIMD.Uint8x16.replaceLane = function() {};628SIMD.Uint16x8.replaceLane = function() {};629SIMD.Uint32x4.replaceLane = function() {};630SIMD.Bool8x16.replaceLane = function() {};631SIMD.Bool16x8.replaceLane = function() {};632SIMD.Bool32x4.replaceLane = function() {};633SIMD.Bool64x2.replaceLane = function() {};634SIMD.Float32x4.select = function() {};635SIMD.Float64x2.select = function() {};636SIMD.Int8x16.select = function() {};637SIMD.Int16x8.select = function() {};638SIMD.Int32x4.select = function() {};639SIMD.Uint8x16.select = function() {};640SIMD.Uint16x8.select = function() {};641SIMD.Uint32x4.select = function() {};642SIMD.Bool8x16.select = function() {};643SIMD.Bool16x8.select = function() {};644SIMD.Bool32x4.select = function() {};645SIMD.Bool64x2.select = function() {};646SIMD.Float32x4.shiftLeftByScalar = function() {};647SIMD.Float64x2.shiftLeftByScalar = function() {};648SIMD.Int8x16.shiftLeftByScalar = function() {};649SIMD.Int16x8.shiftLeftByScalar = function() {};650SIMD.Int32x4.shiftLeftByScalar = function() {};651SIMD.Uint8x16.shiftLeftByScalar = function() {};652SIMD.Uint16x8.shiftLeftByScalar = function() {};653SIMD.Uint32x4.shiftLeftByScalar = function() {};654SIMD.Bool8x16.shiftLeftByScalar = function() {};655SIMD.Bool16x8.shiftLeftByScalar = function() {};656SIMD.Bool32x4.shiftLeftByScalar = function() {};657SIMD.Bool64x2.shiftLeftByScalar = function() {};658SIMD.Float32x4.shiftRightByScalar = function() {};659SIMD.Float64x2.shiftRightByScalar = function() {};660SIMD.Int8x16.shiftRightByScalar = function() {};661SIMD.Int16x8.shiftRightByScalar = function() {};662SIMD.Int32x4.shiftRightByScalar = function() {};663SIMD.Uint8x16.shiftRightByScalar = function() {};664SIMD.Uint16x8.shiftRightByScalar = function() {};665SIMD.Uint32x4.shiftRightByScalar = function() {};666SIMD.Bool8x16.shiftRightByScalar = function() {};667SIMD.Bool16x8.shiftRightByScalar = function() {};668SIMD.Bool32x4.shiftRightByScalar = function() {};669SIMD.Bool64x2.shiftRightByScalar = function() {};670SIMD.Float32x4.shuffle = function() {};671SIMD.Float64x2.shuffle = function() {};672SIMD.Int8x16.shuffle = function() {};673SIMD.Int16x8.shuffle = function() {};674SIMD.Int32x4.shuffle = function() {};675SIMD.Uint8x16.shuffle = function() {};676SIMD.Uint16x8.shuffle = function() {};677SIMD.Uint32x4.shuffle = function() {};678SIMD.Bool8x16.shuffle = function() {};679SIMD.Bool16x8.shuffle = function() {};680SIMD.Bool32x4.shuffle = function() {};681SIMD.Bool64x2.shuffle = function() {};682SIMD.Float32x4.splat = function() {};683SIMD.Float64x2.splat = function() {};684SIMD.Int8x16.splat = function() {};685SIMD.Int16x8.splat = function() {};686SIMD.Int32x4.splat = function() {};687SIMD.Uint8x16.splat = function() {};688SIMD.Uint16x8.splat = function() {};689SIMD.Uint32x4.splat = function() {};690SIMD.Bool8x16.splat = function() {};691SIMD.Bool16x8.splat = function() {};692SIMD.Bool32x4.splat = function() {};693SIMD.Bool64x2.splat = function() {};694SIMD.Float32x4.sqrt = function() {};695SIMD.Float64x2.sqrt = function() {};696SIMD.Int8x16.sqrt = function() {};697SIMD.Int16x8.sqrt = function() {};698SIMD.Int32x4.sqrt = function() {};699SIMD.Uint8x16.sqrt = function() {};700SIMD.Uint16x8.sqrt = function() {};701SIMD.Uint32x4.sqrt = function() {};702SIMD.Bool8x16.sqrt = function() {};703SIMD.Bool16x8.sqrt = function() {};704SIMD.Bool32x4.sqrt = function() {};705SIMD.Bool64x2.sqrt = function() {};706SIMD.Float32x4.store = function() {};707SIMD.Float64x2.store = function() {};708SIMD.Int8x16.store = function() {};709SIMD.Int16x8.store = function() {};710SIMD.Int32x4.store = function() {};711SIMD.Uint8x16.store = function() {};712SIMD.Uint16x8.store = function() {};713SIMD.Uint32x4.store = function() {};714SIMD.Bool8x16.store = function() {};715SIMD.Bool16x8.store = function() {};716SIMD.Bool32x4.store = function() {};717SIMD.Bool64x2.store = function() {};718SIMD.Float32x4.sub = function() {};719SIMD.Float64x2.sub = function() {};720SIMD.Int8x16.sub = function() {};721SIMD.Int16x8.sub = function() {};722SIMD.Int32x4.sub = function() {};723SIMD.Uint8x16.sub = function() {};724SIMD.Uint16x8.sub = function() {};725SIMD.Uint32x4.sub = function() {};726SIMD.Bool8x16.sub = function() {};727SIMD.Bool16x8.sub = function() {};728SIMD.Bool32x4.sub = function() {};729SIMD.Bool64x2.sub = function() {};730SIMD.Float32x4.subSaturate = function() {};731SIMD.Float64x2.subSaturate = function() {};732SIMD.Int8x16.subSaturate = function() {};733SIMD.Int16x8.subSaturate = function() {};734SIMD.Int32x4.subSaturate = function() {};735SIMD.Uint8x16.subSaturate = function() {};736SIMD.Uint16x8.subSaturate = function() {};737SIMD.Uint32x4.subSaturate = function() {};738SIMD.Bool8x16.subSaturate = function() {};739SIMD.Bool16x8.subSaturate = function() {};740SIMD.Bool32x4.subSaturate = function() {};741SIMD.Bool64x2.subSaturate = function() {};742SIMD.Float32x4.swizzle = function() {};743SIMD.Float64x2.swizzle = function() {};744SIMD.Int8x16.swizzle = function() {};745SIMD.Int16x8.swizzle = function() {};746SIMD.Int32x4.swizzle = function() {};747SIMD.Uint8x16.swizzle = function() {};748SIMD.Uint16x8.swizzle = function() {};749SIMD.Uint32x4.swizzle = function() {};750SIMD.Bool8x16.swizzle = function() {};751SIMD.Bool16x8.swizzle = function() {};752SIMD.Bool32x4.swizzle = function() {};753SIMD.Bool64x2.swizzle = function() {};754SIMD.Float32x4.xor = function() {};755SIMD.Float64x2.xor = function() {};756SIMD.Int8x16.xor = function() {};757SIMD.Int16x8.xor = function() {};758SIMD.Int32x4.xor = function() {};759SIMD.Uint8x16.xor = function() {};760SIMD.Uint16x8.xor = function() {};761SIMD.Uint32x4.xor = function() {};762SIMD.Bool8x16.xor = function() {};763SIMD.Bool16x8.xor = function() {};764SIMD.Bool32x4.xor = function() {};765SIMD.Bool64x2.xor = function() {};766SIMD.Float32x4.load1 = function() {};767SIMD.Float32x4.load2 = function() {};768SIMD.Float32x4.load3 = function() {};769SIMD.Float32x4.load4 = function() {};770SIMD.Float32x4.store1 = function() {};771SIMD.Float32x4.store2 = function() {};772SIMD.Float32x4.store3 = function() {};773SIMD.Float32x4.store4 = function() {};774SIMD.Int32x4.load1 = function() {};775SIMD.Int32x4.load2 = function() {};776SIMD.Int32x4.load3 = function() {};777SIMD.Int32x4.load4 = function() {};778SIMD.Int32x4.store1 = function() {};779SIMD.Int32x4.store2 = function() {};780SIMD.Int32x4.store3 = function() {};781SIMD.Int32x4.store4 = function() {};782SIMD.Uint32x4.load1 = function() {};783SIMD.Uint32x4.load2 = function() {};784SIMD.Uint32x4.load3 = function() {};785SIMD.Uint32x4.load4 = function() {};786SIMD.Uint32x4.store1 = function() {};787SIMD.Uint32x4.store2 = function() {};788SIMD.Uint32x4.store3 = function() {};789SIMD.Uint32x4.store4 = function() {};790SIMD.bool64x2.anyTrue = function() {};791SIMD.bool32x4.anyTrue = function() {};792SIMD.bool16x8.anyTrue = function() {};793SIMD.bool8x16.anyTrue = function() {};794SIMD.Float32x4.fromBool64x2Bits = function() {};795SIMD.Float64x2.fromBool64x2Bits = function() {};796SIMD.Int8x16.fromBool64x2Bits = function() {};797SIMD.Int16x8.fromBool64x2Bits = function() {};798SIMD.Int32x4.fromBool64x2Bits = function() {};799SIMD.Uint8x16.fromBool64x2Bits = function() {};800SIMD.Uint16x8.fromBool64x2Bits = function() {};801SIMD.Uint32x4.fromBool64x2Bits = function() {};802SIMD.Bool8x16.fromBool64x2Bits = function() {};803SIMD.Bool16x8.fromBool64x2Bits = function() {};804SIMD.Bool32x4.fromBool64x2Bits = function() {};805SIMD.Bool64x2.fromBool64x2Bits = function() {};806SIMD.Float32x4.fromFloat64x2 = function() {};807SIMD.Float64x2.fromFloat64x2 = function() {};808SIMD.Int8x16.fromFloat64x2 = function() {};809SIMD.Int16x8.fromFloat64x2 = function() {};810SIMD.Int32x4.fromFloat64x2 = function() {};811SIMD.Uint8x16.fromFloat64x2 = function() {};812SIMD.Uint16x8.fromFloat64x2 = function() {};813SIMD.Uint32x4.fromFloat64x2 = function() {};814SIMD.Bool8x16.fromFloat64x2 = function() {};815SIMD.Bool16x8.fromFloat64x2 = function() {};816SIMD.Bool32x4.fromFloat64x2 = function() {};817SIMD.Bool64x2.fromFloat64x2 = function() {};818var GLctx = {};819/**820 * @const821 */822var WebAssembly = {};823/**824 * @constructor825 * @param {!BufferSource} bytes826 */827WebAssembly.Module = function(bytes) {};828/** 829 * @constructor830 * @param {!WebAssembly.Module} moduleObject831 * @param {Object=} importObject832 */833WebAssembly.Instance = function(moduleObject, importObject) {};834/** @typedef {{initial:number, maximum:(number|undefined)}} */835var MemoryDescriptor;836/**837 * @constructor838 * @param {MemoryDescriptor} memoryDescriptor839 */840WebAssembly.Memory = function(memoryDescriptor) {};841/** @typedef {{element:string, initial:number, maximum:(number|undefined)}} */842var TableDescriptor;843/**844 * @constructor845 * @param {TableDescriptor} tableDescriptor846 */847WebAssembly.Table = function(tableDescriptor) {};848/**849 * @constructor850 * @extends {Error}851 */852WebAssembly.CompileError = function() {};853/**854 * @constructor855 * @extends {Error}856 */857WebAssembly.LinkError = function() {};858/**859 * @constructor860 * @extends {Error}861 */862WebAssembly.RuntimeError = function() {};863/**864 * Note: Closure compiler does not support function overloading, omit this overload for now.865 * {function(!WebAssembly.Module, Object=):!Promise<!WebAssembly.Instance>}866 */867/**868 * @param {!BufferSource} moduleObject869 * @param {Object=} importObject870 * @return {!Promise<{module:WebAssembly.Module, instance:WebAssembly.Instance}>}871 */872WebAssembly.instantiate = function(moduleObject, importObject) {};873/**874 * @param {!BufferSource} bytes875 * @return {!Promise<!WebAssembly.Module>}876 */877WebAssembly.compile = function(bytes) {};878/**879 * @param {!BufferSource} bytes880 * @return {boolean}881 */882WebAssembly.validate = function(bytes) {};883/**884 * @param {!WebAssembly.Module} moduleObject885 * @return {!Array<{name:string, kind:string}>}886 */887WebAssembly.Module.exports = function(moduleObject) {};888/** 889 * @param {!WebAssembly.Module} moduleObject890 * @return {!Array<{module:string, name:string, kind:string}>}891 */892WebAssembly.Module.imports = function(moduleObject) {};893/**894 * @param {!WebAssembly.Module} moduleObject895 * @param {string} sectionName896 * @return {!Array<!ArrayBuffer>}897 */898WebAssembly.Module.customSections = function(moduleObject, sectionName) {};899/** @dict */900WebAssembly.Instance.prototype.exports;901/** 902 * @param {number} delta903 * @return {number}904 */905WebAssembly.Memory.prototype.grow = function(delta) {};906/**907 * @type {!ArrayBuffer}908 */909WebAssembly.Memory.prototype.buffer;910/**911 * @param {number} delta912 * @return {number}913 */914WebAssembly.Table.prototype.grow = function(delta) {};915/**916 * @type {number}917 */918WebAssembly.Table.prototype.length;919/**920 * @param {number} index921 * @return {function(...)}922 */923WebAssembly.Table.prototype.get = function(index) {};924/**925 * @param {number} index926 * @param {?function(...)} value927 */...

Full Screen

Full Screen

externs.js

Source:externs.js Github

copy

Full Screen

1/*2 * Copyright (C) 2011 Google Inc. All rights reserved.3 *4 * Redistribution and use in source and binary forms, with or without5 * modification, are permitted provided that the following conditions are6 * met:7 *8 * * Redistributions of source code must retain the above copyright9 * notice, this list of conditions and the following disclaimer.10 * * Redistributions in binary form must reproduce the above11 * copyright notice, this list of conditions and the following disclaimer12 * in the documentation and/or other materials provided with the13 * distribution.14 * * Neither the name of Google Inc. nor the names of its15 * contributors may be used to endorse or promote products derived from16 * this software without specific prior written permission.17 *18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.29 */30// WebKit Web Facing API31var console = {}32/** @param {...*} vararg */33console.warn = function(vararg) {}34/** @param {...*} vararg */35console.assert = function(vararg) {}36/** @param {...*} vararg */37console.error = function(vararg) {}38console.trace = function() {}39/** @type {boolean} */40Event.prototype.isMetaOrCtrlForTest = false;41/** @param {...*} vararg */42Event.prototype.initWebKitWheelEvent = function(vararg) {}43Event.prototype.stopImmediatePropagation = function() {}44/**45 * @constructor46 * @extends {KeyboardEvent}47 * @param {string} eventType48 * @param {Object=} properties49 */50window.KeyboardEvent = function(eventType, properties) {}51/** @param {Element} element */52window.getComputedStyle = function(element) {}53/** @param {*} message */54function postMessage(message) {}55/** @type {*} */56window.testRunner = null;57/**58 * @constructor59 */60function WebKitMutation(callback)61{62 this.type = "";63 /** @type {Node} */ this.target = null;64 /** @type {Array.<Node>} */ this.addedNodes = [];65 /** @type {Array.<Node>} */ this.removedNodes = [];66}67/**68 * @constructor69 * @param {function(Array.<WebKitMutation>)} callback70 */71function WebKitMutationObserver(callback) {}72/**73 * @param {Node} container74 * @param {Object} options75 */76WebKitMutationObserver.prototype.observe = function(container, options) {}77WebKitMutationObserver.prototype.disconnect = function() {}78/**79 * @param {string} eventName80 * @param {Function} listener81 * @param {boolean=} capturing82 */83function addEventListener(eventName, listener, capturing) {}84/**85 * @param {T} value86 * @param {boolean=} onlyFirst87 * @this {Array.<T>}88 * @template T89 */90Array.prototype.remove = function(value, onlyFirst) {}91/**92 * @return {!Object.<string, boolean>}93 * @this {Array.<*>}94 */95Array.prototype.keySet = function() {}96/**97 * @param {number} index98 * @return {!Array.<T>}99 * @this {Array.<T>}100 * @template T101 */102Array.prototype.rotate = function(index) {}103/**104 * @param {T} object105 * @param {function(T,S):number=} comparator106 * @return {number}107 * @this {Array.<S>}108 * @template T,S109 */110Array.prototype.lowerBound = function(object, comparator) {}111/**112 * @param {T} object113 * @param {function(T,S):number=} comparator114 * @return {number}115 * @this {Array.<S>}116 * @template T,S117 */118Array.prototype.upperBound = function(object, comparator) {}119/**120 * @param {T} value121 * @param {function(T,S):number} comparator122 * @return {number}123 * @this {Array.<S>}124 * @template T,S125 */126Array.prototype.binaryIndexOf = function(value, comparator) {}127/**128 * @param {function(number, number): number} comparator129 * @param {number} leftBound130 * @param {number} rightBound131 * @param {number} sortWindowLeft132 * @param {number} sortWindowRight133 * @return {!Array.<number>}134 * @this {Array.<number>}135 */136Array.prototype.sortRange = function(comparator, leftBound, rightBound, sortWindowLeft, sortWindowRight) {}137/**138 * @this {Array.<number>}139 * @param {function(number,number):boolean} comparator140 * @param {number} left141 * @param {number} right142 * @param {number} pivotIndex143 * @return {number}144 */145Array.prototype.partition = function(comparator, left, right, pivotIndex) {}146/**147 * @this {Array.<number>}148 * @param {number} k149 * @param {function(number,number):boolean=} comparator150 * @return {number}151 */152Array.prototype.qselect = function(k, comparator) {}153/**154 * @param {string} field155 * @return {!Array.<T>}156 * @this {Array.<Object.<string,T>>}157 * @template T158 */159Array.prototype.select = function(field) {}160/**161 * @return {T|undefined}162 * @this {Array.<T>}163 * @template T164 */165Array.prototype.peekLast = function() {}166DOMApplicationCache.prototype.UNCACHED = 0;167DOMApplicationCache.prototype.IDLE = 1;168DOMApplicationCache.prototype.CHECKING = 2;169DOMApplicationCache.prototype.DOWNLOADING = 3;170DOMApplicationCache.prototype.UPDATEREADY = 4;171DOMApplicationCache.prototype.OBSOLETE = 5;172// File System API173/**174 * @constructor175 */176function DOMFileSystem() {}177/**178 * @type {DirectoryEntry}179 */180DOMFileSystem.prototype.root = null;181/** @type {Node} */182Range.prototype.startContainer;183// Inspector Backend184var InspectorBackend = {}185InspectorBackend.runAfterPendingDispatches = function(message) {}186/** @interface */187function InspectorFrontendHostAPI() {}188InspectorFrontendHostAPI.prototype.platform = function() {}189InspectorFrontendHostAPI.prototype.port = function() {}190InspectorFrontendHostAPI.prototype.bringToFront = function() {}191InspectorFrontendHostAPI.prototype.closeWindow = function() {}192InspectorFrontendHostAPI.prototype.requestSetDockSide = function(dockSide) {}193InspectorFrontendHostAPI.prototype.setAttachedWindowHeight = function(height) {}194InspectorFrontendHostAPI.prototype.moveWindowBy = function(x, y) {}195InspectorFrontendHostAPI.prototype.setInjectedScriptForOrigin = function(origin, script) {}196InspectorFrontendHostAPI.prototype.loaded = function() {}197InspectorFrontendHostAPI.prototype.localizedStringsURL = function() {}198InspectorFrontendHostAPI.prototype.inspectedURLChanged = function(url) {}199InspectorFrontendHostAPI.prototype.documentCopy = function(event) {}200InspectorFrontendHostAPI.prototype.copyText = function(text) {}201InspectorFrontendHostAPI.prototype.openInNewTab = function(url) {}202InspectorFrontendHostAPI.prototype.canSave = function() {}203InspectorFrontendHostAPI.prototype.save = function(url, content, forceSaveAs) {}204InspectorFrontendHostAPI.prototype.close = function(url) {}205InspectorFrontendHostAPI.prototype.append = function(url, content) {}206InspectorFrontendHostAPI.prototype.sendMessageToBackend = function(message) {}207InspectorFrontendHostAPI.prototype.sendMessageToEmbedder = function(message) {}208InspectorFrontendHostAPI.prototype.recordActionTaken = function(actionCode) {}209InspectorFrontendHostAPI.prototype.recordPanelShown = function(panelCode) {}210InspectorFrontendHostAPI.prototype.recordSettingChanged = function(settingCode) {}211InspectorFrontendHostAPI.prototype.loadResourceSynchronously = function(url) {}212InspectorFrontendHostAPI.prototype.supportsFileSystems = function() {}213InspectorFrontendHostAPI.prototype.requestFileSystems = function() {}214InspectorFrontendHostAPI.prototype.addFileSystem = function() {}215InspectorFrontendHostAPI.prototype.removeFileSystem = function(fileSystemPath) {}216InspectorFrontendHostAPI.prototype.isolatedFileSystem = function(fileSystemId, registeredName) {}217InspectorFrontendHostAPI.prototype.indexPath = function(requestId, fileSystemPath) {}218InspectorFrontendHostAPI.prototype.stopIndexing = function(requestId) {}219InspectorFrontendHostAPI.prototype.searchInPath = function(requestId, fileSystemPath, query) {}220InspectorFrontendHostAPI.prototype.setZoomFactor = function(zoom) {}221/** @type {InspectorFrontendHostAPI} */222var InspectorFrontendHost;223/** @constructor */224function SourceMapV3()225{226 /** @type {number} */ this.version;227 /** @type {string} */ this.file;228 /** @type {Array.<string>} */ this.sources;229 /** @type {Array.<SourceMapV3.Section>} */ this.sections;230 /** @type {string} */ this.mappings;231 /** @type {string} */ this.sourceRoot;232}233/** @constructor */234SourceMapV3.Section = function()235{236 /** @type {SourceMapV3} */ this.map;237 /** @type {SourceMapV3.Offset} */ this.offset;238}239/** @constructor */240SourceMapV3.Offset = function()241{242 /** @type {number} */ this.line;243 /** @type {number} */ this.column;244}245// FIXME: remove everything below.246var WebInspector = {}247WebInspector.queryParamsObject = {}248WebInspector.toggleSearchingForNode = function() {}249WebInspector.panels = {};250/**251 * @param {Element} element252 * @param {function()=} onclose253 */254WebInspector.showViewInDrawer = function(element, view, onclose) {}255WebInspector.closeViewInDrawer = function() {}256/**257 * @param {string=} messageLevel258 * @param {boolean=} showConsole259 */260WebInspector.log = function(message, messageLevel, showConsole) {}261WebInspector.showErrorMessage = function(error) {}262WebInspector.addMainEventListeners = function(doc) {}263WebInspector.openResource = function(url, external) {}264WebInspector.showConsole = function() {}265/**266 * @param {string} expression267 * @param {boolean=} showResultOnly268 */269WebInspector.evaluateInConsole = function(expression, showResultOnly) {}270WebInspector.queryParamsObject = {}271/**272 * @param {Element} element273 */274WebInspector.showAnchorLocation = function(element) {}275WebInspector.Events = {276 InspectorLoaded: "InspectorLoaded",277 InspectorClosing: "InspectorClosing"278}279/** @type {WebInspector.SettingsController} */280WebInspector.settingsController;281/** Extensions API */282/** @constructor */283function AuditCategory() {}284/** @constructor */285function AuditResult() {}286/** @constructor */287function EventSink() {}288/** @constructor */289function ExtensionSidebarPane() {}290/** @constructor */291function Panel() {}292/** @constructor */293function PanelWithSidebar() {}294/** @constructor */295function Request() {}296/** @constructor */297function Resource() {}298/** @constructor */299function Timeline() {}300var extensionServer;301/** @type {string} */302Location.prototype.origin = "";303/**304 * @constructor305 */306function ExtensionDescriptor() {307 this.startPage = "";308 this.name = "";309}310/**311 * @constructor312 */313function ExtensionReloadOptions() {314 this.ignoreCache = false;315 this.injectedScript = "";316 this.preprocessingScript = "";317 this.userAgent = "";318}319WebInspector.showPanel = function(panel)320{321}322/**323 * @param {ExtensionDescriptor} extensionInfo324 * @return {string}325 */326function buildPlatformExtensionAPI(extensionInfo) {}327/**328 * @type {string}329 */330WebInspector.inspectedPageDomain;331WebInspector.SourceJavaScriptTokenizer = {}332WebInspector.SourceJavaScriptTokenizer.Keywords = {}333var InspectorTest = {}334/* jsdifflib API */335var difflib = {};336difflib.stringAsLines = function(text) { return []; }337/** @constructor */338difflib.SequenceMatcher = function(baseText, newText) { }339difflib.SequenceMatcher.prototype.get_opcodes = function() { return []; }340/** @constructor */341var CodeMirror = function() { }342CodeMirror.on = function(obj, type, handler) { }343CodeMirror.prototype = {344 addKeyMap: function(map) { },345 addLineClass: function(handle, where, cls) { },346 addLineWidget: function(handle, node, options) { },347 /**348 * @param {string|Object} spec349 * @param {Object=} options350 */351 addOverlay: function(spec, options) { },352 addWidget: function(pos, node, scroll, vert, horiz) { },353 charCoords: function(pos, mode) { },354 clearGutter: function(gutterID) { },355 clearHistory: function() { },356 clipPos: function(pos) { },357 coordsChar: function(coords, mode) { },358 cursorCoords: function(start, mode) { },359 defaultCharWidth: function() { },360 defaultTextHeight: function() { },361 deleteH: function(dir, unit) { },362 eachLine: function(from, to, op) { },363 execCommand: function(cmd) { },364 extendSelection: function(from, to) { },365 findMarksAt: function(pos) { },366 findMatchingBracket: function() { },367 findPosH: function(from, amount, unit, visually) { },368 findPosV: function(from, amount, unit, goalColumn) { },369 firstLine: function() { },370 focus: function() { },371 getAllMarks: function() { },372 /** @param {string=} start */373 getCursor: function(start) { },374 getDoc: function() { },375 getGutterElement: function() { },376 getHistory: function() { },377 getInputField: function(){ },378 getLine: function(line) { },379 /**380 * @return {{wrapClass: string}}381 */382 getLineHandle: function(line) { },383 getLineNumber: function(line) { },384 getMode: function() { },385 getOption: function(option) { },386 getRange: function(from, to, lineSep) { },387 /**388 * @return {{left: number, top: number, width: number, height: number, clientWidth: number, clientHeight: number}}389 */390 getScrollInfo: function() { },391 getScrollerElement: function() { },392 getSelection: function() { },393 getStateAfter: function(line) { },394 getTokenAt: function(pos) { },395 getValue: function(lineSep) { },396 getViewport: function() { },397 getWrapperElement: function() { },398 hasFocus: function() { },399 historySize: function() { },400 indentLine: function(n, dir, aggressive) { },401 indentSelection: function(how) { },402 indexFromPos: function(coords) { },403 isClean: function() { },404 iterLinkedDocs: function(f) { },405 lastLine: function() { },406 lineCount: function() { },407 lineInfo: function(line) { },408 /**409 * @param {number} height410 * @param {string=} mode411 */412 lineAtHeight: function(height, mode) { },413 linkedDoc: function(options) { },414 markClean: function() { },415 markText: function(from, to, options) { },416 moveH: function(dir, unit) { },417 moveV: function(dir, unit) { },418 off: function(type, f) { },419 on: function(type, f) { },420 operation: function(f) { },421 posFromIndex: function(off) { },422 redo: function() { },423 refresh: function() { },424 removeKeyMap: function(map) { },425 removeLine: function(line) { },426 removeLineClass: function(handle, where, cls) { },427 removeLineWidget: function(widget) { },428 removeOverlay: function(spec) { },429 replaceRange: function(code, from, to, origin) { },430 replaceSelection: function(code, collapse, origin) { },431 scrollIntoView: function(pos, margin) { },432 scrollTo: function(x, y) { },433 setBookmark: function(pos, options) { },434 setCursor: function(line, ch, extend) { },435 setExtending: function(val) { },436 setGutterMarker: function(line, gutterID, value) { },437 setHistory: function(histData) { },438 setLine: function(line, text) { },439 setOption: function(option, value) { },440 setSelection: function(anchor, head) { },441 setSize: function(width, height) { },442 setValue: function(code) { },443 somethingSelected: function() { },444 swapDoc: function(doc) { },445 undo: function() { },446 unlinkDoc: function(other) { }447}448/** @type {number} */449CodeMirror.prototype.lineCount;450CodeMirror.Pass;451CodeMirror.showHint = function(codeMirror, hintintFunction) { };452CodeMirror.commands = {};453CodeMirror.modes = {};454CodeMirror.mimeModes = {};455CodeMirror.getMode = function(options, spec) { };456CodeMirror.overlayMode = function(mode1, mode2, squashSpans) { };457CodeMirror.defineMode = function(modeName, modeConstructor) { };458CodeMirror.startState = function(mode) { };459/** @constructor */460CodeMirror.Pos = function(line, ch) { }461/** type {number} */462CodeMirror.Pos.prototype.line;463/** type {number} */464CodeMirror.Pos.prototype.ch;465/** @constructor */466CodeMirror.StringStream = function(line)467{468 this.pos = 0;469 this.start = 0;470}471CodeMirror.StringStream.prototype = {472 backUp: function (n) { },473 column: function () { },474 current: function () { },475 eat: function (match) { },476 eatSpace: function () { },477 eatWhile: function (match) { },478 eol: function () { },479 indentation: function () { },480 /**481 * @param {RegExp|string} pattern482 * @param {boolean=} consume483 * @param {boolean=} caseInsensitive484 */485 match: function (pattern, consume, caseInsensitive) { },486 next: function () { },487 peek: function () { },488 skipTo: function (ch) { },489 skipToEnd: function () { },490 sol: function () { }491}492/** @type {Object.<string, Object.<string, string>>} */493CodeMirror.keyMap;494WebInspector.suggestReload = function() { }495WebInspector.reload = function() { }496WebInspector.settings.continuousPainting = /** type {WebInspector.Setting} */ { }497WebInspector.settings.showDebugBorders = /** type {WebInspector.Setting} */ { }498WebInspector.settings.showScrollBottleneckRects = /** type {WebInspector.Setting} */ { }499WebInspector.settings.forceCompositingMode = /** type {WebInspector.Setting} */ { }500WebInspector.settings.showFPSCounter = /** type {WebInspector.Setting} */ { }501WebInspector.settings.showPaintRects = /** type {WebInspector.Setting} */ { }502/** @type {boolean} */503window.dispatchStandaloneTestRunnerMessages;...

Full Screen

Full Screen

chromeDebuggerRemote.js

Source:chromeDebuggerRemote.js Github

copy

Full Screen

1/* Machine generated from inspector/Inspector.json version: 0.1 on Mon Jan 23 2012 14:06:29 GMT-0800 (PST) */2(function (definition) {3 // This file will function properly as a <script> tag, or a module4 // using CommonJS and NodeJS or RequireJS module formats. In5 // Common/Node/RequireJS, the module exports the chromeDebuggerRemote API and when6 // executed as a simple <script>, it chromeDebuggerRemote a Q global instead.7 // RequireJS8 if (typeof define === 'function') {9 define([], definition);10 // CommonJS11 } else if (typeof exports === 'object') {12 definition(exports);13 // <script>, create global14 } else {15 definition(chromeDebuggerRemote = {});16 }17}(function (ignoredRequire, exports) {18var chromeDebuggerRemote = exports;19chromeDebuggerRemote.version = 0.1;20/* unsupported */ 21chromeDebuggerRemote.Inspector = {22 commands: {23 enable: function(){},24 disable: function(){},25 },26 events: {27 evaluateForTestInFrontend: function(testCallId, script) {},28 inspect: function(object, hints) {},29 didCreateWorker: function(id, url, isShared) {},30 didDestroyWorker: function(id) {},31 }32};33/* unsupported */ 34chromeDebuggerRemote.Memory = {35 commands: {36 getDOMNodeCount: /*count */ function(){},37 },38};39chromeDebuggerRemote.Page = {40 commands: {41 enable: function(){},42 disable: function(){},43 /* unsupported */ addScriptToEvaluateOnLoad: /*identifier */ function(scriptSource){},44 /* unsupported */ removeScriptToEvaluateOnLoad: function(identifier){},45 reload: function(ignoreCache, scriptToEvaluateOnLoad){},46 /* unsupported */ open: function(url, newWindow){},47 /* unsupported */ getCookies: /*cookies,cookiesString */ function(){},48 /* unsupported */ deleteCookie: function(cookieName, domain){},49 /* unsupported */ getResourceTree: /*frameTree */ function(){},50 /* unsupported */ getResourceContent: /*content,base64Encoded */ function(frameId, url){},51 /* unsupported */ searchInResource: /*result */ function(frameId, url, query, caseSensitive, isRegex){},52 /* unsupported */ searchInResources: /*result */ function(text, caseSensitive, isRegex){},53 },54 events: {55 domContentEventFired: function(timestamp) {},56 loadEventFired: function(timestamp) {},57 /* unsupported */ frameNavigated: function(frame) {},58 /* unsupported */ frameDetached: function(frameId) {},59 }60};61chromeDebuggerRemote.Runtime = {62 commands: {63 evaluate: /*result,wasThrown */ function(expression, objectGroup, includeCommandLineAPI, doNotPauseOnExceptions, frameId, returnByValue){},64 callFunctionOn: /*result,wasThrown */ function(objectId, functionDeclaration, arguments, returnByValue){},65 getProperties: /*result */ function(objectId, ownProperties){},66 releaseObject: function(objectId){},67 releaseObjectGroup: function(objectGroup){},68 /* unsupported */ run: function(){},69 },70};71chromeDebuggerRemote.Console = {72 commands: {73 enable: function(){},74 disable: function(){},75 clearMessages: function(){},76 /* unsupported */ setMonitoringXHREnabled: function(enabled){},77 /* unsupported */ addInspectedNode: function(nodeId){},78 },79 events: {80 messageAdded: function(message) {},81 messageRepeatCountUpdated: function(count) {},82 messagesCleared: function() {},83 }84};85chromeDebuggerRemote.Network = {86 commands: {87 enable: function(){},88 disable: function(){},89 setUserAgentOverride: function(userAgent){},90 setExtraHTTPHeaders: function(headers){},91 getResponseBody: /*body,base64Encoded */ function(requestId){},92 canClearBrowserCache: /*result */ function(){},93 clearBrowserCache: function(){},94 canClearBrowserCookies: /*result */ function(){},95 clearBrowserCookies: function(){},96 setCacheDisabled: function(cacheDisabled){},97 },98 events: {99 requestWillBeSent: function(requestId, frameId, loaderId, documentURL, request, timestamp, initiator, stackTrace, redirectResponse) {},100 requestServedFromCache: function(requestId) {},101 responseReceived: function(requestId, frameId, loaderId, timestamp, type, response) {},102 dataReceived: function(requestId, timestamp, dataLength, encodedDataLength) {},103 loadingFinished: function(requestId, timestamp) {},104 loadingFailed: function(requestId, timestamp, errorText, canceled) {},105 requestServedFromMemoryCache: function(requestId, frameId, loaderId, documentURL, timestamp, initiator, resource) {},106 /* unsupported */ webSocketWillSendHandshakeRequest: function(requestId, timestamp, request) {},107 /* unsupported */ webSocketHandshakeResponseReceived: function(requestId, timestamp, response) {},108 /* unsupported */ webSocketCreated: function(requestId, url) {},109 /* unsupported */ webSocketClosed: function(requestId, timestamp) {},110 }111};112/* unsupported */ 113chromeDebuggerRemote.Database = {114 commands: {115 enable: function(){},116 disable: function(){},117 getDatabaseTableNames: /*tableNames */ function(databaseId){},118 executeSQL: /*success,transactionId */ function(databaseId, query){},119 },120 events: {121 addDatabase: function(database) {},122 sqlTransactionSucceeded: function(transactionId, columnNames, values) {},123 sqlTransactionFailed: function(transactionId, sqlError) {},124 }125};126/* unsupported */ 127chromeDebuggerRemote.DOMStorage = {128 commands: {129 enable: function(){},130 disable: function(){},131 getDOMStorageEntries: /*entries */ function(storageId){},132 setDOMStorageItem: /*success */ function(storageId, key, value){},133 removeDOMStorageItem: /*success */ function(storageId, key){},134 },135 events: {136 addDOMStorage: function(storage) {},137 updateDOMStorage: function(storageId) {},138 }139};140/* unsupported */ 141chromeDebuggerRemote.ApplicationCache = {142 commands: {143 getFramesWithManifests: /*frameIds */ function(){},144 enable: function(){},145 getManifestForFrame: /*manifestURL */ function(frameId){},146 getApplicationCacheForFrame: /*applicationCache */ function(frameId){},147 },148 events: {149 applicationCacheStatusUpdated: function(frameId, manifestURL, status) {},150 networkStateUpdated: function(isNowOnline) {},151 }152};153/* unsupported */ 154chromeDebuggerRemote.FileSystem = {155 commands: {156 enable: function(){},157 disable: function(){},158 },159};160chromeDebuggerRemote.DOM = {161 commands: {162 getDocument: /*root */ function(){},163 requestChildNodes: function(nodeId){},164 querySelector: /*nodeId */ function(nodeId, selector){},165 querySelectorAll: /*nodeIds */ function(nodeId, selector){},166 setNodeName: /*nodeId */ function(nodeId, name){},167 setNodeValue: function(nodeId, value){},168 removeNode: function(nodeId){},169 setAttributeValue: function(nodeId, name, value){},170 setAttributesAsText: function(nodeId, text, name){},171 removeAttribute: function(nodeId, name){},172 /* unsupported */ getEventListenersForNode: /*listeners */ function(nodeId){},173 /* unsupported */ copyNode: function(nodeId){},174 getOuterHTML: /*outerHTML */ function(nodeId){},175 setOuterHTML: /*nodeId */ function(nodeId, outerHTML){},176 /* unsupported */ performSearch: /*searchId,resultCount */ function(query){},177 /* unsupported */ getSearchResults: /*nodeIds */ function(searchId, fromIndex, toIndex){},178 /* unsupported */ discardSearchResults: function(searchId){},179 requestNode: /*nodeId */ function(objectId){},180 /* unsupported */ setInspectModeEnabled: function(enabled, highlightConfig){},181 highlightRect: function(x, y, width, height, color, outlineColor){},182 highlightNode: function(nodeId, highlightConfig){},183 hideHighlight: function(){},184 /* unsupported */ highlightFrame: function(frameId, contentColor, contentOutlineColor){},185 /* unsupported */ pushNodeByPathToFrontend: /*nodeId */ function(path){},186 resolveNode: /*object */ function(nodeId, objectGroup){},187 getAttributes: /*attributes */ function(nodeId){},188 moveTo: /*nodeId */ function(nodeId, targetNodeId, insertBeforeNodeId){},189 },190 events: {191 documentUpdated: function() {},192 setChildNodes: function(parentId, nodes) {},193 attributeModified: function(nodeId, name, value) {},194 attributeRemoved: function(nodeId, name) {},195 /* unsupported */ inlineStyleInvalidated: function(nodeIds) {},196 characterDataModified: function(nodeId, characterData) {},197 childNodeCountUpdated: function(nodeId, childNodeCount) {},198 childNodeInserted: function(parentNodeId, previousNodeId, node) {},199 childNodeRemoved: function(parentNodeId, nodeId) {},200 }201};202/* unsupported */ 203chromeDebuggerRemote.CSS = {204 commands: {205 enable: function(){},206 disable: function(){},207 getMatchedStylesForNode: /*matchedCSSRules,pseudoElements,inherited */ function(nodeId, forcedPseudoClasses, includePseudo, includeInherited){},208 getInlineStylesForNode: /*inlineStyle,styleAttributes */ function(nodeId){},209 getComputedStyleForNode: /*computedStyle */ function(nodeId, forcedPseudoClasses){},210 getAllStyleSheets: /*headers */ function(){},211 getStyleSheet: /*styleSheet */ function(styleSheetId){},212 getStyleSheetText: /*text */ function(styleSheetId){},213 setStyleSheetText: function(styleSheetId, text){},214 setPropertyText: /*style */ function(styleId, propertyIndex, text, overwrite){},215 toggleProperty: /*style */ function(styleId, propertyIndex, disable){},216 setRuleSelector: /*rule */ function(ruleId, selector){},217 addRule: /*rule */ function(contextNodeId, selector){},218 getSupportedCSSProperties: /*cssProperties */ function(){},219 startSelectorProfiler: function(){},220 stopSelectorProfiler: /*profile */ function(){},221 },222 events: {223 mediaQueryResultChanged: function() {},224 }225};226chromeDebuggerRemote.Timeline = {227 commands: {228 start: function(maxCallStackDepth){},229 stop: function(){},230 },231 events: {232 eventRecorded: function(record) {},233 }234};235chromeDebuggerRemote.Debugger = {236 commands: {237 /* unsupported */ causesRecompilation: /*result */ function(){},238 /* unsupported */ supportsNativeBreakpoints: /*result */ function(){},239 enable: function(){},240 disable: function(){},241 setBreakpointsActive: function(active){},242 setBreakpointByUrl: /*breakpointId,locations */ function(lineNumber, url, urlRegex, columnNumber, condition){},243 setBreakpoint: /*breakpointId,actualLocation */ function(location, condition){},244 removeBreakpoint: function(breakpointId){},245 continueToLocation: function(location){},246 stepOver: function(){},247 stepInto: function(){},248 stepOut: function(){},249 pause: function(){},250 resume: function(){},251 searchInContent: /*result */ function(scriptId, query, caseSensitive, isRegex){},252 canSetScriptSource: /*result */ function(){},253 setScriptSource: /*callFrames,result */ function(scriptId, scriptSource, preview){},254 getScriptSource: /*scriptSource */ function(scriptId){},255 getFunctionLocation: /*location */ function(functionId){},256 setPauseOnExceptions: function(state){},257 evaluateOnCallFrame: /*result,wasThrown */ function(callFrameId, expression, objectGroup, includeCommandLineAPI, returnByValue){},258 },259 events: {260 globalObjectCleared: function() {},261 scriptParsed: function(scriptId, url, startLine, startColumn, endLine, endColumn, isContentScript, sourceMapURL) {},262 scriptFailedToParse: function(url, scriptSource, startLine, errorLine, errorMessage) {},263 breakpointResolved: function(breakpointId, location) {},264 paused: function(callFrames, reason, data) {},265 resumed: function() {},266 }267};268chromeDebuggerRemote.DOMDebugger = {269 commands: {270 setDOMBreakpoint: function(nodeId, type){},271 removeDOMBreakpoint: function(nodeId, type){},272 setEventListenerBreakpoint: function(eventName){},273 removeEventListenerBreakpoint: function(eventName){},274 setXHRBreakpoint: function(url){},275 removeXHRBreakpoint: function(url){},276 },277};278/* unsupported */ 279chromeDebuggerRemote.Profiler = {280 commands: {281 causesRecompilation: /*result */ function(){},282 isSampling: /*result */ function(){},283 hasHeapProfiler: /*result */ function(){},284 enable: function(){},285 disable: function(){},286 start: function(){},287 stop: function(){},288 getProfileHeaders: /*headers */ function(){},289 getProfile: /*profile */ function(type, uid){},290 removeProfile: function(type, uid){},291 clearProfiles: function(){},292 takeHeapSnapshot: function(){},293 collectGarbage: function(){},294 getObjectByHeapObjectId: /*result */ function(objectId){},295 },296 events: {297 addProfileHeader: function(header) {},298 addHeapSnapshotChunk: function(uid, chunk) {},299 finishHeapSnapshot: function(uid) {},300 setRecordingProfile: function(isProfiling) {},301 resetProfiles: function() {},302 reportHeapSnapshotProgress: function(done, total) {},303 }304};305/* unsupported */ 306chromeDebuggerRemote.Worker = {307 commands: {308 setWorkerInspectionEnabled: function(value){},309 sendMessageToWorker: function(workerId, message){},310 connectToWorker: function(workerId){},311 disconnectFromWorker: function(workerId){},312 setAutoconnectToWorkers: function(value){},313 },314 events: {315 workerCreated: function(workerId, url, inspectorConnected) {},316 workerTerminated: function(workerId) {},317 dispatchMessageFromWorker: function(workerId, message) {},318 disconnectedFromWorker: function() {},319 }320};321return chromeDebuggerRemote;322/* copyright 2011 Google, inc. johnjbarton@google.com Google BSD License */323/* See https://github.com/johnjbarton/atopwi/blob/master/tailFeathers.html */...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1const fc = require("fast-check");2const { Function } = require("fast-check");3const { add } = require("./add");4const { subtract } = require("./subtract");5const { multiply } = require("./multiply");6const { divide } = require("./divide");7const { modulo } = require("./modulo");8const { power } = require("./power");9const { factorial } = require("./factorial");10const { fibonacci } = require("./fibonacci");11const { isEven } = require("./isEven");12const { isOdd } = require("./isOdd");13const { isPrime } = require("./isPrime");14const { isPerfectSquare } = require("./isPerfectSquare");15const { isPerfectCube } = require("./isPerfectCube");16const { isPerfectPower } = require("./isPerfectPower");17const { isPerfectNumber } = require("./isPerfectNumber");18const { isAbundantNumber } = require("./isAbundantNumber");19const { isDeficientNumber } = require("./isDeficientNumber");20const { isTriangularNumber } = require("./isTriangularNumber");21const { isSquareNumber } = require("./isSquareNumber");22const { isCubeNumber } = require("./isCubeNumber");23const { isPentagonalNumber } = require("./isPentagonalNumber");24const { isHexagonalNumber } = require("./isHexagonalNumber");25const { isHeptagonalNumber } = require("./isHeptagonalNumber");26const { isOctagonalNumber } = require("./isOctagonalNumber");27const { isNarcissisticNumber } = require("./isNarcissisticNumber");28const { isHappyNumber } = require("./isHappyNumber");29const { isPerfectNumber } = require("./isPerfectNumber");30const { isAbundantNumber } = require("./isAbundantNumber");31const { isDeficientNumber } = require("./isDeficientNumber");32const { isTriangularNumber } = require("./isTriangularNumber");33const { isSquareNumber } = require("./isSquareNumber");34const { isCubeNumber } = require("./isCubeNumber");35const { isPentagonalNumber } = require("./isPentagonalNumber");36const { isHexagonalNumber } = require("./isHexagonalNumber");37const { isHeptagonalNumber } = require("./isHeptagonalNumber");38const { isOctagonalNumber } = require("./isOctagonalNumber");39const {

Full Screen

Using AI Code Generation

copy

Full Screen

1const fc = require('fast-check');2const {Function} = require('fast-check-monorepo');3const {Function: Function2} = require('fast-check-monorepo');4const {Function: Function3} = require('fast-check-monorepo');5const {Function: Function4} = require('fast-check-monorepo');6const {Function: Function5} = require('fast-check-monorepo');7const {Function: Function6} = require('fast-check-monorepo');8const {Function: Function7} = require('fast-check-monorepo');9const {Function: Function8} = require('fast-check-monorepo');10const {Function: Function9} = require('fast-check-monorepo');11const {Function: Function10} = require('fast-check-monorepo');12const {Function: Function11} = require('fast-check-monorepo');13const {Function: Function12} = require('fast-check-monorepo');14const {Function: Function13} = require('fast-check-monorepo');15const {Function: Function14} = require('fast-check-monorepo');16const {Function: Function15} = require('fast-check-monorepo');17const {Function: Function16} = require('fast-check-monorepo');18const {Function: Function17} = require('fast-check-monorepo');19const {Function: Function18} = require('fast-check-monorepo');20const {Function: Function19} = require('fast-check-monorepo');21const {Function: Function20} = require('fast-check-monorepo');22const {Function: Function21} = require('fast-check-monorepo');23const {Function: Function22} = require('fast-check-monorepo');24const {Function: Function23} = require('fast-check-monorepo');25const {Function: Function24} = require('fast-check-monorepo');26const {Function: Function25} = require('fast-check-monorepo');27const {Function: Function26} = require('fast-check-monorepo');28const {Function: Function27} = require('fast-check-monorepo');29const {Function: Function28} = require('fast-check-monorepo');30const {Function: Function29} = require('fast-check-monorepo');31const {Function: Function30} = require('fast-check-monorepo');32const {Function: Function31} = require('fast-check-mon

Full Screen

Using AI Code Generation

copy

Full Screen

1const fc = require('fast-check');2const { Function } = require('fast-check');3const { expect } = require('chai');4describe('test3', () => {5 it('should pass', () => {6 const f = Function();7 const g = Function();8 const h = Function();9 const fgh = Function();10 const fgh2 = Function();11 const fgh3 = Function();12 const fgh4 = Function();13 const fgh5 = Function();14 const fgh6 = Function();15 const fgh7 = Function();16 const fgh8 = Function();17 const fgh9 = Function();18 const fgh10 = Function();19 const fgh11 = Function();20 const fgh12 = Function();21 const fgh13 = Function();22 const fgh14 = Function();23 const fgh15 = Function();24 const fgh16 = Function();25 const fgh17 = Function();26 const fgh18 = Function();27 const fgh19 = Function();28 const fgh20 = Function();29 const fgh21 = Function();30 const fgh22 = Function();31 const fgh23 = Function();32 const fgh24 = Function();33 const fgh25 = Function();34 const fgh26 = Function();35 const fgh27 = Function();36 const fgh28 = Function();37 const fgh29 = Function();38 const fgh30 = Function();39 const fgh31 = Function();40 const fgh32 = Function();41 const fgh33 = Function();42 const fgh34 = Function();43 const fgh35 = Function();44 const fgh36 = Function();45 const fgh37 = Function();46 const fgh38 = Function();47 const fgh39 = Function();48 const fgh40 = Function();49 const fgh41 = Function();50 const fgh42 = Function();51 const fgh43 = Function();52 const fgh44 = Function();53 const fgh45 = Function();54 const fgh46 = Function();55 const fgh47 = Function();56 const fgh48 = Function();57 const fgh49 = Function();58 const fgh50 = Function();59 const fgh51 = Function();60 const fgh52 = Function();61 const fgh53 = Function();62 const fgh54 = Function();

Full Screen

Using AI Code Generation

copy

Full Screen

1const fc = require('fast-check');2const { Function } = require('fast-check');3const { expect } = require('chai');4const { add } = require('./test2.js');5describe('add', () => {6 it('should return the sum of its two arguments', () => {7 fc.assert(8 fc.property(9 fc.integer(),10 fc.integer(),11 (a, b) => {12 expect(add(a, b)).to.equal(a + b);13 }14 );15 });16});17function add(a, b) {18 return a + b;19}20module.exports = { add };21{22 "scripts": {23 },24 "dependencies": {25 }26}27const fc = require('fast-check');28const { Function } = require('fast-check');29const { expect } = require('chai');30const { add } = require('./test2.js');31describe('add', () => {32 it('should return the sum of its two arguments', () => {33 fc.assert(34 fc.property(35 fc.integer(),36 fc.integer(),37 (a, b) => {38 expect(add(a, b)).to.equal(a + b);39 }40 );41 });42});43function add(a, b) {44 return a + b;45}46module.exports = { add };47{48 "scripts": {49 },50 "dependencies": {

Full Screen

Using AI Code Generation

copy

Full Screen

1const fc = require('fast-check');2function test3() {3 const arb = fc.integer(0, 100);4 const arb2 = fc.integer(0, 100);5 const arb3 = fc.integer(0, 100);6 const arb4 = fc.integer(0, 100);7 const arb5 = fc.integer(0, 100);8 const arb6 = fc.integer(0, 100);9 const arb7 = fc.integer(0, 100);10 const arb8 = fc.integer(0, 100);11 const arb9 = fc.integer(0, 100);12 const arb10 = fc.integer(0, 100);13 const arb11 = fc.integer(0, 100);14 const arb12 = fc.integer(0, 100);15 const arb13 = fc.integer(0, 100);16 const arb14 = fc.integer(0, 100);17 const arb15 = fc.integer(0, 100);18 const arb16 = fc.integer(0, 100);19 const arb17 = fc.integer(0, 100);20 const arb18 = fc.integer(0, 100);21 const arb19 = fc.integer(0, 100);22 const arb20 = fc.integer(0, 100);23 const arb21 = fc.integer(0, 100);24 const arb22 = fc.integer(0, 100);25 const arb23 = fc.integer(0, 100);26 const arb24 = fc.integer(0, 100);27 const arb25 = fc.integer(0, 100);28 const arb26 = fc.integer(0, 100);29 const arb27 = fc.integer(0, 100);30 const arb28 = fc.integer(0, 100);31 const arb29 = fc.integer(0, 100);32 const arb30 = fc.integer(0, 100);33 const arb31 = fc.integer(0, 100);34 const arb32 = fc.integer(0, 100);35 const arb33 = fc.integer(0, 100);36 const arb34 = fc.integer(0, 100);37 const arb35 = fc.integer(0, 100);38 const arb36 = fc.integer(0, 100);39 const arb37 = fc.integer(0, 100);

Full Screen

Using AI Code Generation

copy

Full Screen

1const fc = require('fast-check');2const { Function } = require('fast-check');3const { expect } = require('chai');4const add = (a, b) => a + b;5const testAdd = (a, b, c) => {6 expect(add(a, b)).to.equal(c);7};8const test = Function([Number, Number], Number).smap(9 (a, b) => [a, b, a + b],10 ([a, b, c]) => testAdd(a, b, c)11);12fc.assert(fc.property(test, () => true));13describe('Addition', () => {14 it('should add two numbers', () => {15 fc.assert(fc.property(test, () => true));16 });17});18test('Addition', () => {19 fc.assert(fc.property(test, () => true));20});21test('Addition', t => {22 fc.assert(fc.property(test, () => true));23});24it('Addition', () => {25 fc.assert(fc.property(test, () => true));26});27it('Addition', () => {28 fc.assert(fc.property(test, () => true));29});30test('Addition', () => {31 fc.assert(fc.property(test, () => true));32});33test('Addition', () => {34 fc.assert(fc.property(test, () => true));35});36it('Addition', () => {37 fc.assert(fc.property(test, () => true));38});39test('Addition', () => {40 fc.assert(fc.property(test, () => true));41});42test('Addition', () => {43 fc.assert(fc.property(test, () => true));44});45it('Addition', () => {46 fc.assert(fc.property(test

Full Screen

Using AI Code Generation

copy

Full Screen

1const fc = require('fast-check');2const { createFunction } = require('fast-check');3const { createProperty } = require('fast-check');4const { createInteger } = require('fast-check');5const { createString } = require('fast-check');6const { createBoolean } = require('fast-check');7const { createArray } = require('fast-check');8const { createTuple } = require('fast-check');9const { createObject } = require('fast-check');10const { createRecord } = require('fast-check');11const { createConstantFrom } = require('fast-check');12const { createConstant } = require('fast-check');13const { createConstantFrom } = require('fast-check');14const { createConstant } = require('fast-check');15const { createConstantFrom } = require('fast-check');16const { createConstant } = require('fast-check');17const { createConstantFrom } = require('fast-check');18const { createConstant } = require('fast-check');19const { createConstantFrom } = require('fast-check');20const { createConstant } = require('fast-check');21const { createConstantFrom } = require('fast-check');22const { createConstant } = require('fast-check');23const { createConstantFrom } = require('fast-check');24const { createConstant } = require('fast-check');25const { createConstantFrom } = require('fast-check');26const { createConstant } = require('fast-check');27const { createConstantFrom } = require('fast-check');28const { createConstant } = require('fast-check');29const { createConstantFrom } = require('fast-check');30const { createConstant } = require('fast-check');31const { createConstantFrom } = require('fast-check');32const { createConstant } = require('fast-check');33const { createConstantFrom } = require('fast-check');34const { createConstant } = require('fast-check');35const { createConstantFrom } = require('fast-check');36const { createConstant } = require('fast-check');37const { createConstantFrom } = require('fast-check');38const { createConstant } = require('fast-check');39const { createConstantFrom } = require('fast-check');40const { createConstant } = require('fast-check');41const { createConstantFrom } = require('fast-check');42const { createConstant } = require('fast-check');43const { createConstantFrom } = require('fast-check');44const { createConstant } = require('fast-check');

Full Screen

Using AI Code Generation

copy

Full Screen

1const { fc } = require('fast-check');2const { Function } = require('fast-check/lib/types/Function');3const add = (a, b) => a + b;4const arbFunction = Function({ domain: fc.integer(), codomain: fc.integer() });5const f = arbFunction.generate();6console.log(f(1, 2));7const g = arbFunction.generate();8console.log(g(1, 2));9const h = arbFunction.generate();10console.log(h(1, 2));11const i = arbFunction.generate();12console.log(i(1, 2));13const j = arbFunction.generate();14console.log(j(1, 2));15const k = arbFunction.generate();16console.log(k(1, 2));17const l = arbFunction.generate();18console.log(l(1, 2));19const m = arbFunction.generate();20console.log(m(1, 2));21const n = arbFunction.generate();22console.log(n(1, 2));23const o = arbFunction.generate();24console.log(o(1, 2));25const p = arbFunction.generate();26console.log(p(1, 2));27const q = arbFunction.generate();28console.log(q(1, 2));29const r = arbFunction.generate();30console.log(r(1, 2));

Full Screen

Using AI Code Generation

copy

Full Screen

1const {f1} = require('./test1.js');2const fc = require('fast-check');3describe('test3', () => {4 it('should pass', () => {5 fc.assert(6 fc.property(fc.integer(), fc.integer(), (a, b) => {7 return f1(a, b) === a + b;8 })9 );10 });11});12 ✓ should pass (15ms)

Full Screen

Using AI Code Generation

copy

Full Screen

1const fc = require('fast-check');2function test3() {3 function testFn(x) {4 return x + 1;5 }6 function testFn2(x) {7 return x * 2;8 }9 function testFn3(x, y) {10 return x + y;11 }

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run fast-check-monorepo automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful