Răsfoiți Sursa

Aligned manual tests with engine chamges.

Oskar Wróbel 8 ani în urmă
părinte
comite
dbd6a4b217

+ 1 - 1
packages/ckeditor5-typing/tests/manual/52/1.js

@@ -14,7 +14,7 @@ import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials';
 import { getData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
 
 window.setInterval( function() {
-	console.log( getData( window.editor.document ) );
+	console.log( getData( window.editor.model.document ) );
 }, 3000 );
 
 ClassicEditor

+ 1 - 1
packages/ckeditor5-typing/tests/manual/82/1.js

@@ -12,7 +12,7 @@ import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials';
 import { getData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
 
 window.setInterval( function() {
-	console.log( getData( window.editor.document ) );
+	console.log( getData( window.editor.model.document ) );
 }, 3000 );
 
 ClassicEditor

+ 1 - 1
packages/ckeditor5-typing/tests/manual/86/1.js

@@ -11,7 +11,7 @@ import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
 import { getData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
 
 window.setInterval( function() {
-	console.log( getData( window.editor.document ) );
+	console.log( getData( window.editor.model.document ) );
 }, 3000 );
 
 ClassicEditor

+ 1 - 1
packages/ckeditor5-typing/tests/manual/delete.js

@@ -16,7 +16,7 @@ import { getData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
 window.getData = getData;
 
 window.setInterval( function() {
-	console.log( getData( window.editor.document ) );
+	console.log( getData( window.editor.model.document ) );
 }, 3000 );
 
 ClassicEditor

+ 1 - 1
packages/ckeditor5-typing/tests/manual/input.js

@@ -14,7 +14,7 @@ import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials';
 import { getData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
 
 window.setInterval( function() {
-	console.log( getData( window.editor.document ) );
+	console.log( getData( window.editor.model.document ) );
 }, 3000 );
 
 ClassicEditor

+ 6 - 6
packages/ckeditor5-typing/tests/manual/nbsp.js

@@ -20,21 +20,21 @@ ClassicEditor
 	.then( editor => {
 		window.editor = editor;
 
-		editor.document.schema.allow( { name: '$text', inside: '$root' } );
+		editor.model.schema.allow( { name: '$text', inside: '$root' } );
 
 		const editable = editor.ui.view.editableElement;
 
 		document.querySelector( '#nbsp' ).addEventListener( 'click', () => {
-			editor.document.enqueueChanges( () => {
-				editor.document.selection.collapseToStart();
-				editor.document.batch().insertText( '\u00A0', editor.document.selection.getFirstPosition() );
+			editor.model.change( writer => {
+				editor.model.document.selection.collapseToStart();
+				writer.insertText( '\u00A0', editor.model.document.selection.getFirstPosition() );
 			} );
 		} );
 
-		editor.document.on( 'changesDone', () => {
+		editor.model.document.on( 'changesDone', () => {
 			console.clear();
 
-			const modelData = getModelData( editor.document, { withoutSelection: true } );
+			const modelData = getModelData( editor.model.document, { withoutSelection: true } );
 			console.log( 'model:', modelData.replace( /\u00A0/g, ' ' ) );
 
 			const viewData = getViewData( editor.editing.view, { withoutSelection: true } );

+ 1 - 1
packages/ckeditor5-typing/tests/manual/spellchecking.js

@@ -14,7 +14,7 @@ import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials';
 import { getData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
 
 window.setInterval( function() {
-	console.log( getData( window.editor.document ) );
+	console.log( getData( window.editor.model.document ) );
 }, 3000 );
 
 ClassicEditor.create( document.querySelector( '#editor' ), {