From 3e4927f6be431afc7106b8419ae4aa82216a007e Mon Sep 17 00:00:00 2001 From: adroitwhiz Date: Sat, 16 May 2020 04:52:00 -0400 Subject: [PATCH] Add test for numeric SVG ID import --- test/tests/SvgImport.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/tests/SvgImport.js b/test/tests/SvgImport.js index a8c1f145..94477b25 100644 --- a/test/tests/SvgImport.js +++ b/test/tests/SvgImport.js @@ -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, {