silverstripe-framework/thirdparty/jquery-entwine/spec/SpecRunner.html
Hamish Friedlander 915ae1a966 Upgrade entwine to latest
Fixes issue where inspector used document.write
2012-08-20 11:26:11 +12:00

87 lines
3.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Jasmine Test Runner</title>
<link rel="stylesheet" type="text/css" href="../vendor/jasmine/jasmine.css">
<script type="text/javascript" src="../vendor/jasmine/jasmine.js"></script>
<script type="text/javascript" src="../vendor/jasmine/jasmine-html.js"></script>
<script type="text/javascript" src="../vendor/jasmine-dom/jasmine-dom-matchers.js"></script>
<script type="text/javascript" src="../vendor/jasmine-dom/jasmine-dom-fixtures.js"></script>
<script type="text/javascript">
versionarg = window.location.search.match(/version=([^&]+)/);
jQueryVersion = versionarg ? versionarg[1] : '1.8.0';
jQuerySource = 'local';
var jQuery;
document.write('<'+'script src="../vendor/jquery-'+jQueryVersion+'.js"'+'><'+'/script'+'>');
</script>
<script type="text/javascript">
if (!jQuery) {
jQuerySource = 'Google CDN';
document.write('<'+'script src="http://ajax.googleapis.com/ajax/libs/jquery/'+jQueryVersion+'/jquery.min.js"'+'><'+'/script'+'>');
}
</script>
<script src="../vendor/jquery.selector/jquery.class.js"></script>
<script src="../vendor/jquery.selector/jquery.selector.js"></script>
<script src="../vendor/jquery.selector/jquery.selector.specifity.js"></script>
<script src="../vendor/jquery.selector/jquery.selector.matches.js"></script>
<script src="../src/jquery.selector.affectedby.js"></script>
<script src="../src/jquery.entwine.js"></script>
<script src="../src/domevents/jquery.entwine.domevents.addrem.js"></script>
<script src="../src/domevents/jquery.entwine.domevents.maybechanged.js"></script>
<script src="../src/jquery.entwine.events.js"></script>
<script src="../src/jquery.entwine.eventcapture.js"></script>
<script src="../src/jquery.entwine.ctors.js"></script>
<script src="../src/jquery.entwine.addrem.js"></script>
<script src="../src/jquery.entwine.properties.js"></script>
<!-- include spec files here... -->
<script type="text/javascript" src="spec.entwine.basics.js"></script>
<script type="text/javascript" src="spec.entwine.eventcapture.js"></script>
<script type="text/javascript" src="spec.entwine.ctors.js"></script>
<script type="text/javascript" src="spec.entwine.addrem.js"></script>
<script type="text/javascript" src="spec.entwine.events.js"></script>
<script type="text/javascript" src="spec.entwine.namespaces.js"></script>
<script type="text/javascript" src="spec.entwine.properties.js"></script>
<script type="text/javascript" src="spec.entwine.super.js"></script>
<script type="text/javascript" src="spec.entwine.synchronous.js"></script>
<style type="text/css">
#jqver {
margin: 0;
padding: 4px 15px;
}
#jqver.error {
padding: 4px 13px;
border: 2px solid red;
}
</style>
</head>
<body>
</body>
<script type="text/javascript">
if (!jQuery) {
document.body.innerHTML = '<h4 id="jqver" class="error">jQuery version '+jQueryVersion+' not found</h4>';
}
else {
document.body.innerHTML = '<h4 id="jqver">jQuery version '+jQueryVersion+' ('+jQuerySource+')</h4>';
jasmine.getEnv().addReporter(new jasmine.TrivialReporter());
jasmine.getEnv().execute();
}
</script>
</html>