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
edf74c0b
Commit
edf74c0b
authored
Jul 30, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite/tests: Added some tests for inline object and ranges handling.
parent
289043f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
1 deletion
+37
-1
layout.c
dlls/dwrite/tests/layout.c
+37
-1
No files found.
dlls/dwrite/tests/layout.c
View file @
edf74c0b
...
@@ -322,7 +322,7 @@ static void test_SetInlineObject(void)
...
@@ -322,7 +322,7 @@ static void test_SetInlineObject(void)
static
const
WCHAR
strW
[]
=
{
's'
,
't'
,
'r'
,
'i'
,
'n'
,
'g'
,
0
};
static
const
WCHAR
strW
[]
=
{
's'
,
't'
,
'r'
,
'i'
,
'n'
,
'g'
,
0
};
static
const
WCHAR
ruW
[]
=
{
'r'
,
'u'
,
0
};
static
const
WCHAR
ruW
[]
=
{
'r'
,
'u'
,
0
};
IDWriteInlineObject
*
inlineobj
,
*
inlineobj2
;
IDWriteInlineObject
*
inlineobj
,
*
inlineobj2
,
*
inlinetest
;
IDWriteTextFormat
*
format
;
IDWriteTextFormat
*
format
;
IDWriteTextLayout
*
layout
;
IDWriteTextLayout
*
layout
;
DWRITE_TEXT_RANGE
range
;
DWRITE_TEXT_RANGE
range
;
...
@@ -341,18 +341,54 @@ static void test_SetInlineObject(void)
...
@@ -341,18 +341,54 @@ static void test_SetInlineObject(void)
hr
=
IDWriteFactory_CreateEllipsisTrimmingSign
(
factory
,
format
,
&
inlineobj2
);
hr
=
IDWriteFactory_CreateEllipsisTrimmingSign
(
factory
,
format
,
&
inlineobj2
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
inlinetest
=
(
void
*
)
0x1
;
hr
=
IDWriteTextLayout_GetInlineObject
(
layout
,
0
,
&
inlinetest
,
NULL
);
todo_wine
{
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
inlinetest
==
NULL
,
"got %p
\n
"
,
inlineobj
);
}
range
.
startPosition
=
0
;
range
.
startPosition
=
0
;
range
.
length
=
2
;
range
.
length
=
2
;
hr
=
IDWriteTextLayout_SetInlineObject
(
layout
,
inlineobj
,
range
);
hr
=
IDWriteTextLayout_SetInlineObject
(
layout
,
inlineobj
,
range
);
todo_wine
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
inlinetest
=
(
void
*
)
0x1
;
hr
=
IDWriteTextLayout_GetInlineObject
(
layout
,
2
,
&
inlinetest
,
NULL
);
todo_wine
{
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
inlinetest
==
NULL
,
"got %p
\n
"
,
inlinetest
);
}
inlinetest
=
NULL
;
hr
=
IDWriteTextLayout_GetInlineObject
(
layout
,
0
,
&
inlinetest
,
NULL
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
ok
(
inlinetest
==
inlineobj
,
"got %p
\n
"
,
inlinetest
);
IDWriteInlineObject_Release
(
inlinetest
);
}
range
.
startPosition
=
1
;
range
.
startPosition
=
1
;
range
.
length
=
1
;
range
.
length
=
1
;
hr
=
IDWriteTextLayout_SetInlineObject
(
layout
,
inlineobj2
,
range
);
hr
=
IDWriteTextLayout_SetInlineObject
(
layout
,
inlineobj2
,
range
);
todo_wine
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
inlinetest
=
NULL
;
hr
=
IDWriteTextLayout_GetInlineObject
(
layout
,
1
,
&
inlinetest
,
NULL
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
ok
(
inlinetest
==
inlineobj2
,
"got %p
\n
"
,
inlinetest
);
IDWriteInlineObject_Release
(
inlinetest
);
}
inlinetest
=
NULL
;
hr
=
IDWriteTextLayout_GetInlineObject
(
layout
,
0
,
&
inlinetest
,
NULL
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
ok
(
inlinetest
==
inlineobj
,
"got %p
\n
"
,
inlinetest
);
IDWriteInlineObject_Release
(
inlinetest
);
}
range
.
startPosition
=
1
;
range
.
startPosition
=
1
;
range
.
length
=
1
;
range
.
length
=
1
;
hr
=
IDWriteTextLayout_SetInlineObject
(
layout
,
inlineobj
,
range
);
hr
=
IDWriteTextLayout_SetInlineObject
(
layout
,
inlineobj
,
range
);
...
...
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