FIX: Don't load JS via SCRIPT tag in QUnit mode

This commit is contained in:
Robin Ward
2017-05-31 15:31:24 -04:00
parent e22d88c91d
commit e66fa82f3a
3 changed files with 20 additions and 5 deletions

View File

@ -48,6 +48,7 @@ window.MessageBus.stop();
// Trick JSHint into allow document.write
var d = document;
d.write('<script src="/javascripts/ace/ace.js"></script>');
d.write('<div id="ember-testing-container"><div id="ember-testing"></div></div>');
d.write('<style>#ember-testing-container { position: absolute; background: white; bottom: 0; right: 0; width: 640px; height: 384px; overflow: auto; z-index: 9999; border: 1px solid #ccc; } #ember-testing { zoom: 50%; }</style>');