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

Commit

Permalink
Simplified manual tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed May 3, 2017
1 parent cc9f4b5 commit d913617
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 71 deletions.
4 changes: 2 additions & 2 deletions tests/manual/autohoist.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<div id="editor">
<p>Lorem ipsum dolor sit amet. <img src="sample.jpg" alt="" /> Lorem ipsum dolor sit amet.</p>
<p>Lorem ipsum dolor sit amet. <img src="sample.jpg" alt="alt text" /> Lorem ipsum dolor sit amet.</p>
</div>

<br /><br />

<div>
<p>Lorem ipsum dolor sit amet.</p>
<p>Foo <img src="sample.jpg" alt="" height="50%" width="50%" /> Bar</p>
<p>Foo <img src="sample.jpg" alt="pasted image alt" style="width: 30%" /> Bar</p>
<p>Lorem ipsum dolor sit amet.</p>
</div>

22 changes: 10 additions & 12 deletions tests/manual/autohoist.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@
/* global document, console, window */

import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classic';
import Enter from '@ckeditor/ckeditor5-enter/src/enter';
import Typing from '@ckeditor/ckeditor5-typing/src/typing';
import EssentialsPreset from '@ckeditor/ckeditor5-presets/src/essentials';
import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
import Heading from '@ckeditor/ckeditor5-heading/src/heading';
import Image from '../../src/image';
import ImageCaption from '../../src/imagecaption';
import Undo from '@ckeditor/ckeditor5-undo/src/undo';
import Clipboard from '@ckeditor/ckeditor5-clipboard/src/clipboard';
import ImageToolbar from '../../src/imagetoolbar';
import ImageStyle from '../../src/imagestyle';
import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
Expand All @@ -22,17 +19,18 @@ import List from '@ckeditor/ckeditor5-list/src/list';

ClassicEditor.create( document.querySelector( '#editor' ), {
plugins: [
Enter, Typing, Paragraph, Heading, Image, ImageToolbar,
Undo, Clipboard, ImageCaption, ImageStyle, Bold, Italic, Heading, List
EssentialsPreset,
Paragraph, Heading, Image, ImageToolbar,
ImageCaption, ImageStyle, Bold, Italic, Heading, List
],
toolbar: [ 'headings', 'undo', 'redo', 'bold', 'italic', 'bulletedList', 'numberedList' ],
image: {
toolbar: [ 'imageStyleFull', 'imageStyleSide', '|' , 'imageTextAlternative' ]
}
} )
.then( editor => {
window.editor = editor;
} )
.catch( err => {
console.error( err.stack );
} );
.then( editor => {
window.editor = editor;
} )
.catch( err => {
console.error( err.stack );
} );
7 changes: 4 additions & 3 deletions tests/manual/autohoist.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## `<img>` autohoisting.

* Image should be loaded.
* It should work normally.
* Try copy-pasting image below editor (by making selection containing content from all three paragraphs).
1. Check the editor with paragrah + image + paragraph was loaded and is fully functional.
1. Try copy-pasting the content below the editor into the editor.
* Copy the entire content.
* Copy just the image (ideally, without any spaces around).
9 changes: 0 additions & 9 deletions tests/manual/nofigure.html

This file was deleted.

38 changes: 0 additions & 38 deletions tests/manual/nofigure.js

This file was deleted.

7 changes: 0 additions & 7 deletions tests/manual/nofigure.md

This file was deleted.

0 comments on commit d913617

Please sign in to comment.