svgedit/test/all_tests.js

9 lines
251 B
JavaScript

const iframes = document.querySelectorAll('iframe');
[...iframes].forEach((f) => {
f.addEventListener('load', () => {
f.contentWindow.QUnit.done(() => {
f.style.height = (f.contentDocument.body.scrollHeight + 20) + 'px';
});
});
});