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
1571c121
Commit
1571c121
authored
Jan 23, 2024
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Jan 23, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Implement document.lastModified.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
5113e551
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
htmldoc.c
dlls/mshtml/htmldoc.c
+8
-2
dom.js
dlls/mshtml/tests/dom.js
+6
-0
No files found.
dlls/mshtml/htmldoc.c
View file @
1571c121
...
@@ -1086,8 +1086,14 @@ static HRESULT WINAPI HTMLDocument_get_location(IHTMLDocument2 *iface, IHTMLLoca
...
@@ -1086,8 +1086,14 @@ static HRESULT WINAPI HTMLDocument_get_location(IHTMLDocument2 *iface, IHTMLLoca
static
HRESULT
WINAPI
HTMLDocument_get_lastModified
(
IHTMLDocument2
*
iface
,
BSTR
*
p
)
static
HRESULT
WINAPI
HTMLDocument_get_lastModified
(
IHTMLDocument2
*
iface
,
BSTR
*
p
)
{
{
HTMLDocumentNode
*
This
=
impl_from_IHTMLDocument2
(
iface
);
HTMLDocumentNode
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsAString
nsstr
;
return
E_NOTIMPL
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsAString_Init
(
&
nsstr
,
NULL
);
nsres
=
nsIDOMDocument_GetLastModified
(
This
->
dom_document
,
&
nsstr
);
return
return_nsstr
(
nsres
,
&
nsstr
,
p
);
}
}
static
HRESULT
WINAPI
HTMLDocument_put_URL
(
IHTMLDocument2
*
iface
,
BSTR
v
)
static
HRESULT
WINAPI
HTMLDocument_put_URL
(
IHTMLDocument2
*
iface
,
BSTR
v
)
...
...
dlls/mshtml/tests/dom.js
View file @
1571c121
...
@@ -339,6 +339,12 @@ sync_test("rects", function() {
...
@@ -339,6 +339,12 @@ sync_test("rects", function() {
ok
(
rects
.
length
===
0
,
"rect.length = "
+
rects
.
length
);
ok
(
rects
.
length
===
0
,
"rect.length = "
+
rects
.
length
);
});
});
sync_test
(
"document_lastModified"
,
function
()
{
// actually it seems to be rounded up from about ~250ms above a sec, but be more conservative with the check
var
diff
=
Date
.
parse
(
document
.
lastModified
)
-
performance
.
timing
.
navigationStart
;
ok
(
diff
>
-
1000
&&
diff
<
1000
,
"lastModified too far from navigationStart: "
+
diff
);
});
sync_test
(
"document_owner"
,
function
()
{
sync_test
(
"document_owner"
,
function
()
{
var
node
;
var
node
;
...
...
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