aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authortimmywil <tim.willison@thisismedium.com>2011-05-05 12:52:04 -0400
committertimmywil <tim.willison@thisismedium.com>2011-05-05 12:52:04 -0400
commitcccf9ad91d8b6626e1e20bd267c9cd0b6223f15c (patch)
tree92babb3e9ccaa440edde44f870663618b99760bf /test
parent5097e6d1c672ef5fd3fcc0022ce84519233189cc (diff)
downloadjquery-cccf9ad91d8b6626e1e20bd267c9cd0b6223f15c.tar.gz
jquery-cccf9ad91d8b6626e1e20bd267c9cd0b6223f15c.zip
Add support for the contenteditable attribute
Diffstat (limited to 'test')
-rw-r--r--test/unit/attributes.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/unit/attributes.js b/test/unit/attributes.js
index 5f35e9482..257d02d09 100644
--- a/test/unit/attributes.js
+++ b/test/unit/attributes.js
@@ -22,7 +22,8 @@ test("jQuery.attrFix/jQuery.propFix integrity test", function() {
rowspan: "rowSpan",
colspan: "colSpan",
usemap: "useMap",
- frameborder: "frameBorder"
+ frameborder: "frameBorder",
+ contenteditable: "contentEditable"
},
propsShouldBe;
@@ -143,7 +144,7 @@ test("attr(Hash)", function() {
});
test("attr(String, Object)", function() {
- expect(56);
+ expect(57);
var div = jQuery("div").attr("foo", "bar"),
fail = false;
@@ -215,6 +216,9 @@ test("attr(String, Object)", function() {
equals( $text.attr("aria-disabled", false).attr("aria-disabled"), "false", "Setting aria attributes are not affected by boolean settings");
$text.removeData("something").removeData("another").removeAttr("aria-disabled");
+ jQuery("#foo").attr("contenteditable", true);
+ equals( jQuery("#foo").attr("contenteditable"), "true", "Enumerated attributes are set properly" );
+
var attributeNode = document.createAttribute("irrelevant"),
commentNode = document.createComment("some comment"),
textNode = document.createTextNode("some text");