mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Tinkering with Import.svg tests
This commit is contained in:
parent
205586bbbd
commit
c6840a0dbd
3 changed files with 14 additions and 16083 deletions
7842
dist/docs/resources/js/paper.js
vendored
7842
dist/docs/resources/js/paper.js
vendored
File diff suppressed because one or more lines are too long
8237
dist/paper.js
vendored
8237
dist/paper.js
vendored
File diff suppressed because one or more lines are too long
|
@ -12,11 +12,21 @@
|
|||
* Distributed under the MIT license. See LICENSE file for details.
|
||||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* This test file created by Stetson-Team-Alpha
|
||||
*/
|
||||
|
||||
module('ImportSVG');
|
||||
|
||||
/**
|
||||
*TODO: Create SVGs utilizing ImportSVG methods
|
||||
* WILL ADD MORE AFTER LEARNING SVG
|
||||
*/
|
||||
test('Make a circle', function()
|
||||
{
|
||||
var svgDocument = evt.target.ownerDocument;
|
||||
var svgcircle = svgDocument.createElementNS(svgns, "circle");
|
||||
svgCircle.setAttributeNS(null, "cx", 25);
|
||||
svgCircle.setAttributeNS(null, "cy", 25);
|
||||
svgCircle.setAttributeNS(null, "r", 20);
|
||||
svgCircle.setAttributeNS(null, "fill", "green");
|
||||
var circle = new ImportSVG(svgCircle)
|
||||
equals(circle);
|
||||
});
|
||||
/
|
||||
|
|
Loading…
Reference in a new issue