Removed jQuery.className.(has|remove|add) in favor of .addClass/removeClass/hasClass...
[jquery.git] / test / unit / core.js
index 8decd49..d2b0996 100644 (file)
@@ -281,7 +281,7 @@ test("isXMLDoc - HTML", function() {
 
        try {
                var body = jQuery(iframe).contents()[0];
-               ok( jQuery.isXMLDoc( body ), "Iframe body element" );
+               ok( !jQuery.isXMLDoc( body ), "Iframe body element" );
        } catch(e){
                ok( false, "Iframe body element exception" );
        }
@@ -337,7 +337,7 @@ test("jQuery('html')", function() {
 test("jQuery('html', context)", function() {
        expect(1);
 
-       var $div = jQuery("<div/>");
+       var $div = jQuery("<div/>")[0];
        var $span = jQuery("<span/>", $div);
        equals($span.length, 1, "Verify a span created with a div context works, #1763");
 });