Skip to content

$versions - An elegant way of testing your code/plugin in multiple jQuery versions. Compatible with QUnit and many other testing libraries.

License

Notifications You must be signed in to change notification settings

protonet/jquery-versions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

$versions

Elegant way to test a plugin in multiple versions of jQuery.
Works perfectly with QUnit (and probably other testing frameworks).

Example

This will test myPlugin.js in version 1.4.3, 1.4.4 and the most recent 1.5.* version.

$versions("1.4.3", "1.4.4", "1.5").load("myCoolPlugin.js").execute(function($, jQuery, version) {
  // Assuming you are using QUnit:
  module("myCoolPlugin in jQuery version " + version);
  
  test("Check return values", function() {
    equals($("<div>").myCoolPlugin(), "foo");
  })
});

Which versions are supported?

See http://code.google.com/apis/libraries/devguide.html#jquery (and click on “view older versions”).

About

$versions - An elegant way of testing your code/plugin in multiple jQuery versions. Compatible with QUnit and many other testing libraries.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published