Skip to content

Commit c752cd7

Browse files
committed
give the siblings case of svg-dos.js the time it takes in the suite
1 parent 91f87ee commit c752cd7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/svg-dos.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const timed = async (name, svg, limit = 5000) => {
4040
// an element with 140000 children: the walks over the tree pushed them with a spread, past the call stack's limit
4141
// (a bare RangeError for a 4 MB SVG); a LimitError or a render is the answer
4242
{
43-
const {error} = await timed('140000 siblings', `<svg ${NS} width="64" height="64"><g>${'<g/>'.repeat(140000)}</g></svg>`);
43+
const {error} = await timed('140000 siblings', `<svg ${NS} width="64" height="64"><g>${'<g/>'.repeat(140000)}</g></svg>`, 15000);
4444
if (error && (error.name !== 'LimitError')) panic(`140000 siblings: ${error.name}: ${error.message}`);
4545
}
4646
const {error} = await timed('80000 triangles', `<svg ${NS} width="100" height="100"><path d="${d}"/></svg>`);

0 commit comments

Comments
 (0)