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
6c5bfffd
Commit
6c5bfffd
authored
Jul 20, 2007
by
Brandon Aaron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
broken test in IE
parent
9ffd93d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
13 deletions
+11
-13
eventTest.js
src/event/eventTest.js
+11
-13
No files found.
src/event/eventTest.js
View file @
6c5bfffd
module
(
"event"
);
test
(
"bind()"
,
function
()
{
expect
(
1
2
);
expect
(
1
1
);
var
handler
=
function
(
event
)
{
ok
(
event
.
data
,
"bind() with data, check passed data exists"
);
...
...
@@ -27,18 +27,16 @@ test("bind()", function() {
$
(
"#firstp"
).
bind
(
"click"
,
handler
).
trigger
(
"click"
);
// events don't work with iframes, see #939
var
doc
=
document
.
getElementById
(
"iframe"
).
contentDocument
;
doc
.
body
.
innerHTML
=
"<input type='text'/>"
;
var
input
=
doc
.
getElementsByTagName
(
"input"
)[
0
];
$
(
input
).
bind
(
"click"
,
function
()
{
ok
(
true
,
"Binding to element inside iframe"
);
}).
click
();
//triggerEvent( input, "click" );
// events don't work with iframes, see #939 - this test fails in IE because of contentDocument
// var doc = document.getElementById("iframe").contentDocument;
//
// doc.body.innerHTML = "<input type='text'/>";
//
// var input = doc.getElementsByTagName("input")[0];
//
// $(input).bind("click",function() {
// ok( true, "Binding to element inside iframe" );
// }).click();
var
counter
=
0
;
function
selectOnChange
(
event
)
{
...
...
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