Since .getAttribute() returns strings, we should check for them.

This commit is contained in:
Dave Methvin 2012-09-30 22:19:31 -04:00
parent 9ced027465
commit 631fbc769c

View File

@ -693,7 +693,7 @@ test("prop('tabindex', value)", 10, function() {
clone = element.clone(); clone = element.clone();
clone.prop( "tabindex", 1 ); clone.prop( "tabindex", 1 );
equal( clone[ 0 ].getAttribute("tabindex"), 1, "set tabindex on cloned element" ); equal( clone[ 0 ].getAttribute("tabindex"), "1", "set tabindex on cloned element" );
}); });
test("removeProp(String)", function() { test("removeProp(String)", function() {