jquery-ui/tests/all_2.html

82 lines
2.5 KiB
HTML
Raw Normal View History

2008-09-20 17:42:04 +00:00
<!doctype html>
<html lang="en">
<head>
<title>jQuery UI All Tests</title>
<link rel="stylesheet" href="qunit/testsuite.css" type="text/css">
2008-09-20 17:42:04 +00:00
<script type="text/javascript" src="../jquery-1.2.6.js"></script>
<script type="text/javascript" src="../ui/ui.core.js"></script>
<script type="text/javascript">
var components = ["accordion","datepicker","dialog","draggable","progressbar","resizable","selectable","slider","sortable","tabs"];
2008-09-20 17:42:04 +00:00
2008-10-06 11:37:51 +00:00
$(function() {
2008-09-20 17:42:04 +00:00
var $list = $("#individual_list"),
$main = $("#main");
$.each(components, function(i, val){
$list.append('<li><a href="' + val + '.html">' + val + '</a></li>');
$('<div class="component_panel" id="' + val + '">').appendTo($main);
2008-10-06 11:37:51 +00:00
$('#' + val).load(val + '.html #main *');
2008-09-20 17:42:04 +00:00
});
loadScripts();
function loadScripts() {
if ( $("div.component_panel").length == components.length ) {
$.each(components, function(i, val){
2008-10-06 11:37:51 +00:00
$('head').append('<script type="text/javascript" src="' + val + '.js"></scr'+'ipt>');
2008-09-20 17:42:04 +00:00
});
} else {
2008-10-06 11:37:51 +00:00
setTimeout(loadScripts, 10);
2008-09-20 17:42:04 +00:00
}
}
2008-09-20 17:42:04 +00:00
});
2008-09-20 17:42:04 +00:00
</script>
<script type="text/javascript" src="../ui/ui.accordion.js"></script>
<script type="text/javascript" src="../ui/ui.datepicker.js"></script>
<script type="text/javascript" src="../ui/ui.dialog.js"></script>
<script type="text/javascript" src="../ui/ui.draggable.js"></script>
<script type="text/javascript" src="../ui/ui.droppable.js"></script>
<script type="text/javascript" src="../ui/ui.progressbar.js"></script>
<script type="text/javascript" src="../ui/ui.resizable.js"></script>
<script type="text/javascript" src="../ui/ui.selectable.js"></script>
<script type="text/javascript" src="../ui/ui.slider.js"></script>
<script type="text/javascript" src="../ui/ui.sortable.js"></script>
<script type="text/javascript" src="../ui/ui.tabs.js"></script>
2008-09-20 17:42:04 +00:00
<script type="text/javascript" src="qunit/testrunner.js"></script>
<script type="text/javascript" src="simulate/jquery.simulate.js"></script>
2008-10-06 11:37:51 +00:00
<script type="text/javascript" src="plugins/cookie/jquery.cookie.js"></script>
2008-09-20 17:42:04 +00:00
<style type="text/css">
2008-11-22 11:17:10 +00:00
@import "../themes/default/ui.datepicker.css";
2008-10-06 11:37:51 +00:00
.xerror, .error, .ui-tabs-hide {
display: none;
}
2008-09-20 17:42:04 +00:00
</style>
</head>
2008-11-22 11:17:10 +00:00
<body>
2008-09-20 17:42:04 +00:00
<h1>jQuery UI All Tests</h1>
<h2 id="banner"></h2>
<h2 id="userAgent"></h2>
<h4>Run individual testsuites or doubleclick a test below</h4>
<ul id="individual_list">
</ul>
<ol id="tests"></ol>
2008-10-06 11:37:51 +00:00
<div id="main" style="position:absolute; top:-2000000px;">
2008-09-20 17:42:04 +00:00
</div>
</body>
</html>