mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Add test for numeric SVG ID import
This commit is contained in:
parent
d0328d4571
commit
3e4927f6be
1 changed files with 10 additions and 0 deletions
|
@ -168,6 +168,16 @@ test('Import SVG string with leading line-breaks', function() {
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('Import SVG with numeric ID', function() {
|
||||||
|
paper.project.importSVG(createSVG('circle', {
|
||||||
|
cx: 100,
|
||||||
|
cy: 100,
|
||||||
|
r: 50,
|
||||||
|
id: '1'
|
||||||
|
}));
|
||||||
|
ok(true, 'Imports SVG with a numeric element ID without throwing.');
|
||||||
|
});
|
||||||
|
|
||||||
function importSVG(assert, url, message, options) {
|
function importSVG(assert, url, message, options) {
|
||||||
var done = assert.async();
|
var done = assert.async();
|
||||||
project.importSVG(url, {
|
project.importSVG(url, {
|
||||||
|
|
Loading…
Reference in a new issue