diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tabs.html | 57 | ||||
-rw-r--r-- | tests/tabs.js | 21 |
2 files changed, 78 insertions, 0 deletions
diff --git a/tests/tabs.html b/tests/tabs.html new file mode 100644 index 000000000..4fbc06354 --- /dev/null +++ b/tests/tabs.html @@ -0,0 +1,57 @@ +<!doctype html> +<html lang="en"> +<head> + <title>jQuery UI Tabs Test Suite</title> + + <link rel="stylesheet" href="qunit/testsuite.css" type="text/css" media="screen"> + + <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" src="../ui/ui.tabs.js"></script> + + <script type="text/javascript" src="qunit/testrunner.js"></script> + <script type="text/javascript" src="simulate/jquery.simulate.js"></script> + + <script type="text/javascript" src="tabs.js"></script> + + <style type="text/css"> + + + + </style> + + + +</head> +<body> + +<h1 id="header">jQuery UI Tabs Test Suite</h1> +<h2 id="banner"></h2> +<h2 id="userAgent"></h2> + +<ol id="tests"></ol> + + <div id="main" style="position:absolute;top:-20000px"> + <div id="tabs1"> + <ul> + <li><a href="#fragment-1"><span>One</span></a></li> + <li><a href="#fragment-2"><span>Two</span></a></li> + <li><a href="#fragment-3"><span>Three</span></a></li> + </ul> + <div id="fragment-1"> + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. + </div> + <div id="fragment-2"> + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. + </div> + <div id="fragment-3"> + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. + </div> + </div> + </div> + +</body> +</html> diff --git a/tests/tabs.js b/tests/tabs.js new file mode 100644 index 000000000..653b04f6f --- /dev/null +++ b/tests/tabs.js @@ -0,0 +1,21 @@ +/* + * tabs unit tests + */ +(function($) { +// +// Tabs Test Helper Functions +// + + +// Tabs Tests +module("tabs"); + +test("init", function() { + expect(1); + + el = $("#tabs1").tabs(); + ok(true, '.tabs() called on element'); +}); + + +})(jQuery); |