Skip to content

Commit

Permalink
Merge branch 'support_6897' of https://github.com/rwldrn/jquery into …
Browse files Browse the repository at this point in the history
…rwldrn-support_6897
  • Loading branch information
jeresig committed Dec 9, 2010
2 parents fb6c038 + e2d0671 commit b67154f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/unit/attributes.js
Expand Up @@ -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(37);

Expand Down

0 comments on commit b67154f

Please sign in to comment.