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:
@@ -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>
|
||||
|
||||
8
editor/browser-not-supported.js
Normal file
8
editor/browser-not-supported.js
Normal 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);
|
||||
Reference in New Issue
Block a user