Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
fae1fff8
Commit
fae1fff8
authored
Sep 13, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added more events tests.
parent
3de3d070
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
0 deletions
+56
-0
events.html
dlls/mshtml/tests/events.html
+52
-0
rsrc.rc
dlls/mshtml/tests/rsrc.rc
+3
-0
script.c
dlls/mshtml/tests/script.c
+1
-0
No files found.
dlls/mshtml/tests/events.html
0 → 100644
View file @
fae1fff8
<html>
<head>
<script>
function
ok
(
b
,
m
)
{
return
external
.
ok
(
b
,
m
);
}
function
ondataavailable_test
()
{
var
evobj
,
div
,
b
=
false
;
div
=
document
.
getElementById
(
"divid"
);
function
ondataavailableHandler
()
{
b
=
true
;
ok
(
window
.
event
===
evobj
,
"window.event != evobj"
);
ok
(
evobj
.
srcElement
===
div
,
"evobj.srcElement = "
+
evobj
.
srcElement
);
ok
(
evobj
.
fromElement
===
null
,
"evobj.srcElement = "
+
evobj
.
fromElement
);
ok
(
evobj
.
toElement
===
null
,
"evobj.srcElement = "
+
evobj
.
toElement
);
ok
(
evobj
.
type
===
"dataavailable"
,
"evobj.type = "
+
evobj
.
type
);
}
div
.
attachEvent
(
"ondataavailable"
,
ondataavailableHandler
);
evobj
=
document
.
createEventObject
();
ok
(
evobj
.
srcElement
===
null
,
"evobj.srcElement = "
+
evobj
.
srcElement
);
ok
(
evobj
.
fromElement
===
null
,
"evobj.srcElement = "
+
evobj
.
fromElement
);
ok
(
evobj
.
toElement
===
null
,
"evobj.srcElement = "
+
evobj
.
toElement
);
ok
(
evobj
.
type
===
""
,
"evobj.type = "
+
evobj
.
type
);
div
.
fireEvent
(
"ondataavailable"
,
evobj
);
ok
(
b
,
"ondataavailable handler not called?"
);
ok
(
evobj
.
srcElement
===
div
,
"evobj.srcElement = "
+
evobj
.
srcElement
);
ok
(
evobj
.
type
===
"dataavailable"
,
"evobj.type = "
+
evobj
.
type
);
}
function
runTests
()
{
try
{
ondataavailable_test
();
}
catch
(
e
)
{
ok
(
false
,
"Got an exception: "
+
e
.
message
);
}
external
.
reportSuccess
();
}
</script>
</head>
<body
onload=
"runTests()"
>
<div
id=
"divid"
></div>
</body>
</html>
dlls/mshtml/tests/rsrc.rc
View file @
fae1fff8
...
...
@@ -24,3 +24,6 @@ jstest.html HTML "jstest.html"
/* @makedep: vbtest.html */
vbtest.html HTML "vbtest.html"
/* @makedep: events.html */
events.html HTML "events.html"
dlls/mshtml/tests/script.c
View file @
fae1fff8
...
...
@@ -2745,6 +2745,7 @@ static void run_js_tests(void)
run_js_script
(
"jstest.html"
);
run_js_script
(
"exectest.html"
);
run_js_script
(
"vbtest.html"
);
run_js_script
(
"events.html"
);
}
static
BOOL
init_registry
(
BOOL
init
)
...
...
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