Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
63 lines
1.7 KiB
HTML
Executable file
63 lines
1.7 KiB
HTML
Executable file
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|
<title>Serve the tests</title>
|
|
|
|
<style type="text/css" media="all">
|
|
html,body,iframe {
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
</style>
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
(function(window){
|
|
var Loader = window.CommonResourceLoader = {},
|
|
host = document.location.host,
|
|
domain = host.replace(/(^[\w\d-]+\.)?([\w\d]+\.[a-z]+)/, '$2');
|
|
|
|
Loader.domain = document.location.protocol + '//' + domain;
|
|
Loader.url = function(url){
|
|
return this.domain + url;
|
|
}
|
|
|
|
Loader.script = function(url, doc){
|
|
doc = doc || document;
|
|
doc.write('<script type="application/javascript;version=1.8" src="' + this.url(url) + '"><\/script>');
|
|
return this;
|
|
};
|
|
|
|
Loader.stylesheet = function(url, doc){
|
|
doc = doc || document;
|
|
doc.write('<link rel="stylesheet" type="text/css" href="' + this.url(url) + '">');
|
|
return this;
|
|
};
|
|
}(this));
|
|
|
|
CommonResourceLoader
|
|
.stylesheet('/common/vendor/test-agent/test-agent.css')
|
|
.stylesheet('/common/vendor/mocha/mocha.css');
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<!-- Test Agent UI will be loaded in here -->
|
|
<div id="test-agent-ui">
|
|
</div>
|
|
|
|
<div id="mocha">
|
|
</div>
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
CommonResourceLoader
|
|
.script('/common/vendor/mocha/mocha.js')
|
|
.script('/common/vendor/sinon/sinon.js')
|
|
.script('/common/vendor/test-agent/test-agent.js')
|
|
.script('/common/test/test-url-resolver.js')
|
|
.script('/common/test/agent.js');
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|