travis-web/public/spec.html
Piotr Sarnacki 25079b8d79 Move hacks for phantomjs to spec.html
This ain't pretty, but I just want to see if it helps to fix specs on
phantomjs, I may move them to separate file and take into account in
Assetfile later.
2013-03-07 01:59:15 +01:00

70 lines
2.3 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta rel="travis.api_endpoint" href="">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Travis CI - Free Hosted Continuous Integration Platform for the Open Source Community</title>
<link rel="icon" type="image/png" href="/favicon.ico">
<script>
if (!Function.prototype.bind) {
Function.prototype.bind = function (oThis) {
if (typeof this !== "function") {
// closest thing possible to the ECMAScript 5 internal IsCallable function
throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");
}
var aArgs = Array.prototype.slice.call(arguments, 1),
fToBind = this,
fNOP = function () {},
fBound = function () {
return fToBind.apply(this instanceof fNOP && oThis
? this
: oThis,
aArgs.concat(Array.prototype.slice.call(arguments)));
};
fNOP.prototype = this.prototype;
fBound.prototype = new fNOP();
return fBound;
};
}
window.history.state = {};
var oldPushState = window.history.pushState;
window.history.pushState = function(state, title, href) {
window.history.state = state;
return oldPushState.apply(this, arguments);
};
</script>
<link rel="stylesheet" href="/styles/app.css">
<link rel="stylesheet" href="/styles/jasmine.css">
<link rel="stylesheet" href="/styles/jasmine-ext.css">
<script src="/scripts/app.js"></script>
<script>
window.testMode = true;
minispade.require('travis')
Travis.advanceReadiness()
</script>
<script src="/scripts/specs.js"></script>
</head>
<body>
<script>
window.cachedSearch = window.location.search;
//for(key in minispade.modules)
// if(key.match(/_spec$/))
// minispade.require(key);
var console_reporter = new jasmine.ConsoleReporter();
jasmine.getEnv().addReporter(new jasmine.HtmlReporter());
jasmine.getEnv().addReporter(console_reporter);
jasmine.getEnv().execute();
</script>
</body>
</html>