Commit b67154fd authored by jeresig's avatar jeresig

Merge branch 'support_6897' of https://github.com/rwldrn/jquery into rwldrn-support_6897

parents fb6c038b e2d0671f
...@@ -3,6 +3,31 @@ module("attributes"); ...@@ -3,6 +3,31 @@ module("attributes");
var bareObj = function(value) { return value; }; var bareObj = function(value) { return value; };
var functionReturningObj = function(value) { return (function() { 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() { test("attr(String)", function() {
expect(37); expect(37);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment