Skip to content
Permalink
Browse files

Fix some stragglers

  • Loading branch information...
wycats committed Apr 15, 2012
1 parent 6bc08c2 commit 16249f0acd36d44d15a2d676ce932b10a7be06f2
Showing with 10 additions and 16 deletions.
  1. +9 −14 test/unit/attributes.js
  2. +1 −2 test/unit/core.js
@@ -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() {
expect(2);
stop();
jQuery.get("data/dashboard.xml", function( xml ) {
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(String, Object) - Loaded via XML document", function() {
expect(2);
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" );
});

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" );

0 comments on commit 16249f0

Please sign in to comment.
You can’t perform that action at this time.