mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fix some stragglers
This commit is contained in:
parent
6bc08c2b2f
commit
16249f0acd
@ -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);
|
||||
|
@ -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" );
|
||||
|
Loading…
Reference in New Issue
Block a user