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
094b6688
Commit
094b6688
authored
Sep 09, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Sep 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml/tests: Fix some test failures on Win98 and WinME.
parent
2c2d0a41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
htmldoc.c
dlls/mshtml/tests/htmldoc.c
+15
-13
No files found.
dlls/mshtml/tests/htmldoc.c
View file @
094b6688
...
@@ -202,6 +202,13 @@ static const char *debugstr_guid(REFIID riid)
...
@@ -202,6 +202,13 @@ static const char *debugstr_guid(REFIID riid)
return
buf
;
return
buf
;
}
}
static
int
strcmp_wa
(
LPCWSTR
strw
,
const
char
*
stra
)
{
CHAR
buf
[
512
];
WideCharToMultiByte
(
CP_ACP
,
0
,
strw
,
-
1
,
buf
,
sizeof
(
buf
),
NULL
,
NULL
);
return
lstrcmpA
(
stra
,
buf
);
}
static
BOOL
is_english
(
void
)
static
BOOL
is_english
(
void
)
{
{
return
PRIMARYLANGID
(
GetSystemDefaultLangID
())
==
LANG_ENGLISH
return
PRIMARYLANGID
(
GetSystemDefaultLangID
())
==
LANG_ENGLISH
...
@@ -2553,18 +2560,13 @@ static void _test_readyState(unsigned line, IUnknown *unk)
...
@@ -2553,18 +2560,13 @@ static void _test_readyState(unsigned line, IUnknown *unk)
VARIANT
out
;
VARIANT
out
;
HRESULT
hres
;
HRESULT
hres
;
static
const
WCHAR
wszUninitialized
[]
=
{
'u'
,
'n'
,
'i'
,
'n'
,
'i'
,
't'
,
'i'
,
'a'
,
'l'
,
'i'
,
'z'
,
'e'
,
'd'
,
0
};
static
const
LPCSTR
expected_state
[]
=
{
static
const
WCHAR
wszLoading
[]
=
{
'l'
,
'o'
,
'a'
,
'd'
,
'i'
,
'n'
,
'g'
,
0
};
"uninitialized"
,
static
const
WCHAR
wszInteractive
[]
=
{
'i'
,
'n'
,
't'
,
'e'
,
'r'
,
'a'
,
'c'
,
't'
,
'i'
,
'v'
,
'e'
,
0
};
"loading"
,
static
const
WCHAR
wszComplete
[]
=
{
'c'
,
'o'
,
'm'
,
'p'
,
'l'
,
'e'
,
't'
,
'e'
,
0
};
static
const
LPCWSTR
expected_state
[]
=
{
wszUninitialized
,
wszLoading
,
NULL
,
NULL
,
wszInteractive
,
"interactive"
,
wszComplete
,
"complete"
,
wszUninitialized
"uninitialized"
};
};
if
(
!
unk
)
if
(
!
unk
)
...
@@ -2581,11 +2583,11 @@ static void _test_readyState(unsigned line, IUnknown *unk)
...
@@ -2581,11 +2583,11 @@ static void _test_readyState(unsigned line, IUnknown *unk)
hres
=
IHTMLDocument2_get_readyState
(
htmldoc
,
&
state
);
hres
=
IHTMLDocument2_get_readyState
(
htmldoc
,
&
state
);
ok
(
hres
==
S_OK
,
"get_ReadyState failed: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"get_ReadyState failed: %08x
\n
"
,
hres
);
if
(
!
lstrcmpW
(
state
,
wszInteractive
)
&&
load_state
==
LD_LOADING
)
if
(
!
strcmp_wa
(
state
,
"interactive"
)
&&
load_state
==
LD_LOADING
)
load_state
=
LD_INTERACTIVE
;
load_state
=
LD_INTERACTIVE
;
ok_
(
__FILE__
,
line
)
ok_
(
__FILE__
,
line
)
(
!
lstrcmpW
(
state
,
expected_state
[
load_state
]),
"unexpected state %s, expected %d
\n
"
,
(
!
strcmp_wa
(
state
,
expected_state
[
load_state
]),
"unexpected state %s, expected %d
\n
"
,
wine_dbgstr_w
(
state
),
load_state
);
wine_dbgstr_w
(
state
),
load_state
);
SysFreeString
(
state
);
SysFreeString
(
state
);
...
...
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