Files
svgedit/test/all_tests.js
Brett Zamir fff77db4f1 Test summary: two tests failing: draw.js (releaseId), svgedit.recalculate (text w/tspan with simple translate)
- Testing: Add node-static to get tests working
- Testing: Fix timing for ensuring expanding iframe size to fit content
- Testing: Add favicon to test files
- Refactoring: Move scripts to own files and lint
2018-05-17 12:57:51 +08:00

13 lines
358 B
JavaScript

/* eslint-disable no-var */
var iframes = document.getElementsByTagName('iframe');
for (var i = 0, len = iframes.length; i < len; ++i) {
var f = iframes[i];
(function (f) {
f.addEventListener('load', function () {
f.contentWindow.QUnit.done = function () {
f.style.height = (f.contentDocument.body.scrollHeight + 20) + 'px';
};
});
})(f);
}