From: jeresig Date: Thu, 9 Dec 2010 17:33:26 +0000 (-0500) Subject: Merge branch 'support_6897' of https://github.com/rwldrn/jquery into rwldrn-support_6897 X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=b67154fd10c6226963dbbc4b3fe70d9f529b9d50 Merge branch 'support_6897' of https://github.com/rwldrn/jquery into rwldrn-support_6897 --- b67154fd10c6226963dbbc4b3fe70d9f529b9d50 diff --cc test/unit/attributes.js index d17653d,3eb2474..f30779d --- a/test/unit/attributes.js +++ b/test/unit/attributes.js @@@ -3,8 -3,33 +3,33 @@@ 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); + expect(37); // This one sometimes fails randomly ?! equals( jQuery('#text1').attr('value'), "Test", 'Check for value attribute' );