Tests: Added ability to run tests against different versions of jQuery core.

This commit is contained in:
Scott González 2011-07-28 10:36:42 -04:00
parent 7f8e7dae0b
commit 4b17402262
27 changed files with 61676 additions and 19 deletions

4376
tests/jquery-1.3.2.js vendored Normal file

File diff suppressed because it is too large Load Diff

6078
tests/jquery-1.4.1.js vendored Normal file

File diff suppressed because it is too large Load Diff

6240
tests/jquery-1.4.2.js vendored Normal file

File diff suppressed because it is too large Load Diff

6883
tests/jquery-1.4.3.js vendored Normal file

File diff suppressed because it is too large Load Diff

7179
tests/jquery-1.4.4.js vendored Normal file

File diff suppressed because it is too large Load Diff

5999
tests/jquery-1.4.js vendored Normal file

File diff suppressed because it is too large Load Diff

8316
tests/jquery-1.5.1.js vendored Normal file

File diff suppressed because it is too large Load Diff

8374
tests/jquery-1.5.2.js vendored Normal file

File diff suppressed because it is too large Load Diff

8176
tests/jquery-1.5.js vendored Normal file

File diff suppressed because it is too large Load Diff

26
tests/jquery.js vendored Normal file
View File

@ -0,0 +1,26 @@
(function() {
var parts = document.location.search.slice( 1 ).split( "&" ),
length = parts.length,
i = 0,
current,
version,
url;
for ( ; i < length; i++ ) {
current = parts[ i ].split( "=" );
if ( current[ 0 ] === "jquery" ) {
version = current[ 1 ];
break;
}
}
if ( version === "git" ) {
url = "http://code.jquery.com/jquery-git.js";
} else {
url = "../../jquery-" + ( version || "1.5.2" ) + ".js";
}
document.write( "<script src='" + url + "'></script>" );
}() );

View File

@ -6,7 +6,7 @@
<link type="text/css" href="../../../themes/base/jquery.ui.accordion.css" rel="stylesheet" />
<script type="text/javascript" src="../../../jquery-1.5.1.js"></script>
<script src="../../jquery.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.accordion.js"></script>

View File

@ -4,14 +4,15 @@
<meta charset="utf-8">
<title>jQuery UI Test Suite</title>
<script src="../../jquery-1.5.1.js"></script>
<script src="../jquery-1.5.2.js"></script>
<link rel="stylesheet" href="../../external/qunit.css">
<script src="../../external/qunit.js"></script>
<script src="testsuites.js"></script>
<script>
QUnit.testSuites([
var params = "";
var suites = [
"accordion/accordion.html",
"autocomplete/autocomplete.html",
"button/button.html",
@ -28,7 +29,16 @@
"sortable/sortable.html",
"tabs/tabs.html",
"widget/widget.html"
]);
];
$.each( QUnit.urlParams, function( key, value ) {
params += encodeURIComponent( key ) + "=" + encodeURIComponent( value );
});
if ( params ) {
suites = $.map( suites, function( suite ) {
return suite + "?" + params;
});
}
QUnit.testSuites( suites );
</script>
</head>
<body>

View File

@ -6,7 +6,7 @@
<link type="text/css" href="../../../themes/base/jquery.ui.autocomplete.css" rel="stylesheet" />
<script type="text/javascript" src="../../../jquery-1.5.1.js"></script>
<script src="../../jquery.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.position.js"></script>

View File

@ -6,7 +6,7 @@
<link type="text/css" href="../../../themes/base/jquery.ui.button.css" rel="stylesheet" />
<script type="text/javascript" src="../../../jquery-1.5.1.js"></script>
<script src="../../jquery.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.button.js"></script>

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<title>jQuery UI Core Test Suite</title>
<script type="text/javascript" src="../../../jquery-1.5.1.js"></script>
<script src="../../jquery.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>

View File

@ -6,7 +6,7 @@
<link type="text/css" href="../../../themes/base/jquery.ui.datepicker.css" rel="stylesheet" />
<script type="text/javascript" src="../../../jquery-1.5.1.js"></script>
<script src="../../jquery.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.datepicker.js"></script>

View File

@ -6,7 +6,7 @@
<link type="text/css" href="../../../themes/base/jquery.ui.dialog.css" rel="stylesheet" />
<script type="text/javascript" src="../../../jquery-1.5.1.js"></script>
<script src="../../jquery.js"></script>
<script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.2.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<title>jQuery UI Draggable Test Suite</title>
<script type="text/javascript" src="../../../jquery-1.5.1.js"></script>
<script src="../../jquery.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.mouse.js"></script>

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<title>jQuery UI Droppable Test Suite</title>
<script type="text/javascript" src="../../../jquery-1.5.1.js"></script>
<script src="../../jquery.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.mouse.js"></script>

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<title>jQuery UI Position Test Suite</title>
<script type="text/javascript" src="../../../jquery-1.5.1.js"></script>
<script src="../../jquery.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.position.js"></script>
<link rel="stylesheet" href="../../../external/qunit.css" type="text/css"/>

View File

@ -6,7 +6,7 @@
<link type="text/css" href="../../../themes/base/jquery.ui.progressbar.css" rel="stylesheet" />
<script type="text/javascript" src="../../../jquery-1.5.1.js"></script>
<script src="../../jquery.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.progressbar.js"></script>

View File

@ -6,7 +6,7 @@
<link type="text/css" href="../../../themes/base/jquery.ui.resizable.css" rel="stylesheet" />
<script type="text/javascript" src="../../../jquery-1.5.1.js"></script>
<script src="../../jquery.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.mouse.js"></script>

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<title>jQuery UI Selectable Test Suite</title>
<script type="text/javascript" src="../../../jquery-1.5.1.js"></script>
<script src="../../jquery.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.mouse.js"></script>

View File

@ -6,7 +6,7 @@
<link type="text/css" href="../../../themes/base/jquery.ui.slider.css" rel="stylesheet" />
<script type="text/javascript" src="../../../jquery-1.5.1.js"></script>
<script src="../../jquery.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.mouse.js"></script>

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<title>jQuery UI Sortable Test Suite</title>
<script type="text/javascript" src="../../../jquery-1.5.1.js"></script>
<script src="../../jquery.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.mouse.js"></script>

View File

@ -6,7 +6,7 @@
<link type="text/css" href="../../../themes/base/jquery.ui.tabs.css" rel="stylesheet" />
<script type="text/javascript" src="../../../jquery-1.5.1.js"></script>
<script src="../../jquery.js"></script>
<script type="text/javascript" src="../../../external/jquery.cookie.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<title>jQuery UI Widget Test Suite</title>
<script type="text/javascript" src="../../../jquery-1.5.1.js"></script>
<script src="../../jquery.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>