Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
63
gaia/dev_apps/test-agent/test/index.html
Executable file
63
gaia/dev_apps/test-agent/test/index.html
Executable file
|
|
@ -0,0 +1,63 @@
|
|||
<!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>
|
||||
|
||||
Loading…
Reference in a new issue