Skip to content

Commit

Permalink
Make manual tests mobile- & built-friendly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Comandeer authored and mlewand committed Jun 21, 2018
1 parent aeccf57 commit 19f0a99
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 17 deletions.
8 changes: 7 additions & 1 deletion tests/core/config/manual/extraplugins.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
</textarea>
<script>
var editor = CKEDITOR.replace( 'editor1', {
extraPlugins: 'basicstyles, toolbar'
plugins: 'wysiwygarea',
extraPlugins: 'basicstyles, toolbar',
on: {
instanceReady: function() {
this.setData( '<p>I have following plugins loaded: ' + CKEDITOR.tools.objectKeys( this.plugins ) + '</p>' );
}
}
} );
</script>
15 changes: 10 additions & 5 deletions tests/core/config/manual/extraplugins.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
@bender-tags: feature, 4.10.0, 1712
@bender-ui: collapsed
@bender-ckeditor-plugins: wysiwygarea

1. Open console.
2. Check if plugins loaded correctly with an editor.
1. Check if plugins listed inside the editor are the same as listed below.

## Expected

Toolbar and basicstyles plugins has been loaded. There are no console errors.
All listed plugins have been loaded (list below).

## Unexpected

There are console errors or basicstyles and toolbar plugins are not loaded.
The loaded plugins are not the same as the ones in the list.

## Expected plugins

* wysiwygarea
* basicstyles
* toolbar
* button
7 changes: 6 additions & 1 deletion tests/core/config/manual/plugins.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
</textarea>
<script>
var editor = CKEDITOR.replace( 'editor1', {
plugins: 'wysiwygarea,basicstyles, toolbar '
plugins: 'wysiwygarea,basicstyles, toolbar ',
on: {
instanceReady: function() {
this.setData( '<p>I have following plugins loaded: ' + CKEDITOR.tools.objectKeys( this.plugins ) + '</p>' );
}
}
} );
</script>
14 changes: 10 additions & 4 deletions tests/core/config/manual/plugins.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
@bender-tags: feature, 4.10.0, 1712
@bender-ui: collapsed

1. Open console.
2. Check if plugins loaded correctly with an editor.
1. Check if plugins listed inside the editor are the same as listed below.

## Expected

Toolbar, basicstyles and wysiwygarea plugins has been loaded. There are no console errors.
All listed plugins have been loaded (list below).

## Unexpected

There are console errors or expected plugins are not loaded.
The loaded plugins are not the same as the ones in the list.

## Expected plugins

* wysiwygarea
* basicstyles
* toolbar
* button
8 changes: 7 additions & 1 deletion tests/core/config/manual/removeplugins.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
</textarea>
<script>
var editor = CKEDITOR.replace( 'editor1', {
removePlugins: 'basicstyles, toolbar'
plugins: 'wysiwygarea,basicstyles,toolbar',
removePlugins: 'basicstyles, toolbar',
on: {
instanceReady: function() {
this.setData( '<p>I have following plugins loaded: ' + CKEDITOR.tools.objectKeys( this.plugins ) + '</p>' );
}
}
} );
</script>
12 changes: 7 additions & 5 deletions tests/core/config/manual/removeplugins.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
@bender-tags: feature, 4.10.0, 1712
@bender-ui: collapsed
@bender-ckeditor-plugins: wysiwygarea, basicstyles, toolbar

1. Open console.
2. Check if plugins loaded correctly with an editor.
1. Check if plugins listed inside the editor are the same as listed below.

## Expected

Toolbar and basicstyles plugins has not been loaded. There are no console errors.
All listed plugins have been loaded (list below).

## Unexpected

There are console errors or basicstyles and toolbar plugins has not been loaded.
The loaded plugins are not the same as the ones in the list.

## Expected plugins

* wysiwygarea

0 comments on commit 19f0a99

Please sign in to comment.