Explorar o código

Improve manual test.

Piotr Jasiun %!s(int64=9) %!d(string=hai) anos
pai
achega
935eadc30d

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

@@ -17,7 +17,7 @@ import BuildModelConverterFor from '/ckeditor5/engine/conversion/model-converter
 
 const model = new Document();
 window.model = model;
-model.createRoot();
+const modelRoot = model.createRoot();
 
 const editing = new EditingController( model );
 editing.createRoot( document.getElementById( 'editor' ) );
@@ -32,7 +32,9 @@ const modelData = new ModelDocumentFragment( parse(
 )._children );
 
 model.enqueueChanges( () => {
-	model.batch().insert( ModelPosition.createAt( model.getRoot(), 0 ), modelData );
+	model.batch().insert( ModelPosition.createAt( modelRoot, 0 ), modelData );
+	model.selection.addRange( ModelRange.createFromParentsAndOffsets(
+		modelRoot.getChild( 0 ), 0, modelRoot.getChild( 0 ), 0 ) );
 } );
 
 // enter

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

@@ -1,3 +1,7 @@
 @bender-ui: collapsed
 
-TODO
+ * Changing selection within editor should not causes any errors.
+ * Pressing enter should split the block.
+ * Pressing delete should remove character.
+
+Note: this is temporary manual test, until there is no editor manual test.