1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>QUnit Test Suite</title>
<link type="text/css" rel="stylesheet" href="qunit/qunit.css" media="all" />
<!-- libs -->
<script type="text/javascript" src="../src/class.js"></script>
<script type="text/javascript">
var Classy = Class.noConflict();
</script>
<script type="text/javascript" src="libs/jquery.min.js"></script>
<script type="text/javascript" src="libs/mootools.min.js"></script>
<script type="text/javascript" src="libs/prototype.min.js"></script>
</head>
<body>
<script type="text/javascript">
var Tester = new Classy({
initialize: function (message) {
this.message = message;
// show message on dom
document.write(message);
},
back: function () {
(this.message && this.message !== '') ? alert('Test SUCCEEDED') : alert('Test FAILED');
var modal = confirm('Do you want to go back to the tests overview?');
if(modal) window.location.href = '../tests/';
}
});
var test = new Tester('no conflicts');
test.back();
</script>
</body>
</html>
|