Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Tests: Improved manual tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Aug 22, 2019
1 parent 7d45071 commit c3c0e4a
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 20 deletions.
30 changes: 28 additions & 2 deletions tests/manual/imagestyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,20 @@ ClassicEditor
plugins: [
ArticlePluginSet
],
toolbar: [ 'heading', '|', 'undo', 'redo' ],
toolbar: [
'heading',
'|',
'bold',
'italic',
'link',
'bulletedList',
'numberedList',
'blockQuote',
'insertTable',
'mediaEmbed',
'undo',
'redo'
],
image: {
toolbar: [ 'imageStyle:full', 'imageStyle:side' ]
}
Expand All @@ -30,7 +43,20 @@ ClassicEditor
plugins: [
ArticlePluginSet
],
toolbar: [ 'heading', '|', 'undo', 'redo' ],
toolbar: [
'heading',
'|',
'bold',
'italic',
'link',
'bulletedList',
'numberedList',
'blockQuote',
'insertTable',
'mediaEmbed',
'undo',
'redo'
],
image: {
styles: [ 'alignLeft', 'alignCenter', 'alignRight' ],
toolbar: [ 'imageStyle:alignLeft', 'imageStyle:alignCenter', 'imageStyle:alignRight' ]
Expand Down
36 changes: 18 additions & 18 deletions tests/manual/imageupload.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,31 @@
/* globals window, document, console */

import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
import Clipboard from '@ckeditor/ckeditor5-clipboard/src/clipboard';
import Enter from '@ckeditor/ckeditor5-enter/src/enter';
import Heading from '@ckeditor/ckeditor5-heading/src/heading';
import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic';
import List from '@ckeditor/ckeditor5-list/src/list';
import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
import Typing from '@ckeditor/ckeditor5-typing/src/typing';
import Undo from '@ckeditor/ckeditor5-undo/src/undo';
import { UploadAdapterMock } from '@ckeditor/ckeditor5-upload/tests/_utils/mocks';
import ImageStyle from '../../src/imagestyle';
import ImageToolbar from '../../src/imagetoolbar';
import Image from '../../src/image';
import ImageCaption from '../../src/imagecaption';
import ArticlePluginSet from '@ckeditor/ckeditor5-core/tests/_utils/articlepluginset';
import ImageUpload from '../../src/imageupload';

import { UploadAdapterMock } from '@ckeditor/ckeditor5-upload/tests/_utils/mocks';

const buttonContainer = document.getElementById( 'button-container' );

ClassicEditor
.create( document.querySelector( '#editor' ), {
plugins: [
Enter, Typing, Paragraph, Heading, Undo, Bold, Italic, Heading, List, Image, ImageToolbar, Clipboard,
ImageCaption, ImageStyle, ImageUpload
plugins: [ ArticlePluginSet, ImageUpload ],
toolbar: [
'heading',
'|',
'bold',
'italic',
'link',
'bulletedList',
'numberedList',
'blockQuote',
'imageUpload',
'insertTable',
'mediaEmbed',
'undo',
'redo'
],
toolbar: [ 'heading', '|', 'undo', 'redo', 'bold', 'italic', 'bulletedList', 'numberedList', 'imageUpload' ],
image: {
toolbar: [ 'imageStyle:full', 'imageStyle:side', '|', 'imageTextAlternative' ]
}
Expand Down

0 comments on commit c3c0e4a

Please sign in to comment.