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

Fix failing test after changes in VirtualTestEditor #1751

Merged
merged 1 commit into from
Jun 25, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tests/dev-utils/enableenginedebug.js
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,9 @@ describe( 'debug tools', () => {
const view = editor.editing.view;
const viewDoc = view.document;

// Reset model document version to ensure it will start at 0.
model.document.version = 0;

model.change( () => {
const insert = new InsertOperation( ModelPosition._createAt( modelRoot, 0 ), new ModelText( 'foobar' ), 0 );
model.applyOperation( insert );
Expand Down