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
78bf1b62
Commit
78bf1b62
authored
Jul 25, 2022
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Jul 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Implement ProgressEvent's loaded prop.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
8d97a7b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
htmlevent.c
dlls/mshtml/htmlevent.c
+4
-2
xhr.js
dlls/mshtml/tests/xhr.js
+4
-0
No files found.
dlls/mshtml/htmlevent.c
View file @
78bf1b62
...
...
@@ -2514,8 +2514,10 @@ static HRESULT WINAPI DOMProgressEvent_get_lengthComputable(IDOMProgressEvent *i
static
HRESULT
WINAPI
DOMProgressEvent_get_loaded
(
IDOMProgressEvent
*
iface
,
ULONGLONG
*
p
)
{
DOMProgressEvent
*
This
=
impl_from_IDOMProgressEvent
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
map_nsresult
(
nsIDOMProgressEvent_GetLoaded
(
This
->
nsevent
,
p
));
}
static
HRESULT
WINAPI
DOMProgressEvent_get_total
(
IDOMProgressEvent
*
iface
,
ULONGLONG
*
p
)
...
...
dlls/mshtml/tests/xhr.js
View file @
78bf1b62
...
...
@@ -48,6 +48,7 @@ function test_xhr() {
for
(
var
i
=
0
;
i
<
props
.
length
;
i
++
)
ok
(
props
[
i
]
in
e
,
props
[
i
]
+
" not available in loadstart"
);
ok
(
e
.
lengthComputable
===
false
,
"lengthComputable in loadstart = "
+
e
.
lengthComputable
);
ok
(
e
.
loaded
===
0
,
"loaded in loadstart = "
+
e
.
loaded
);
loadstart
=
true
;
};
xhr
.
onloadend
=
function
(
e
)
{
...
...
@@ -57,6 +58,8 @@ function test_xhr() {
for
(
var
i
=
0
;
i
<
props
.
length
;
i
++
)
ok
(
props
[
i
]
in
e
,
props
[
i
]
+
" not available in loadend"
);
ok
(
e
.
lengthComputable
===
true
,
"lengthComputable in loadend = "
+
e
.
lengthComputable
);
todo_wine
.
ok
(
e
.
loaded
===
xml
.
length
,
"loaded in loadend = "
+
e
.
loaded
);
next_test
();
};
}
...
...
@@ -175,6 +178,7 @@ function test_timeout() {
}
if
(
v
>=
10
)
{
ok
(
e
.
lengthComputable
===
false
,
"lengthComputable = "
+
e
.
lengthComputable
);
ok
(
e
.
loaded
===
0
,
"loaded = "
+
e
.
loaded
);
}
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