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

Function test1

tests/framework/test_script.js:310–317  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

308 // check that script methods were called
309 // in the right order
310 function test1 (array) {
311 equal(array.length, 5);
312 equal(array[0], 'initialize');
313 equal(array[1], 'onEnable');
314 equal(array[2], 'postInitialize');
315 equal(array[3], 'update');
316 equal(array[4], 'postUpdate');
317 }
318
319 test1(e.methodsByA);
320 test1(e.methodsByB);

Callers 1

test_script.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected