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
20163e03
Commit
20163e03
authored
Feb 22, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Added get_LocationURL implementation.
parent
14991a42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
webbrowser.c
dlls/shdocvw/tests/webbrowser.c
+24
-0
No files found.
dlls/shdocvw/tests/webbrowser.c
View file @
20163e03
...
...
@@ -105,6 +105,7 @@ DEFINE_EXPECT(QueryStatus_SETPROGRESSTEXT);
static
const
WCHAR
wszItem
[]
=
{
'i'
,
't'
,
'e'
,
'm'
,
0
};
static
const
WCHAR
about_blankW
[]
=
{
'a'
,
'b'
,
'o'
,
'u'
,
't'
,
':'
,
'b'
,
'l'
,
'a'
,
'n'
,
'k'
,
0
};
static
const
WCHAR
emptyW
[]
=
{
0
};
static
VARIANT_BOOL
exvb
;
static
IWebBrowser2
*
wb
;
...
...
@@ -132,6 +133,26 @@ static const char *debugstr_guid(REFIID riid)
return
buf
;
}
#define test_LocationURL(a,b) _test_LocationURL(__LINE__,a,b)
static
void
_test_LocationURL
(
unsigned
line
,
IUnknown
*
unk
,
LPCWSTR
exurl
)
{
IWebBrowser2
*
wb
;
BSTR
url
=
(
void
*
)
0xdeadbeef
;
HRESULT
hres
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IWebBrowser2
,
(
void
**
)
&
wb
);
ok
(
hres
==
S_OK
,
"Could not get IWebBrowser2 interface: %08x
\n
"
,
hres
);
if
(
FAILED
(
hres
))
return
;
hres
=
IWebBrowser2_get_LocationURL
(
wb
,
&
url
);
ok_
(
__FILE__
,
line
)
(
hres
==
(
*
exurl
?
S_OK
:
S_FALSE
),
"get_LocationURL failed: %08x
\n
"
,
hres
);
ok_
(
__FILE__
,
line
)
(
!
lstrcmpW
(
url
,
exurl
),
"unexpected URL: %s
\n
"
,
debugstr_w
(
url
));
SysFreeString
(
url
);
IWebBrowser2_Release
(
wb
);
}
static
HRESULT
QueryInterface
(
REFIID
,
void
**
);
static
HRESULT
WINAPI
OleCommandTarget_QueryInterface
(
IOleCommandTarget
*
iface
,
...
...
@@ -1845,6 +1866,8 @@ static void test_Navigate2(IUnknown *unk)
if
(
FAILED
(
hres
))
return
;
test_LocationURL
(
unk
,
emptyW
);
V_VT
(
&
url
)
=
VT_BSTR
;
V_BSTR
(
&
url
)
=
SysAllocString
(
about_blankW
);
...
...
@@ -1943,6 +1966,7 @@ static void test_WebBrowser(void)
test_QueryInterface
(
unk
);
test_ClassInfo
(
unk
);
test_LocationURL
(
unk
,
emptyW
);
test_ConnectionPoint
(
unk
,
TRUE
);
test_ClientSite
(
unk
,
&
ClientSite
);
test_Extent
(
unk
);
...
...
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