aboutsummaryrefslogtreecommitdiffstats
path: root/tests/jquery.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-07-28 07:34:31 -0400
committerScott González <scott.gonzalez@gmail.com>2011-07-28 07:34:31 -0400
commitd92b61e865df5d21360ff26a34ddf793f116393c (patch)
tree4a37320d71b6cc767931c1771f04686bbe73b725 /tests/jquery.js
parent0ba493d3b4f9d6da35cadc499e9f7ebb6adb31b3 (diff)
downloadjquery-ui-d92b61e865df5d21360ff26a34ddf793f116393c.tar.gz
jquery-ui-d92b61e865df5d21360ff26a34ddf793f116393c.zip
Tests: Added ability to run tests suites against different versions of jQuery core.
Diffstat (limited to 'tests/jquery.js')
-rw-r--r--tests/jquery.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/jquery.js b/tests/jquery.js
new file mode 100644
index 000000000..8c8147166
--- /dev/null
+++ b/tests/jquery.js
@@ -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.6.2" ) + ".js";
+}
+
+document.write( "<script src='" + url + "'></script>" );
+
+}() );