MCPcopy
hub / github.com/playcanvas/engine / test

Function test

tests/qunit/jack.js:673–693  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

671 }
672 }
673 function test() {
674 var result = true;
675 if(constraints != null) {
676 if(constraints.length != arguments.length) {
677 result = false;
678 } else {
679 for (var i = 0; i < constraints.length; i++) {
680 var oneArgumentsConstraints = constraints[i];
681 if (oneArgumentsConstraints != null) {
682 for (var j = 0; j < oneArgumentsConstraints.length; j++) {
683 var constraint = oneArgumentsConstraints[j];
684 if (constraint && !constraint(arguments[i])) {
685 result = false;
686 }
687 }
688 }
689 }
690 }
691 }
692 return result;
693 }
694 function testTimes(times) {
695 if(timing.modifier == 0) {
696 return times == timing.expected;

Callers 15

test_graphnode.jsFile · 0.85
test_system.jsFile · 0.85
test_entity.jsFile · 0.85
test_pick.jsFile · 0.85
test_script.jsFile · 0.85
test_pack.jsFile · 0.85
test_livelink.jsFile · 0.85

Calls 1

constraintFunction · 0.85

Tested by

no test coverage detected