Commit 78bf1b62 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

mshtml: Implement ProgressEvent's loaded prop.

parent 8d97a7b3
......@@ -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)
......
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment