+/*
+ * accordion unit tests
+ */
+(function($) {
+
module("accordion");
jQuery.ui.accordion.defaults.animated = false;
state(ac, 1, 0, 0);
ac.accordion("activate", $("#list1 a")[1]);
state(ac, 0, 1, 0);
-});
\ No newline at end of file
+});
+
+})(jQuery);
<h4>Run individual testsuites or doubleclick a test below</h4>
<ul>
<li><a href="accordion.html">Accordion</a></li>
+ <li><a href="dialog.html">Dialog</a></li>
+ <li><a href="draggable.html">Draggable</a></li>
+ <li><a href="resizable.html">Resizable</a></li>
+ <li><a href="selectable.html">Selectable</a></li>
<li><a href="slider.html">Slider</a></li>
</ul>
</div>
<div id="log"><div><strong>Log of the 2nd accordion</strong></div></div>
+
+ <div id="resizable1" style="background: green; width: 100px; height: 100px;">I'm a resizable.</div>
+ <img src="images/test.jpg" id="resizable2" style="width: 100px; height: 100px;"/>
+
+
+ <ul id="selectable1">
+ <li>Item 1</li>
+ <li>Item 2</li>
+ <li class="special">Item 3</li>
+ <li>Item 4</li>
+ <li>Item 5</li>
+ </ul>
+
</div>
</body>
</html>
\ No newline at end of file
/*\r
* dialog unit tests\r
*/\r
-\r
+(function($) {\r
//\r
// Dialog Test Helper Functions\r
//\r
+\r
var el,\r
offsetBefore, offsetAfter,\r
heightBefore, heightAfter,\r
});\r
\r
module("dialog: Tickets");\r
+\r
+})(jQuery);\r
/*
* draggable unit tests
*/
-
+(function($) {
//
// Draggable Test Helper Functions
//
equals(actual.top, expected.top, "10px margin. top");
});
+
+})(jQuery);
/*
* resizable tests
*/
+(function($) {
var drag = function(el, dx, dy, complete) {
equals( target.height(), 120, "compare height");
});
+
+})(jQuery);
/*\r
* selectable unit tests\r
*/\r
-\r
+(function($) {\r
//\r
// Selectable Test Helper Functions\r
//\r
});\r
\r
module("selectable: Tickets");\r
+\r
+})(jQuery);\r
+/*
+ * slider unit tests
+ */
+(function($) {
var keyCodes = {
leftArrow: 37,
var instance = $.data(slider[0], "slider")
equals(instance.handle.length, 2);
ok(instance.handle.jquery, "handle must be a jquery object")
-})
\ No newline at end of file
+})
+
+})(jQuery);