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
e629e049
Commit
e629e049
authored
Jul 23, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLDocument2::[get|put]_title tests.
parent
8e6dbe75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
dom.c
dlls/mshtml/tests/dom.c
+29
-0
No files found.
dlls/mshtml/tests/dom.c
View file @
e629e049
...
...
@@ -1361,6 +1361,30 @@ static void _test_node_remove_child(unsigned line, IUnknown *unk, IHTMLDOMNode *
IHTMLDOMNode_Release
(
new_node
);
}
#define test_doc_title(d,t) _test_doc_title(__LINE__,d,t)
static
void
_test_doc_title
(
unsigned
line
,
IHTMLDocument2
*
doc
,
const
char
*
extitle
)
{
BSTR
title
=
NULL
;
HRESULT
hres
;
hres
=
IHTMLDocument2_get_title
(
doc
,
&
title
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"get_title failed: %08x
\n
"
,
hres
);
ok_
(
__FILE__
,
line
)
(
!
strcmp_wa
(
title
,
extitle
),
"unexpected title %s
\n
"
,
dbgstr_w
(
title
));
SysFreeString
(
title
);
}
#define test_doc_set_title(d,t) _test_doc_set_title(__LINE__,d,t)
static
void
_test_doc_set_title
(
unsigned
line
,
IHTMLDocument2
*
doc
,
const
char
*
title
)
{
BSTR
tmp
;
HRESULT
hres
;
tmp
=
a2bstr
(
title
);
hres
=
IHTMLDocument2_put_title
(
doc
,
tmp
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"get_title failed: %08x
\n
"
,
hres
);
SysFreeString
(
tmp
);
}
static
void
test_elem_col_item
(
IHTMLElementCollection
*
col
,
LPCWSTR
n
,
const
elem_type_t
*
elem_types
,
long
len
)
{
...
...
@@ -1978,6 +2002,7 @@ static void test_defaults(IHTMLDocument2 *doc)
IHTMLStyleSheetsCollection_Release
(
stylesheetcol
);
test_default_selection
(
doc
);
test_doc_title
(
doc
,
""
);
}
static
void
test_stylesheet
(
IDispatch
*
disp
)
...
...
@@ -2332,6 +2357,10 @@ static void test_elems(IHTMLDocument2 *doc)
test_stylesheets
(
doc
);
test_create_option_elem
(
doc
);
test_doc_title
(
doc
,
"test"
);
test_doc_set_title
(
doc
,
"test title"
);
test_doc_title
(
doc
,
"test title"
);
}
static
void
test_create_elems
(
IHTMLDocument2
*
doc
)
...
...
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