Add test for numeric SVG ID import

This commit is contained in:
adroitwhiz 2020-05-16 04:52:00 -04:00
parent d0328d4571
commit 3e4927f6be

View file

@ -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) {
var done = assert.async();
project.importSVG(url, {