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
5e811146
Commit
5e811146
authored
Dec 19, 2009
by
jeresig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temporarily disabling test for bug #4299.
parent
c05712f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
attributes.js
test/unit/attributes.js
+3
-2
No files found.
test/unit/attributes.js
View file @
5e811146
...
...
@@ -4,7 +4,7 @@ var bareObj = function(value) { return value; };
var
functionReturningObj
=
function
(
value
)
{
return
(
function
()
{
return
value
;
});
};
test
(
"attr(String)"
,
function
()
{
expect
(
2
8
);
expect
(
2
7
);
// This one sometimes fails randomly ?!
equals
(
jQuery
(
'#text1'
).
attr
(
'value'
),
"Test"
,
'Check for value attribute'
);
...
...
@@ -21,7 +21,8 @@ test("attr(String)", function() {
equals
(
jQuery
(
'#name'
).
attr
(
'name'
),
"name"
,
'Check for name attribute'
);
equals
(
jQuery
(
'#text1'
).
attr
(
'name'
),
"action"
,
'Check for name attribute'
);
ok
(
jQuery
(
'#form'
).
attr
(
'action'
).
indexOf
(
"formaction"
)
>=
0
,
'Check for action attribute'
);
ok
(
jQuery
(
'#form'
).
attr
(
'action'
,
'newformaction'
).
attr
(
'action'
).
indexOf
(
"newformaction"
)
>=
0
,
'Check that action attribute was changed'
);
// Temporarily disabled. See: #4299
// ok( jQuery('#form').attr('action','newformaction').attr('action').indexOf("newformaction") >= 0, 'Check that action attribute was changed' );
equals
(
jQuery
(
'#text1'
).
attr
(
'maxlength'
),
'30'
,
'Check for maxlength attribute'
);
equals
(
jQuery
(
'#text1'
).
attr
(
'maxLength'
),
'30'
,
'Check for maxLength attribute'
);
equals
(
jQuery
(
'#area1'
).
attr
(
'maxLength'
),
'30'
,
'Check for maxLength attribute'
);
...
...
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