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

@@ -27,14 +27,6 @@
<a href="http://code.google.com/chrome/chromeframe/">Google Chrome Frame plugin</a>.</p>
</div>
<script>
/*globals $*/
var viewportHeight = window.innerHeight || ($(window).height() - 140);
var iframe = document.createElement('iframe');
iframe.style.width = '100%';
iframe.style.height = viewportHeight + 'px';
iframe.src = 'http://caniuse.com/#cats=SVG';
document.body.appendChild(iframe);
</script>
<script src="browser-not-supported.js"></script>
</body>
</html>

View File

@@ -0,0 +1,8 @@
/* eslint-disable no-var */
/* globals $ */
var viewportHeight = window.innerHeight || ($(window).height() - 140);
var iframe = document.createElement('iframe');
iframe.style.width = '100%';
iframe.style.height = viewportHeight + 'px';
iframe.src = 'http://caniuse.com/#cats=SVG';
document.body.appendChild(iframe);