aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorrwldrn <waldron.rick@gmail.com>2010-11-09 16:31:52 -0500
committerrwldrn <waldron.rick@gmail.com>2010-11-09 16:31:52 -0500
commite2d0671f4c260f2bd97fe76269188d5d6fc19dcd (patch)
tree18f14b34b36fa136a351db91afda838d1b700bdd /test
parenta64dc0405064d68c7b7cd0f0fc8ea60086cbcd21 (diff)
downloadjquery-e2d0671f4c260f2bd97fe76269188d5d6fc19dcd.tar.gz
jquery-e2d0671f4c260f2bd97fe76269188d5d6fc19dcd.zip
Support unit test for #6897
Diffstat (limited to 'test')
-rw-r--r--test/unit/attributes.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/unit/attributes.js b/test/unit/attributes.js
index 2d0a0d6cd..3eb2474dd 100644
--- a/test/unit/attributes.js
+++ b/test/unit/attributes.js
@@ -3,6 +3,31 @@ module("attributes");
var bareObj = function(value) { return value; };
var functionReturningObj = function(value) { return (function() { return value; }); };
+test("jQuery.props: itegrity test", function() {
+
+ expect(1);
+
+ // This must be maintained and equal jQuery.props
+ // Ensure that accidental or erroneous property
+ // overwrites don't occur
+ // This is simply for better code coverage and future proofing.
+ var propsShouldBe = {
+ "for": "htmlFor",
+ "class": "className",
+ readonly: "readOnly",
+ maxlength: "maxLength",
+ cellspacing: "cellSpacing",
+ rowspan: "rowSpan",
+ colspan: "colSpan",
+ tabindex: "tabIndex",
+ usemap: "useMap",
+ frameborder: "frameBorder"
+ };
+
+ same(propsShouldBe, jQuery.props, "jQuery.props passes integrity check");
+
+});
+
test("attr(String)", function() {
expect(31);