Tests: Added test suites to run individual widget tests against all supported jQuery versions.

This commit is contained in:
Scott González 2011-08-02 20:41:50 -04:00
parent e15c32d067
commit bea74f2ae7
22 changed files with 623 additions and 2 deletions

View File

@ -0,0 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Accordion Test Suite</title>
<script src="../../../jquery-1.6.2.js"></script>
<link rel="stylesheet" href="../../../external/qunit.css">
<link rel="stylesheet" href="../subsuiteRunner.css">
<script src="../../../external/qunit.js"></script>
<script src="../subsuiteRunner.js"></script>
<script src="../subsuite.js"></script>
<script>
testAllVersions( "accordion" );
</script>
</head>
<body>
<h1 id="qunit-header">jQuery UI Accordion Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">
</div>
</body>
</html>

View File

@ -0,0 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Autocomplete Test Suite</title>
<script src="../../../jquery-1.6.2.js"></script>
<link rel="stylesheet" href="../../../external/qunit.css">
<link rel="stylesheet" href="../subsuiteRunner.css">
<script src="../../../external/qunit.js"></script>
<script src="../subsuiteRunner.js"></script>
<script src="../subsuite.js"></script>
<script>
testAllVersions( "autocomplete" );
</script>
</head>
<body>
<h1 id="qunit-header">jQuery UI Autocomplete Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">
</div>
</body>
</html>

View File

@ -0,0 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Button Test Suite</title>
<script src="../../../jquery-1.6.2.js"></script>
<link rel="stylesheet" href="../../../external/qunit.css">
<link rel="stylesheet" href="../subsuiteRunner.css">
<script src="../../../external/qunit.js"></script>
<script src="../subsuiteRunner.js"></script>
<script src="../subsuite.js"></script>
<script>
testAllVersions( "button" );
</script>
</head>
<body>
<h1 id="qunit-header">jQuery UI Button Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">
</div>
</body>
</html>

30
tests/unit/core/all.html Normal file
View File

@ -0,0 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Core Test Suite</title>
<script src="../../../jquery-1.6.2.js"></script>
<link rel="stylesheet" href="../../../external/qunit.css">
<link rel="stylesheet" href="../subsuiteRunner.css">
<script src="../../../external/qunit.js"></script>
<script src="../subsuiteRunner.js"></script>
<script src="../subsuite.js"></script>
<script>
testAllVersions( "core" );
</script>
</head>
<body>
<h1 id="qunit-header">jQuery UI Core Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">
</div>
</body>
</html>

View File

@ -0,0 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Datepicker Test Suite</title>
<script src="../../../jquery-1.6.2.js"></script>
<link rel="stylesheet" href="../../../external/qunit.css">
<link rel="stylesheet" href="../subsuiteRunner.css">
<script src="../../../external/qunit.js"></script>
<script src="../subsuiteRunner.js"></script>
<script src="../subsuite.js"></script>
<script>
testAllVersions( "datepicker" );
</script>
</head>
<body>
<h1 id="qunit-header">jQuery UI Datepicker Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">
</div>
</body>
</html>

View File

@ -0,0 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Dialog Test Suite</title>
<script src="../../../jquery-1.6.2.js"></script>
<link rel="stylesheet" href="../../../external/qunit.css">
<link rel="stylesheet" href="../subsuiteRunner.css">
<script src="../../../external/qunit.js"></script>
<script src="../subsuiteRunner.js"></script>
<script src="../subsuite.js"></script>
<script>
testAllVersions( "dialog" );
</script>
</head>
<body>
<h1 id="qunit-header">jQuery UI Dialog Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">
</div>
</body>
</html>

View File

@ -0,0 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Draggable Test Suite</title>
<script src="../../../jquery-1.6.2.js"></script>
<link rel="stylesheet" href="../../../external/qunit.css">
<link rel="stylesheet" href="../subsuiteRunner.css">
<script src="../../../external/qunit.js"></script>
<script src="../subsuiteRunner.js"></script>
<script src="../subsuite.js"></script>
<script>
testAllVersions( "draggable" );
</script>
</head>
<body>
<h1 id="qunit-header">jQuery UI Draggable Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">
</div>
</body>
</html>

View File

@ -0,0 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Droppable Test Suite</title>
<script src="../../../jquery-1.6.2.js"></script>
<link rel="stylesheet" href="../../../external/qunit.css">
<link rel="stylesheet" href="../subsuiteRunner.css">
<script src="../../../external/qunit.js"></script>
<script src="../subsuiteRunner.js"></script>
<script src="../subsuite.js"></script>
<script>
testAllVersions( "droppable" );
</script>
</head>
<body>
<h1 id="qunit-header">jQuery UI Droppable Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">
</div>
</body>
</html>

View File

@ -0,0 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Effects Test Suite</title>
<script src="../../../jquery-1.6.2.js"></script>
<link rel="stylesheet" href="../../../external/qunit.css">
<link rel="stylesheet" href="../subsuiteRunner.css">
<script src="../../../external/qunit.js"></script>
<script src="../subsuiteRunner.js"></script>
<script src="../subsuite.js"></script>
<script>
testAllVersions( "effects" );
</script>
</head>
<body>
<h1 id="qunit-header">jQuery UI Effects Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">
</div>
</body>
</html>

View File

@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>jQuery UI Core Test Suite</title> <title>jQuery UI Effects Test Suite</title>
<script src="../../jquery.js"></script> <script src="../../jquery.js"></script>
<script> <script>
@ -93,7 +93,7 @@
<h2>Child Element Test</h2> <h2>Child Element Test</h2>
</div> </div>
<div class="relWidth relHeight testAddBorder"> <div class="relWidth relHeight testAddBorder">
<h2>Slide with relative width</d2> <h2>Slide with relative width</h2>
</div> </div>
<div class="testScale"> <div class="testScale">
</div> </div>

30
tests/unit/menu/all.html Normal file
View File

@ -0,0 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Menu Test Suite</title>
<script src="../../../jquery-1.6.2.js"></script>
<link rel="stylesheet" href="../../../external/qunit.css">
<link rel="stylesheet" href="../subsuiteRunner.css">
<script src="../../../external/qunit.js"></script>
<script src="../subsuiteRunner.js"></script>
<script src="../subsuite.js"></script>
<script>
testAllVersions( "menu" );
</script>
</head>
<body>
<h1 id="qunit-header">jQuery UI Menu Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">
</div>
</body>
</html>

View File

@ -0,0 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Position Test Suite</title>
<script src="../../../jquery-1.6.2.js"></script>
<link rel="stylesheet" href="../../../external/qunit.css">
<link rel="stylesheet" href="../subsuiteRunner.css">
<script src="../../../external/qunit.js"></script>
<script src="../subsuiteRunner.js"></script>
<script src="../subsuite.js"></script>
<script>
testAllVersions( "position" );
</script>
</head>
<body>
<h1 id="qunit-header">jQuery UI Position Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">
</div>
</body>
</html>

View File

@ -0,0 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Progressbar Test Suite</title>
<script src="../../../jquery-1.6.2.js"></script>
<link rel="stylesheet" href="../../../external/qunit.css">
<link rel="stylesheet" href="../subsuiteRunner.css">
<script src="../../../external/qunit.js"></script>
<script src="../subsuiteRunner.js"></script>
<script src="../subsuite.js"></script>
<script>
testAllVersions( "progressbar" );
</script>
</head>
<body>
<h1 id="qunit-header">jQuery UI Progressbar Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">
</div>
</body>
</html>

View File

@ -0,0 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Resizable Test Suite</title>
<script src="../../../jquery-1.6.2.js"></script>
<link rel="stylesheet" href="../../../external/qunit.css">
<link rel="stylesheet" href="../subsuiteRunner.css">
<script src="../../../external/qunit.js"></script>
<script src="../subsuiteRunner.js"></script>
<script src="../subsuite.js"></script>
<script>
testAllVersions( "resizable" );
</script>
</head>
<body>
<h1 id="qunit-header">jQuery UI Resizable Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">
</div>
</body>
</html>

View File

@ -0,0 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Selectable Test Suite</title>
<script src="../../../jquery-1.6.2.js"></script>
<link rel="stylesheet" href="../../../external/qunit.css">
<link rel="stylesheet" href="../subsuiteRunner.css">
<script src="../../../external/qunit.js"></script>
<script src="../subsuiteRunner.js"></script>
<script src="../subsuite.js"></script>
<script>
testAllVersions( "selectable" );
</script>
</head>
<body>
<h1 id="qunit-header">jQuery UI Selectable Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">
</div>
</body>
</html>

View File

@ -0,0 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Slider Test Suite</title>
<script src="../../../jquery-1.6.2.js"></script>
<link rel="stylesheet" href="../../../external/qunit.css">
<link rel="stylesheet" href="../subsuiteRunner.css">
<script src="../../../external/qunit.js"></script>
<script src="../subsuiteRunner.js"></script>
<script src="../subsuite.js"></script>
<script>
testAllVersions( "slider" );
</script>
</head>
<body>
<h1 id="qunit-header">jQuery UI Slider Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">
</div>
</body>
</html>

View File

@ -0,0 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Sortable Test Suite</title>
<script src="../../../jquery-1.6.2.js"></script>
<link rel="stylesheet" href="../../../external/qunit.css">
<link rel="stylesheet" href="../subsuiteRunner.css">
<script src="../../../external/qunit.js"></script>
<script src="../subsuiteRunner.js"></script>
<script src="../subsuite.js"></script>
<script>
testAllVersions( "sortable" );
</script>
</head>
<body>
<h1 id="qunit-header">jQuery UI Sortable Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">
</div>
</body>
</html>

View File

@ -0,0 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Spinner Test Suite</title>
<script src="../../../jquery-1.6.2.js"></script>
<link rel="stylesheet" href="../../../external/qunit.css">
<link rel="stylesheet" href="../subsuiteRunner.css">
<script src="../../../external/qunit.js"></script>
<script src="../subsuiteRunner.js"></script>
<script src="../subsuite.js"></script>
<script>
testAllVersions( "spinner" );
</script>
</head>
<body>
<h1 id="qunit-header">jQuery UI Spinner Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">
</div>
</body>
</html>

21
tests/unit/subsuite.js Normal file
View File

@ -0,0 +1,21 @@
(function() {
var versions = [ "1.6", "1.6.1", "1.6.2", "git" ];
var additionalTests = {
accordion: [ "accordion_deprecated.html" ],
position: [ "position_deprecated.html" ],
tabs: [ "tabs_deprecated.html" ]
};
window.testAllVersions = function( widget ) {
QUnit.testSuites( $.map(
[ widget + ".html" ].concat( additionalTests[ widget ] || [] ),
function( test ) {
return $.map( versions, function( version ) {
return test + "?jquery=" + version;
});
}));
};
}());

30
tests/unit/tabs/all.html Normal file
View File

@ -0,0 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Tabs Test Suite</title>
<script src="../../../jquery-1.6.2.js"></script>
<link rel="stylesheet" href="../../../external/qunit.css">
<link rel="stylesheet" href="../subsuiteRunner.css">
<script src="../../../external/qunit.js"></script>
<script src="../subsuiteRunner.js"></script>
<script src="../subsuite.js"></script>
<script>
testAllVersions( "tabs" );
</script>
</head>
<body>
<h1 id="qunit-header">jQuery UI Tabs Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">
</div>
</body>
</html>

View File

@ -0,0 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Tooltip Test Suite</title>
<script src="../../../jquery-1.6.2.js"></script>
<link rel="stylesheet" href="../../../external/qunit.css">
<link rel="stylesheet" href="../subsuiteRunner.css">
<script src="../../../external/qunit.js"></script>
<script src="../subsuiteRunner.js"></script>
<script src="../subsuite.js"></script>
<script>
testAllVersions( "tooltip" );
</script>
</head>
<body>
<h1 id="qunit-header">jQuery UI Tooltip Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">
</div>
</body>
</html>

View File

@ -0,0 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Widget Test Suite</title>
<script src="../../../jquery-1.6.2.js"></script>
<link rel="stylesheet" href="../../../external/qunit.css">
<link rel="stylesheet" href="../subsuiteRunner.css">
<script src="../../../external/qunit.js"></script>
<script src="../subsuiteRunner.js"></script>
<script src="../subsuite.js"></script>
<script>
testAllVersions( "widget" );
</script>
</head>
<body>
<h1 id="qunit-header">jQuery UI Widget Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">
</div>
</body>
</html>