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
7d61c523
Commit
7d61c523
authored
Dec 13, 2012
by
Timmy Willison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust html parsing in event tests to use jQuery.parseHTML explicitly.
parent
05531fc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
event.js
test/unit/event.js
+3
-3
No files found.
test/unit/event.js
View file @
7d61c523
...
@@ -1052,7 +1052,7 @@ test("trigger(type, [data], [fn])", function() {
...
@@ -1052,7 +1052,7 @@ test("trigger(type, [data], [fn])", function() {
form
.
remove
();
form
.
remove
();
});
});
test
(
"submit event bubbles on copied forms (#11649)"
,
function
(){
test
(
"submit event bubbles on copied forms (#11649)"
,
function
()
{
expect
(
3
);
expect
(
3
);
var
$formByClone
,
$formByHTML
,
var
$formByClone
,
$formByHTML
,
...
@@ -1076,7 +1076,7 @@ test( "submit event bubbles on copied forms (#11649)", function(){
...
@@ -1076,7 +1076,7 @@ test( "submit event bubbles on copied forms (#11649)", function(){
// Copy the form via .clone() and .html()
// Copy the form via .clone() and .html()
$formByClone
=
$testForm
.
clone
(
true
,
true
).
removeAttr
(
"id"
);
$formByClone
=
$testForm
.
clone
(
true
,
true
).
removeAttr
(
"id"
);
$formByHTML
=
jQuery
(
$fixture
.
html
(
)
).
filter
(
"#testForm"
).
removeAttr
(
"id"
);
$formByHTML
=
jQuery
(
jQuery
.
parseHTML
(
$fixture
.
html
()
)
).
filter
(
"#testForm"
).
removeAttr
(
"id"
);
$wrapperDiv
.
append
(
$formByClone
,
$formByHTML
);
$wrapperDiv
.
append
(
$formByClone
,
$formByHTML
);
// Check submit bubbling on the copied forms
// Check submit bubbling on the copied forms
...
@@ -1109,7 +1109,7 @@ test( "change event bubbles on copied forms (#11796)", function(){
...
@@ -1109,7 +1109,7 @@ test( "change event bubbles on copied forms (#11796)", function(){
// Copy the form via .clone() and .html()
// Copy the form via .clone() and .html()
$formByClone
=
$form
.
clone
(
true
,
true
).
removeAttr
(
"id"
);
$formByClone
=
$form
.
clone
(
true
,
true
).
removeAttr
(
"id"
);
$formByHTML
=
jQuery
(
$fixture
.
html
(
)
).
filter
(
"#form"
).
removeAttr
(
"id"
);
$formByHTML
=
jQuery
(
jQuery
.
parseHTML
(
$fixture
.
html
()
)
).
filter
(
"#form"
).
removeAttr
(
"id"
);
$wrapperDiv
.
append
(
$formByClone
,
$formByHTML
);
$wrapperDiv
.
append
(
$formByClone
,
$formByHTML
);
// Check change bubbling on the copied forms
// Check change bubbling on the copied forms
...
...
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