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
8fba2bc6
Commit
8fba2bc6
authored
Feb 13, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml/tests: Added body event setters tests.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9e779666
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
events.html
dlls/mshtml/tests/events.html
+13
-0
No files found.
dlls/mshtml/tests/events.html
View file @
8fba2bc6
...
...
@@ -157,6 +157,18 @@ function test_string_event_handler() {
ok
(
string_handler_called
===
false
,
"string handler called"
);
}
function
test_body_events
()
{
var
f
=
function
()
{}
document
.
body
.
onload
=
f
;
ok
(
document
.
body
.
onload
===
f
,
"body.onload != f"
);
ok
(
window
.
onload
===
f
,
"window.onload != f"
);
document
.
body
.
onfocus
=
f
;
ok
(
document
.
body
.
onfocus
===
f
,
"body.onfocus != f"
);
ok
(
window
.
onfocus
===
f
,
"window.onfocus != f"
);
}
window
.
onload
=
function
()
{
try
{
ok
(
inlscr_complete_called
,
"onreadystatechange not fired"
);
...
...
@@ -178,6 +190,7 @@ window.onload = function() {
test_handler_this
();
test_insert_script
();
test_string_event_handler
();
test_body_events
();
}
catch
(
e
)
{
ok
(
false
,
"Got an exception: "
+
e
.
message
);
}
...
...
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