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:
Brett Zamir
2018-05-17 12:57:51 +08:00
parent a3b3525789
commit fff77db4f1
24 changed files with 88 additions and 21 deletions

View File

@@ -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);
}