mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Fix CompoundPath test and add it to load.js so it actually gets tested.
This commit is contained in:
parent
c9d0f982c2
commit
0fd8c4e046
2 changed files with 4 additions and 4 deletions
|
@ -99,12 +99,13 @@ if (window.tests) {
|
||||||
'test/tests/Group.js',
|
'test/tests/Group.js',
|
||||||
'test/tests/Segment.js',
|
'test/tests/Segment.js',
|
||||||
'test/tests/Path.js',
|
'test/tests/Path.js',
|
||||||
|
'test/tests/PathStyle.js',
|
||||||
'test/tests/Path_Shapes.js',
|
'test/tests/Path_Shapes.js',
|
||||||
'test/tests/Path_Drawing_Commands.js',
|
'test/tests/Path_Drawing_Commands.js',
|
||||||
'test/tests/Path_Curves.js',
|
'test/tests/Path_Curves.js',
|
||||||
'test/tests/Path_Bounds.js',
|
'test/tests/Path_Bounds.js',
|
||||||
'test/tests/Path_Length.js',
|
'test/tests/Path_Length.js',
|
||||||
'test/tests/PathStyle.js',
|
'test/tests/CompoundPath.js',
|
||||||
'test/tests/PlacedSymbol.js'
|
'test/tests/PlacedSymbol.js'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
module('Compound Path');
|
module('Compound Path');
|
||||||
|
|
||||||
test('moveTo / lineTo', function() {
|
test('moveTo / lineTo', function() {
|
||||||
var doc = new Document(canvas);
|
|
||||||
var path = new CompoundPath();
|
var path = new CompoundPath();
|
||||||
|
|
||||||
var lists = [
|
var lists = [
|
||||||
|
@ -20,5 +19,5 @@ test('moveTo / lineTo', function() {
|
||||||
|
|
||||||
equals(function() {
|
equals(function() {
|
||||||
return path.children.length;
|
return path.children.length;
|
||||||
}, 2));
|
}, 2);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue