MCPcopy
hub / github.com/paperjs/paper.js / executeTest

Function executeTest

test/tests/Path_Boolean.js:362–390  ·  view source on GitHub ↗
(offset)

Source from the content-addressed store, hash-verified

360
361test('#865', function() {
362 function executeTest(offset) {
363 var p1 = new Path({
364 segments:[
365 [300, 100],
366 [300, 350],
367 [256.00000000000006, 350],
368 [256.00000000000006, 250],
369 [230, 224],
370 [256.00000000000006, 200],
371 [256.00000000000006, 100]
372 ],
373 closed:true
374 });
375 var p2 = new Path({
376 segments:[
377 [256, 150],
378 [256, 300],
379 [200, 300],
380 [200, 150]
381 ],
382 closed:true
383 });
384
385 p1.position = p1.position.add([offset, 0]);
386
387 compareBoolean(p1.subtract(p2),
388 'M300,100l0,250l-44,0l0,-250z',
389 'p1.subtract(p2); // with offset = ' + offset);
390 }
391 // Attempt different x-offsets since that produced different version of the
392 // issue:
393 executeTest(0);

Callers 1

Path_Boolean.jsFile · 0.85

Calls 1

compareBooleanFunction · 0.85

Tested by

no test coverage detected