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
bc8c1b56
Commit
bc8c1b56
authored
Nov 01, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Nov 01, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml/tests: Test parent window links after navigation.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
bcf89639
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
events.c
dlls/mshtml/tests/events.c
+43
-0
No files found.
dlls/mshtml/tests/events.c
View file @
bc8c1b56
...
...
@@ -3234,6 +3234,48 @@ static void test_iframe_connections(IHTMLDocument2 *doc)
IHTMLDocument2_Release
(
iframes_doc
);
}
static
void
test_window_refs
(
IHTMLDocument2
*
doc
)
{
IHTMLWindow2
*
self
,
*
parent
,
*
child
;
IHTMLFrameBase2
*
iframe
;
IHTMLDocument6
*
doc6
;
IHTMLElement2
*
elem
;
HRESULT
hres
;
BSTR
bstr
;
hres
=
IHTMLDocument2_QueryInterface
(
doc
,
&
IID_IHTMLDocument6
,
(
void
**
)
&
doc6
);
ok
(
hres
==
S_OK
,
"Could not get IHTMLDocument6 iface: %08lx
\n
"
,
hres
);
bstr
=
SysAllocString
(
L"ifr"
);
hres
=
IHTMLDocument6_getElementById
(
doc6
,
bstr
,
&
elem
);
ok
(
hres
==
S_OK
,
"getElementById failed: %08lx
\n
"
,
hres
);
IHTMLDocument6_Release
(
doc6
);
SysFreeString
(
bstr
);
hres
=
IHTMLElement2_QueryInterface
(
elem
,
&
IID_IHTMLFrameBase2
,
(
void
**
)
&
iframe
);
ok
(
hres
==
S_OK
,
"Could not get IHTMLFrameBase2 iface: %08lx
\n
"
,
hres
);
IHTMLElement2_Release
(
elem
);
hres
=
IHTMLFrameBase2_get_contentWindow
(
iframe
,
&
child
);
ok
(
hres
==
S_OK
,
"get_contentWindow failed: %08lx
\n
"
,
hres
);
IHTMLFrameBase2_Release
(
iframe
);
hres
=
IHTMLWindow2_get_self
(
window
,
&
self
);
ok
(
hres
==
S_OK
,
"get_self failed: %08lx
\n
"
,
hres
);
hres
=
IHTMLWindow2_get_parent
(
child
,
&
parent
);
ok
(
hres
==
S_OK
,
"get_parent failed: %08lx
\n
"
,
hres
);
ok
(
parent
==
self
,
"parent != self
\n
"
);
IHTMLWindow2_Release
(
parent
);
IHTMLWindow2_Release
(
self
);
navigate
(
doc
,
L"blank.html"
);
hres
=
IHTMLWindow2_get_parent
(
child
,
&
parent
);
ok
(
hres
==
S_OK
,
"get_parent failed: %08lx
\n
"
,
hres
);
ok
(
parent
==
child
,
"parent != child
\n
"
);
IHTMLWindow2_Release
(
parent
);
IHTMLWindow2_Release
(
child
);
}
static
void
test_doc_obj
(
IHTMLDocument2
*
doc
)
{
static
DISPID
propput_dispid
=
DISPID_PROPERTYPUT
;
...
...
@@ -6523,6 +6565,7 @@ START_TEST(events)
run_test_from_res
(
L"doc_with_prop_ie9.html"
,
test_visibilitychange
);
run_test_from_res
(
L"blank_ie10.html"
,
test_visibilitychange
);
run_test_from_res
(
L"iframe.html"
,
test_unload_event
);
run_test_from_res
(
L"iframe.html"
,
test_window_refs
);
run_test
(
empty_doc_ie9_str
,
test_create_event
);
run_test
(
img_doc_ie9_str
,
test_imgload
);
run_test
(
input_image_doc_ie9_str
,
test_inputload
);
...
...
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