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
ab199297
Commit
ab199297
authored
Sep 01, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Fixed script tests on IE6 and IE7.
parent
4cfa6caf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
script.c
dlls/mshtml/tests/script.c
+9
-13
No files found.
dlls/mshtml/tests/script.c
View file @
ab199297
...
...
@@ -662,15 +662,6 @@ static void test_func(IDispatchEx *obj)
ok
(
V_DISPATCH
(
&
var
)
!=
NULL
,
"V_DISPATCH(var) == NULL
\n
"
);
disp
=
V_DISPATCH
(
&
var
);
memset
(
&
dp
,
0
,
sizeof
(
dp
));
memset
(
&
ei
,
0
,
sizeof
(
ei
));
VariantInit
(
&
var
);
hres
=
IDispatchEx_InvokeEx
(
obj
,
id
,
LOCALE_NEUTRAL
,
DISPATCH_PROPERTYGET
,
&
dp
,
&
var
,
&
ei
,
NULL
);
ok
(
hres
==
S_OK
,
"InvokeEx failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
var
)
==
VT_DISPATCH
,
"V_VT(var)=%d
\n
"
,
V_VT
(
&
var
));
ok
(
V_DISPATCH
(
&
var
)
==
disp
,
"V_DISPATCH(var) != disp
\n
"
);
VariantClear
(
&
var
);
hres
=
IDispatch_QueryInterface
(
disp
,
&
IID_IDispatchEx
,
(
void
**
)
&
dispex
);
IDispatch_Release
(
disp
);
ok
(
hres
==
S_OK
,
"Could not get IDispatchEx iface: %08x
\n
"
,
hres
);
...
...
@@ -681,10 +672,12 @@ static void test_func(IDispatchEx *obj)
memset
(
&
ei
,
0
,
sizeof
(
ei
));
VariantInit
(
&
var
);
hres
=
IDispatchEx_Invoke
(
dispex
,
DISPID_VALUE
,
&
IID_NULL
,
LOCALE_NEUTRAL
,
DISPATCH_METHOD
,
&
dp
,
&
var
,
&
ei
,
NULL
);
ok
(
hres
==
S_OK
,
"InvokeEx failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
var
)
==
VT_BSTR
,
"V_VT(var)=%d
\n
"
,
V_VT
(
&
var
));
ok
(
!
strcmp_wa
(
V_BSTR
(
&
var
),
"[object]"
),
"V_BSTR(var) = %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
var
)));
VariantClear
(
&
var
);
ok
(
hres
==
S_OK
||
broken
(
E_ACCESSDENIED
),
"InvokeEx failed: %08x
\n
"
,
hres
);
if
(
SUCCEEDED
(
hres
))
{
ok
(
V_VT
(
&
var
)
==
VT_BSTR
,
"V_VT(var)=%d
\n
"
,
V_VT
(
&
var
));
ok
(
!
strcmp_wa
(
V_BSTR
(
&
var
),
"[object]"
),
"V_BSTR(var) = %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
var
)));
VariantClear
(
&
var
);
}
dp
.
cArgs
=
1
;
dp
.
rgvarg
=
&
var
;
...
...
@@ -877,6 +870,9 @@ static HRESULT WINAPI ActiveScript_QueryInterface(IActiveScript *iface, REFIID r
return
S_OK
;
}
if
(
IsEqualGUID
(
&
IID_IActiveScriptDebug
,
riid
))
return
E_NOINTERFACE
;
ok
(
0
,
"unexpected riid %s
\n
"
,
debugstr_guid
(
riid
));
return
E_NOINTERFACE
;
}
...
...
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