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

Commit

Permalink
Simplified manual test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Mar 9, 2017
1 parent a31847a commit df5eeee
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 29 deletions.
17 changes: 6 additions & 11 deletions tests/manual/20/1.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,14 @@ import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
import Undo from '@ckeditor/ckeditor5-undo/src/undo';
import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic';
import { getData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';

window.setInterval( function() {
console.log( getData( window.editor.document ) );
}, 3000 );

ClassicEditor.create( document.querySelector( '#editor' ), {
plugins: [ Enter, Typing, Paragraph, Undo, Bold, Italic, Heading ],
toolbar: [ 'headings', 'bold', 'italic', 'undo', 'redo' ]
} )
.then( editor => {
window.editor = editor;
} )
.catch( err => {
console.error( err.stack );
} );
.then( editor => {
window.editor = editor;
} )
.catch( err => {
console.error( err.stack );
} );
17 changes: 6 additions & 11 deletions tests/manual/21/1.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,14 @@ import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
import Undo from '@ckeditor/ckeditor5-undo/src/undo';
import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic';
import { getData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';

window.setInterval( function() {
console.log( getData( window.editor.document ) );
}, 3000 );

ClassicEditor.create( document.querySelector( '#editor' ), {
plugins: [ Enter, Typing, Paragraph, Undo, Bold, Italic, Heading ],
toolbar: [ 'headings', 'bold', 'italic', 'undo', 'redo' ]
} )
.then( editor => {
window.editor = editor;
} )
.catch( err => {
console.error( err.stack );
} );
.then( editor => {
window.editor = editor;
} )
.catch( err => {
console.error( err.stack );
} );
14 changes: 7 additions & 7 deletions tests/manual/40/1.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
### Issue [#40](https://github.com/ckeditor/ckeditor5-typing/issues/40) manual test
## Issue [#40](https://github.com/ckeditor/ckeditor5-typing/issues/40) manual test

- select fragment of Heading and Paragraph,
```html
<h2>Head{ing</h2>
<p>Parag}raph</p>
```
- delete selected text.
* select a fragment of the heading and paragraph,
```html
<h2>Head{ing</h2>
<p>Parag}raph</p>
```
* delete the selected text.

Expected result:
```html
Expand Down

0 comments on commit df5eeee

Please sign in to comment.