<!--
	To run via the operative testswarm project
-->
<!DOCTYPE html>
<html>
	<head>
		<title>Mocha</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<link rel="stylesheet" href="../../node_modules/mocha/mocha.css" />
	</head>
	<body>
		<div id="mocha"></div>
		<script src="../../vendor/Promise.js"></script>

		<script src="../../src/operative.js"></script>
		<script src="../../src/OperativeContext.js"></script>
		<script src="../../src/contexts/BrowserWorker.js"></script>
		<script src="../../src/contexts/Iframe.js"></script>
		
		<script src="../../node_modules/mocha/mocha.js"></script>
		<script src="../../node_modules/chai/chai.js"></script>
		<script src="/js/inject.js"></script>
		<script>
			mocha.setup('bdd');
			window.expect = chai.expect;
		</script>
		<script src="../operative.spec.js"></script>
		<script src="../operative.iframe.spec.js"></script>
		<script>
			mocha.run();
		</script>
	</body>
</html>

<!--
	To run via the operative testswarm project
-->
<!DOCTYPE html>
<html>
	<head>
		<title>Mocha</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<link rel="stylesheet" href="../../node_modules/mocha/mocha.css" />
	</head>
	<body>
		<div id="mocha"></div>
		<script src="../../vendor/Promise.js"></script>

		<script src="../../src/operative.js"></script>
		<script src="../../src/OperativeContext.js"></script>
		<script src="../../src/contexts/BrowserWorker.js"></script>
		<script src="../../src/contexts/Iframe.js"></script>

		<script>
			operative.setSelfURL('../../src/contexts/BrowserWorker.js');
		</script>
		
		<script src="../../node_modules/mocha/mocha.js"></script>
		<script src="../../node_modules/chai/chai.js"></script>
		<script src="/js/inject.js"></script>
		<script>
			mocha.setup('bdd');
			window.expect = chai.expect;
		</script>
		<script src="../operative.spec.js"></script>
		<script src="../operative.iframe.spec.js"></script>
		<script>
			mocha.run();
		</script>
	</body>
</html>

Make sure to set self URL in swarm runner
Make sure to set self URL in swarm runner
