(path1, path2, results)
| 13 | QUnit.module('Path Boolean Operations'); |
| 14 | |
| 15 | function testOperations(path1, path2, results) { |
| 16 | compareBoolean(function() { return path1.unite(path2); }, results[0]); |
| 17 | compareBoolean(function() { return path2.unite(path1); }, results[0]); |
| 18 | compareBoolean(function() { return path1.subtract(path2); }, results[1]); |
| 19 | compareBoolean(function() { return path2.subtract(path1); }, results[2]); |
| 20 | compareBoolean(function() { return path1.intersect(path2); }, results[3]); |
| 21 | compareBoolean(function() { return path2.intersect(path1); }, results[3]); |
| 22 | compareBoolean(function() { return path1.exclude(path2); }, results[4]); |
| 23 | compareBoolean(function() { return path2.exclude(path1); }, results[4]); |
| 24 | } |
| 25 | |
| 26 | test('Boolean operations without crossings', function() { |
| 27 | var path1 = new Path.Rectangle({ |
no test coverage detected