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
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
/* eslint-disable no-var */
|
||||
window.setTimeout(function () {
|
||||
var iframes = document.getElementsByTagName('iframe');
|
||||
for (var i = 0, len = iframes.length; i < len; ++i) {
|
||||
var f = iframes[i];
|
||||
f.style.height = (f.contentDocument.body.scrollHeight + 20) + 'px';
|
||||
}
|
||||
}, 5000);
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user