2010-03-12 03:18:34 +00:00
|
|
|
<!DOCTYPE html>
|
2008-06-04 02:34:33 +00:00
|
|
|
<html lang="en">
|
|
|
|
<head>
|
2010-03-12 03:18:34 +00:00
|
|
|
<meta charset="UTF-8" />
|
2008-06-04 02:34:33 +00:00
|
|
|
<title>jQuery UI Accordion Test Suite</title>
|
2008-11-18 02:55:25 +00:00
|
|
|
|
2010-02-25 11:09:39 +00:00
|
|
|
<link type="text/css" href="../../../themes/base/jquery.ui.accordion.css" rel="stylesheet" />
|
|
|
|
|
2010-02-16 02:39:57 +00:00
|
|
|
<script type="text/javascript" src="../../../jquery-1.4.2.js"></script>
|
2009-09-17 10:39:12 +00:00
|
|
|
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
|
2009-12-16 22:20:18 +00:00
|
|
|
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
|
2009-09-17 10:39:12 +00:00
|
|
|
<script type="text/javascript" src="../../../ui/jquery.ui.accordion.js"></script>
|
2008-11-18 02:55:25 +00:00
|
|
|
|
2010-02-25 11:09:39 +00:00
|
|
|
<link rel="stylesheet" href="../../../external/qunit.css" type="text/css"/>
|
|
|
|
<script type="text/javascript" src="../../../external/qunit.js"></script>
|
2009-08-10 09:38:14 +00:00
|
|
|
<script type="text/javascript" src="../../jquery.simulate.js"></script>
|
2009-09-11 18:30:23 +00:00
|
|
|
<script type="text/javascript" src="../testsuite.js"></script>
|
2008-06-04 02:34:33 +00:00
|
|
|
|
2010-04-03 15:08:45 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
$.ui.accordion.prototype.options.animated = false;
|
|
|
|
|
|
|
|
function state(accordion) {
|
|
|
|
var args = $.makeArray(arguments).slice(1);
|
|
|
|
var result = [];
|
|
|
|
$.each(args, function(i, n) {
|
2010-04-03 15:10:50 +00:00
|
|
|
result.push( accordion.find(".ui-accordion-content").eq(i).filter(function() {
|
|
|
|
return $(this).css("display") != "none"
|
|
|
|
}).length ? 1 : 0 );
|
2010-04-03 15:08:45 +00:00
|
|
|
});
|
|
|
|
same(args, result)
|
|
|
|
}
|
2010-04-13 08:13:13 +00:00
|
|
|
function equalHeights(accordion, min, max) {
|
|
|
|
var sizes = [];
|
|
|
|
accordion.find(".ui-accordion-content").each(function() {
|
|
|
|
sizes.push($(this).outerHeight());
|
|
|
|
});
|
|
|
|
ok( sizes[0] >= min && sizes[0] <= max, "must be within " + min + " and " + max + ", was " + sizes[0] );
|
|
|
|
same(sizes[0], sizes[1]);
|
|
|
|
same(sizes[0], sizes[2]);
|
|
|
|
}
|
2010-04-03 15:08:45 +00:00
|
|
|
</script>
|
2009-02-03 08:23:48 +00:00
|
|
|
<script type="text/javascript" src="accordion_core.js"></script>
|
|
|
|
<script type="text/javascript" src="accordion_defaults.js"></script>
|
|
|
|
<script type="text/javascript" src="accordion_events.js"></script>
|
|
|
|
<script type="text/javascript" src="accordion_methods.js"></script>
|
|
|
|
<script type="text/javascript" src="accordion_options.js"></script>
|
|
|
|
<script type="text/javascript" src="accordion_tickets.js"></script>
|
2009-09-15 21:27:32 +00:00
|
|
|
|
2010-08-29 15:21:39 +00:00
|
|
|
<script type="text/javascript" src="../swarminject.js"></script>
|
2009-09-15 21:27:32 +00:00
|
|
|
<style>
|
2010-02-25 11:09:39 +00:00
|
|
|
#main { font-size: 10pt; font-family: 'trebuchet ms', verdana, arial; }
|
2010-04-13 08:13:13 +00:00
|
|
|
#list, #list1 *, #navigation, #navigation * { margin: 0; padding: 0; font-size: 12px; }
|
2009-09-15 21:27:32 +00:00
|
|
|
</style>
|
2008-06-04 02:34:33 +00:00
|
|
|
</head>
|
2008-06-07 19:26:35 +00:00
|
|
|
<body>
|
|
|
|
|
2010-02-25 11:09:39 +00:00
|
|
|
<h1 id="qunit-header">jQuery UI Accordion Test Suite</h1>
|
|
|
|
<h2 id="qunit-banner"></h2>
|
|
|
|
<h2 id="qunit-userAgent"></h2>
|
|
|
|
<ol id="qunit-tests">
|
|
|
|
</ol>
|
|
|
|
|
|
|
|
<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
|
2008-06-04 02:34:33 +00:00
|
|
|
|
2010-03-27 07:01:41 +00:00
|
|
|
<div>
|
|
|
|
<div id="list1" class="foo">
|
|
|
|
<a class="bar">There is one obvious advantage:</a>
|
2010-04-12 14:44:37 +00:00
|
|
|
<div class="foo">
|
2010-03-27 07:01:41 +00:00
|
|
|
<p>
|
|
|
|
You've seen it coming!
|
|
|
|
<br/>
|
|
|
|
Buy now and get nothing for free!
|
|
|
|
<br/>
|
|
|
|
Well, at least no free beer. Perhaps a bear, if you can afford it.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<a class="bar">Now that you've got...</a>
|
2010-04-12 14:44:37 +00:00
|
|
|
<div class="foo">
|
2010-03-27 07:01:41 +00:00
|
|
|
<p>
|
|
|
|
your bear, you have to admit it!
|
|
|
|
<br/>
|
|
|
|
No, we aren't selling bears.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
We could talk about renting one.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<a class="bar">Rent one bear, ...</a>
|
2010-04-12 14:44:37 +00:00
|
|
|
<div class="foo">
|
2010-03-27 07:01:41 +00:00
|
|
|
<p>
|
|
|
|
get two for three beer.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
And now, for something completely different.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2008-06-21 16:16:59 +00:00
|
|
|
</div>
|
2008-06-04 02:34:33 +00:00
|
|
|
|
2009-08-11 18:58:03 +00:00
|
|
|
<div id="navigationWrapper">
|
2008-06-21 16:16:59 +00:00
|
|
|
<ul id="navigation">
|
|
|
|
<li>
|
2009-07-03 21:05:22 +00:00
|
|
|
<h2><a href="?p=1.1.1">Guitar</a></h2>
|
2008-06-21 16:16:59 +00:00
|
|
|
<ul>
|
|
|
|
<li><a href="?p=1.1.1.1">Electric</a></li>
|
|
|
|
<li><a href="?p=1.1.1.2">Acoustic</a></li>
|
|
|
|
<li><a href="?p=1.1.1.3">Amps</a></li>
|
|
|
|
<li><a href="?p=1.1.1.4">Effects</a></li>
|
|
|
|
<li><a href="?p=1.1.1.5">Accessories</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li>
|
2009-07-03 21:05:22 +00:00
|
|
|
<h2><a href="?p=1.1.2"><span>Bass</span></a></h2>
|
2008-06-21 16:16:59 +00:00
|
|
|
<ul>
|
|
|
|
<li><a href="?p=1.1.2.1">Electric</a></li>
|
|
|
|
<li><a href="?p=1.1.2.2">Acoustic</a></li>
|
|
|
|
<li><a href="?p=1.1.2.3">Amps</a></li>
|
|
|
|
<li><a href="?p=1.1.2.4">Effects</a></li>
|
|
|
|
<li><a href="?p=1.1.2.5">Accessories</a></li>
|
|
|
|
<li><a href="?p=1.1.2.5">Accessories</a></li>
|
|
|
|
<li><a href="?p=1.1.2.5">Accessories</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li>
|
2009-07-03 21:05:22 +00:00
|
|
|
<h2><a href="?p=1.1.3">Drums</a></h2>
|
2008-06-21 16:16:59 +00:00
|
|
|
<ul>
|
|
|
|
<li><a href="?p=1.1.3.2">Acoustic Drums</a></li>
|
|
|
|
<li><a href="?p=1.1.3.3">Electronic Drums</a></li>
|
|
|
|
<li><a href="?p=1.1.3.6">Accessories</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2009-08-11 18:58:03 +00:00
|
|
|
</div>
|
2008-11-18 02:55:25 +00:00
|
|
|
|
2008-06-04 02:34:33 +00:00
|
|
|
</div>
|
2008-06-07 19:26:35 +00:00
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|