mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 05:30:35 +02:00
Fix running of tests in browser
This commit is contained in:
@@ -196,6 +196,9 @@
|
||||
var newScript;
|
||||
newScript = document.createElement('script');
|
||||
newScript.type = 'text/javascript';
|
||||
if (src.substr(0, 5) === 'spec/') {
|
||||
src = '../test/' + src;
|
||||
}
|
||||
newScript.src = src;
|
||||
newScript.onload = nextScript;
|
||||
document.getElementsByTagName('body')[0].appendChild(newScript);
|
||||
|
||||
Reference in New Issue
Block a user