diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2013-04-08 23:40:08 +0200 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2013-04-17 23:06:33 -0400 |
commit | 0db70aa1fa084ccf1ef90d9b78382df95bdf9c85 (patch) | |
tree | 6588d1e0f43d977fb7cf0eabda9260d1b9231586 /test/unit/deprecated.js | |
parent | 12a101729086ec1f9b8b029cd66971c11959bc33 (diff) | |
download | jquery-0db70aa1fa084ccf1ef90d9b78382df95bdf9c85.tar.gz jquery-0db70aa1fa084ccf1ef90d9b78382df95bdf9c85.zip |
Fix #13741. Make wrap/unwrap methods optional; close gh-1236.
move size() test to unit/deprecated;
don't use size() in other tests;
make 2 unit tests actually fire;
code cleanup
Diffstat (limited to 'test/unit/deprecated.js')
-rw-r--r-- | test/unit/deprecated.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/unit/deprecated.js b/test/unit/deprecated.js index 330bda200..5839ceec3 100644 --- a/test/unit/deprecated.js +++ b/test/unit/deprecated.js @@ -1 +1,8 @@ -module("deprecated"); +module("deprecated", { teardown: moduleTeardown }); + +if ( jQuery.fn.size ) { + test("size()", function() { + expect(1); + equal( jQuery("#qunit-fixture p").size(), 6, "Get Number of Elements Found" ); + }); +} |