});
test("attr(String, Object)", function() {
- expect(17);
+ expect(19);
var div = jQuery("div").attr("foo", "bar");
fail = false;
for ( var i = 0; i < div.size(); i++ ) {
}
ok( thrown, "Exception thrown when trying to change type property" );
equals( "checkbox", jQuery(check).attr('type'), "Verify that you can change the type of an input element that isn't in the DOM" );
+
+ var check = jQuery("<input />");
+ var thrown = true;
+ try {
+ check.attr('type','checkbox');
+ } catch(e) {
+ thrown = false;
+ }
+ ok( thrown, "Exception thrown when trying to change type property" );
+ equals( "checkbox", check.attr('type'), "Verify that you can change the type of an input element that isn't in the DOM" );
});
if ( !isLocal ) {
});
test("jQuery.merge()", function() {
+ expect(6);
+
var parse = jQuery.merge;
same( parse([],[]), [], "Empty arrays" );