Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e36b765b
Commit
e36b765b
authored
Mar 08, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml/tests: Added more IDOMEvent::preventDefault tests.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
39766bcd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
events.js
dlls/mshtml/tests/events.js
+14
-0
No files found.
dlls/mshtml/tests/events.js
View file @
e36b765b
...
...
@@ -358,6 +358,7 @@ function test_prevent_default() {
elem
.
onclick
=
function
(
event
)
{
event
.
preventDefault
();
ok
(
event
.
defaultPrevented
===
false
,
"defaultPrevented"
);
}
e
=
document
.
createEvent
(
"Event"
);
e
.
initEvent
(
"click"
,
true
,
false
);
...
...
@@ -372,6 +373,19 @@ function test_prevent_default() {
r
=
elem
.
dispatchEvent
(
e
);
ok
(
r
===
true
,
"dispatchEvent returned "
+
r
);
e
=
document
.
createEvent
(
"Event"
);
e
.
initEvent
(
"click"
,
false
,
true
);
e
.
preventDefault
();
ok
(
e
.
defaultPrevented
===
false
,
"defaultPrevented = "
+
e
.
defaultPrevented
);
e
=
document
.
createEvent
(
"Event"
);
e
.
initEvent
(
"click"
,
false
,
true
);
elem
.
onclick
=
null
;
r
=
elem
.
dispatchEvent
(
e
);
ok
(
r
===
true
,
"dispatchEvent returned "
+
r
);
e
.
preventDefault
();
ok
(
e
.
defaultPrevented
===
false
,
"defaultPrevented = "
+
e
.
defaultPrevented
);
next_test
();
}
...
...
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