From 9b667f5d9eda31661d767aa9b0f17cbae2b59fc4 Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Mon, 15 Feb 2021 11:55:28 -0500 Subject: [PATCH] Fix running of tests in browser --- test/index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/index.html b/test/index.html index 69bb3ade4..98cc66eb4 100644 --- a/test/index.html +++ b/test/index.html @@ -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);