aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2012-09-30 22:19:31 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-09-30 22:19:31 -0400
commit631fbc769c952381fc3f42ffd77f7b5e4e6a21cc (patch)
treecb9c199735bea2ea1f3e8e8c5402c4ef892b73b1
parent9ced0274653b8b17ceb6b0675e2ae05433dcf202 (diff)
downloadjquery-631fbc769c952381fc3f42ffd77f7b5e4e6a21cc.tar.gz
jquery-631fbc769c952381fc3f42ffd77f7b5e4e6a21cc.zip
Since .getAttribute() returns strings, we should check for them.
-rw-r--r--test/unit/attributes.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/attributes.js b/test/unit/attributes.js
index 7ff55aa18..40c81a37c 100644
--- a/test/unit/attributes.js
+++ b/test/unit/attributes.js
@@ -693,7 +693,7 @@ test("prop('tabindex', value)", 10, function() {
clone = element.clone();
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() {