Fix some stragglers

This commit is contained in:
Yehuda Katz 2012-04-15 17:52:48 -04:00
parent 6bc08c2b2f
commit 16249f0acd
2 changed files with 10 additions and 16 deletions

View File

@ -387,21 +387,16 @@ test("attr(jquery_method)", function(){
equal( elem.style.paddingRight, "1px", "attr({...})");
});
if ( !isLocal ) {
test("attr(String, Object) - Loaded via XML document", function() {
test("attr(String, Object) - Loaded via XML document", function() {
expect(2);
stop();
jQuery.get("data/dashboard.xml", function( xml ) {
var xml = createDashboardXML();
var titles = [];
jQuery( "tab", xml ).each(function() {
titles.push( jQuery(this).attr("title") );
});
equal( titles[0], "Location", "attr() in XML context: Check first title" );
equal( titles[1], "Users", "attr() in XML context: Check second title" );
start();
});
});
}
});
test("attr('tabindex')", function() {
expect(8);

View File

@ -552,8 +552,7 @@ test("XSS via location.hash", function() {
test("isXMLDoc - XML", function() {
expect(3);
var xml = createXMLDocument();
xml.documentElement.appendChild( xml.createElement( "tab" ) );
var xml = createDashboardXML();
ok( jQuery.isXMLDoc( xml ), "XML document" );
ok( jQuery.isXMLDoc( xml.documentElement ), "XML documentElement" );
ok( jQuery.isXMLDoc( jQuery("tab", xml)[0] ), "XML Tab Element" );