Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
e2d0671f
Commit
e2d0671f
authored
Nov 09, 2010
by
rwldrn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support unit test for #6897
parent
a64dc040
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
attributes.js
test/unit/attributes.js
+25
-0
No files found.
test/unit/attributes.js
View file @
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
(
31
);
expect
(
31
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment