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
ecc27086
Commit
ecc27086
authored
Aug 03, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ieframe: Moved intshcut.c tests to ieframe.
parent
7891fc45
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
27 deletions
+7
-27
Makefile.in
dlls/ieframe/tests/Makefile.in
+1
-0
intshcut.c
dlls/ieframe/tests/intshcut.c
+5
-26
Makefile.in
dlls/shdocvw/tests/Makefile.in
+0
-1
shortcut.c
dlls/shdocvw/tests/shortcut.c
+1
-0
No files found.
dlls/ieframe/tests/Makefile.in
View file @
ecc27086
...
...
@@ -3,6 +3,7 @@ IMPORTS = ole32 oleaut32 user32 gdi32
C_SRCS
=
\
ie.c
\
intshcut.c
\
webbrowser.c
@MAKE_TEST_RULES@
dlls/
shdocvw
/tests/intshcut.c
→
dlls/
ieframe
/tests/intshcut.c
View file @
ecc27086
...
...
@@ -29,7 +29,6 @@
#include "winreg.h"
#include "winerror.h"
#include "initguid.h"
#include "shlobj.h"
#include "shobjidl.h"
#include "shlguid.h"
...
...
@@ -180,20 +179,6 @@ static void _check_string_transform(unsigned line, IUniformResourceLocatorA *url
}
}
static
BOOL
check_ie
(
void
)
{
IHTMLDocument5
*
doc
;
HRESULT
hres
;
hres
=
CoCreateInstance
(
&
CLSID_HTMLDocument
,
NULL
,
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
,
&
IID_IHTMLDocument5
,
(
void
**
)
&
doc
);
if
(
FAILED
(
hres
))
return
FALSE
;
IHTMLDocument5_Release
(
doc
);
return
TRUE
;
}
static
void
test_ReadAndWriteProperties
(
void
)
{
int
iconIndex
=
7
;
...
...
@@ -217,6 +202,7 @@ static void test_ReadAndWriteProperties(void)
lstrcatW
(
fileNameW
,
shortcutW
);
hr
=
CoCreateInstance
(
&
CLSID_InternetShortcut
,
NULL
,
CLSCTX_ALL
,
&
IID_IUniformResourceLocatorA
,
(
void
**
)
&
urlA
);
ok
(
hr
==
S_OK
,
"Could not create CLSID_InternetShortcut instance: %08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
IPersistFile
*
pf
;
...
...
@@ -257,10 +243,9 @@ static void test_ReadAndWriteProperties(void)
urlA
->
lpVtbl
->
Release
(
urlA
);
IPropertySetStorage_Release
(
pPropSetStg
);
}
else
skip
(
"could not create a CLSID_InternetShortcut for property tests, hr=0x%x
\n
"
,
hr
);
hr
=
CoCreateInstance
(
&
CLSID_InternetShortcut
,
NULL
,
CLSCTX_ALL
,
&
IID_IUniformResourceLocatorA
,
(
void
**
)
&
urlAFromFile
);
ok
(
hr
==
S_OK
,
"Could not create CLSID_InternetShortcut instance: %08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
IPropertySetStorage
*
pPropSetStg
;
...
...
@@ -306,8 +291,6 @@ static void test_ReadAndWriteProperties(void)
urlAFromFile
->
lpVtbl
->
Release
(
urlAFromFile
);
DeleteFileW
(
fileNameW
);
}
else
skip
(
"could not create a CLSID_InternetShortcut for property tests, hr=0x%x
\n
"
,
hr
);
}
static
void
test_NullURLs
(
void
)
...
...
@@ -409,10 +392,9 @@ static void test_InternetShortcut(void)
HRESULT
hres
;
hres
=
CoCreateInstance
(
&
CLSID_InternetShortcut
,
NULL
,
CLSCTX_ALL
,
&
IID_IUniformResourceLocatorA
,
(
void
**
)
&
url
);
if
(
FAILED
(
hres
))
{
win_skip
(
"Could not create CLSID_InternetShortcut instance: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"Could not create CLSID_InternetShortcut instance: %08x
\n
"
,
hres
);
if
(
FAILED
(
hres
))
return
;
}
test_Aggregability
();
test_QueryInterface
();
...
...
@@ -426,10 +408,7 @@ START_TEST(intshcut)
{
OleInitialize
(
NULL
);
if
(
check_ie
())
test_InternetShortcut
();
else
win_skip
(
"Too old IE
\n
"
);
test_InternetShortcut
();
OleUninitialize
();
}
dlls/shdocvw/tests/Makefile.in
View file @
ecc27086
...
...
@@ -2,7 +2,6 @@ TESTDLL = shdocvw.dll
IMPORTS
=
shell32 ole32 oleaut32 advapi32
C_SRCS
=
\
intshcut.c
\
shdocvw.c
\
shortcut.c
...
...
dlls/shdocvw/tests/shortcut.c
View file @
ecc27086
...
...
@@ -40,6 +40,7 @@
#include "winbase.h"
#include "winreg.h"
#include "initguid.h"
#include "shlobj.h"
#include "shobjidl.h"
#include "shlguid.h"
...
...
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