Browse Source

Added another step to manual test.

Oskar Wróbel 7 years ago
parent
commit
84969aecca

+ 1 - 0
packages/ckeditor5-engine/tests/manual/twostepscarret.html

@@ -1,4 +1,5 @@
 <div id="editor">
 	<p>Foo <u>bar</u> biz</p>
+	<p>Foo <u>bar</u><i>biz</i> buz?</p>
 	<p>Foo <b>bar</b> biz</p>
 </div>

+ 4 - 2
packages/ckeditor5-engine/tests/manual/twostepscarret.js

@@ -10,15 +10,17 @@ import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials';
 import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
 import Underline from '@ckeditor/ckeditor5-basic-styles/src/underline';
 import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
+import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic';
 
 import bindTwoStepCaretToAttribute from '../../src/utils/bindtwostepcarettoattribute';
 
 ClassicEditor
 	.create( document.querySelector( '#editor' ), {
-		plugins: [ Essentials, Paragraph, Underline, Bold ],
-		toolbar: [ 'undo', 'redo', '|', 'bold', 'underline' ]
+		plugins: [ Essentials, Paragraph, Underline, Bold, Italic ],
+		toolbar: [ 'undo', 'redo', '|', 'bold', 'underline', 'italic' ]
 	} )
 	.then( editor => {
+		bindTwoStepCaretToAttribute( editor, editor, 'italic' );
 		bindTwoStepCaretToAttribute( editor, editor, 'underline' );
 	} )
 	.catch( err => {

+ 5 - 1
packages/ckeditor5-engine/tests/manual/twostepscarret.md

@@ -42,5 +42,9 @@
 	- underline button should be not selected
 	- bold button should stay selected
 
+### Moving from one bound attribute to another
+1. Make sure that moving between underline and italic text from second paragraph works the same way as above.
+
+
 ### Not bounded attribute
-Just make sure that two-steps caret movement is disabled for bold text from the second paragraph.
+Just make sure that two-steps caret movement is disabled for bold text from the third paragraph.