Add jquery-git link to test suite for core team to check the plugin

This commit is contained in:
jzaefferer
2011-04-24 19:14:03 +02:00
parent b360f989a3
commit f468fdf11e
3 changed files with 4385 additions and 6 deletions

12
test/jquery.js vendored
View File

@@ -4,7 +4,8 @@ var parts = document.location.search.slice( 1 ).split( "&" ),
length = parts.length,
i = 0,
current,
version = "";
version = "1.3.2",
file = "http://code.jquery.com/jquery-git.js";
for ( ; i < length; i++ ) {
current = parts[ i ].split( "=" );
@@ -14,10 +15,11 @@ for ( ; i < length; i++ ) {
}
}
if (version) {
version = "-" + version;
if (version != "git") {
file = "../lib/jquery-" + version + ".js";
}
document.write( "<script src='../lib/jquery" + version + ".js'></script>" );
}() );
document.write( "<script src='" + file + "'></script>" );
})();