1
0
forked from jchomaz/Vulture

Tracking de l'application VApp (IHM du jeu)

This commit is contained in:
2025-05-11 18:04:12 +02:00
commit 89e9db9b62
17763 changed files with 3718499 additions and 0 deletions

37
VApp/node_modules/is-function/test.js generated vendored Normal file
View File

@@ -0,0 +1,37 @@
var test = require('tape')
var isFunction = require('./index.js')
test('isFunction', function (t) {
t.ok(!isFunction(), 'undefined is not a function')
t.ok(!isFunction(null), 'null is not a function')
t.ok(!isFunction(''), 'string is not a function')
t.ok(!isFunction(/a/), 'regex is not a function')
t.ok(!isFunction(true), 'true is not a function')
t.ok(!isFunction(false), 'false is not a function')
t.ok(!isFunction(NaN), 'NaN is not a function')
t.ok(!isFunction(42), '42 is not a function')
t.ok(isFunction(function () {}), 'function is a function')
t.ok(isFunction(setTimeout), 'setTimeout is a function')
t.end()
})
if (typeof window !== 'undefined') {
test('browser quirks', function (t) {
t.plan(2)
t.ok(isFunction(window.alert), 'alert is a function')
window.testRegExpFromIframe = function (regexp) {
t.ok(!isFunction(regexp))
}
var iframe = document.createElement('iframe')
document.body.appendChild(iframe)
iframe.contentWindow.document.write([
"<html><body><script type=\"text/javascript\">",
"parent.testRegExpFromIframe(/a/)",
"</script></body></html>"
].join("\n"));
})
}