blob: fcc369e825b63453028ddb3a838b94c9ceb8747c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
module("Requirements");
test("jQuery",function(){
expect( 2 );
// make sure the right jquery is included
ok( window.jQuery, "jQuery exists" );
ok( parseFloat( jQuery([]).jquery ) >= 1.4, "jQuery version is 1.4 or greater" );
});
test("Installation",function(){
expect( 8 );
// make sure the plugin interface is complete
ok( jQuery.fn.fire, "FIRE method is defined" );
ok( jQuery.fire, "CONSTRUCTOR is defined" );
ok( jQuery.fire.defaults, "DEFAULTS are defined" );
ok( jQuery.fire.prototype.create, "CREATE method is defined" );
ok( jQuery.fire.prototype.event, "EVENT method is defined" );
ok( jQuery.fire.prototype.mouse, "MOUSE method is defined" );
ok( jQuery.fire.prototype.key, "KEY method is defined" );
ok( jQuery.fire.prototype.dispatch, "DISPATCH method is defined" );
});
|