Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CKEditor 5 Custom Build
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Daniel Kaufmann
CKEditor 5 Custom Build
Commits
c28d3b68
Commit
c28d3b68
authored
Dec 31, 2019
by
panr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Decoupled Editor tests
parent
d4c8e8f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
ckeditor.js
tests/ckeditor.js
+13
-2
No files found.
tests/ckeditor.js
View file @
c28d3b68
...
...
@@ -192,6 +192,7 @@ describe( 'DecoupledEditor build', () => {
editor
.
setData
(
data
);
expect
(
editor
.
getData
()
).
to
.
equal
(
data
);
expect
(
editor
.
model
.
document
.
selection
.
getAttribute
(
'fontSize'
)
).
to
.
equal
(
'big'
);
}
);
it
(
'font family works'
,
()
=>
{
...
...
@@ -199,13 +200,23 @@ describe( 'DecoupledEditor build', () => {
editor
.
setData
(
data
);
expect
(
editor
.
getData
()
).
to
.
equal
(
data
);
expect
(
editor
.
model
.
document
.
selection
.
getAttribute
(
'fontFamily'
)
).
to
.
equal
(
'Georgia'
);
}
);
it
(
'
highlight
works'
,
()
=>
{
const
data
=
'<p><
mark class="marker-green">foo</mark
></p>'
;
it
(
'
font background color
works'
,
()
=>
{
const
data
=
'<p><
span style="background-color:gold;">foo</span
></p>'
;
editor
.
setData
(
data
);
expect
(
editor
.
getData
()
).
to
.
equal
(
data
);
expect
(
editor
.
model
.
document
.
selection
.
getAttribute
(
'fontBackgroundColor'
)
).
to
.
equal
(
'gold'
);
}
);
it
(
'font color works'
,
()
=>
{
const
data
=
'<p><span style="color:red;">foo</span></p>'
;
editor
.
setData
(
data
);
expect
(
editor
.
getData
()
).
to
.
equal
(
data
);
expect
(
editor
.
model
.
document
.
selection
.
getAttribute
(
'fontColor'
)
).
to
.
equal
(
'red'
);
}
);
it
(
'alignment works'
,
()
=>
{
...
...
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