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
4af60d77
Unverified
Commit
4af60d77
authored
Jan 16, 2019
by
Maciej Gołaszewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add memory leak test.
parent
f469dbc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
ckeditor.js
tests/ckeditor.js
+8
-1
No files found.
tests/ckeditor.js
View file @
4af60d77
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
import
DecoupledEditor
from
'../src/ckeditor'
;
import
DecoupledEditor
from
'../src/ckeditor'
;
import
BaseDecoupledEditor
from
'@ckeditor/ckeditor5-editor-decoupled/src/decouplededitor'
;
import
BaseDecoupledEditor
from
'@ckeditor/ckeditor5-editor-decoupled/src/decouplededitor'
;
import
{
describeMemoryUsage
,
testMemoryUsage
}
from
'@ckeditor/ckeditor5-core/tests/_utils/memory'
;
describe
(
'DecoupledEditor build'
,
()
=>
{
describe
(
'DecoupledEditor build'
,
()
=>
{
let
editor
,
editorData
,
editorElement
;
let
editor
,
editorData
,
editorElement
;
...
@@ -25,7 +26,7 @@ describe( 'DecoupledEditor build', () => {
...
@@ -25,7 +26,7 @@ describe( 'DecoupledEditor build', () => {
editor
=
null
;
editor
=
null
;
}
);
}
);
describe
(
'buid'
,
()
=>
{
describe
(
'bui
l
d'
,
()
=>
{
it
(
'contains plugins'
,
()
=>
{
it
(
'contains plugins'
,
()
=>
{
expect
(
DecoupledEditor
.
builtinPlugins
).
to
.
not
.
be
.
empty
;
expect
(
DecoupledEditor
.
builtinPlugins
).
to
.
not
.
be
.
empty
;
}
);
}
);
...
@@ -59,6 +60,12 @@ describe( 'DecoupledEditor build', () => {
...
@@ -59,6 +60,12 @@ describe( 'DecoupledEditor build', () => {
}
);
}
);
}
);
}
);
describeMemoryUsage
(
()
=>
{
testMemoryUsage
(
'should not grow on multiple create/destroy'
,
()
=>
DecoupledEditor
.
create
(
document
.
querySelector
(
'#mem-editor'
)
)
);
}
);
function
test
(
getEditorDataOrElement
)
{
function
test
(
getEditorDataOrElement
)
{
describe
(
'create()'
,
()
=>
{
describe
(
'create()'
,
()
=>
{
beforeEach
(
()
=>
{
beforeEach
(
()
=>
{
...
...
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