Skip to content
Permalink
Browse files

Support unit test for #6897

  • Loading branch information...
rwaldron committed Nov 9, 2010
1 parent a64dc04 commit e2d0671f4c260f2bd97fe76269188d5d6fc19dcd
Showing with 25 additions and 0 deletions.
  1. +25 −0 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);

0 comments on commit e2d0671

Please sign in to comment.
You can’t perform that action at this time.