From 8d45c1f40d5f4838098cd18e5cb3badd3da2cbec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Wr=C3=B3bel?= Date: Fri, 9 Aug 2019 00:24:30 +0200 Subject: [PATCH] Added very basic manual test for todo lists. --- tests/manual/todo-list.html | 22 ++++++++++++++++++++++ tests/manual/todo-list.js | 28 ++++++++++++++++++++++++++++ tests/manual/todo-list.md | 0 3 files changed, 50 insertions(+) create mode 100644 tests/manual/todo-list.html create mode 100644 tests/manual/todo-list.js create mode 100644 tests/manual/todo-list.md diff --git a/tests/manual/todo-list.html b/tests/manual/todo-list.html new file mode 100644 index 0000000..bc4914d --- /dev/null +++ b/tests/manual/todo-list.html @@ -0,0 +1,22 @@ +
+

This is a test for list feature.

+

Some more text for testing.

+ +

Paragraph.

+

Another testing paragraph.

+
    +
  1. Numbered list item 1
  2. +
+ +
diff --git a/tests/manual/todo-list.js b/tests/manual/todo-list.js new file mode 100644 index 0000000..fa94cdc --- /dev/null +++ b/tests/manual/todo-list.js @@ -0,0 +1,28 @@ +/** + * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +/* globals console, window, document */ + +import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor'; +import Enter from '@ckeditor/ckeditor5-enter/src/enter'; +import Typing from '@ckeditor/ckeditor5-typing/src/typing'; +import Heading from '@ckeditor/ckeditor5-heading/src/heading'; +import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph'; +import Undo from '@ckeditor/ckeditor5-undo/src/undo'; +import Clipboard from '@ckeditor/ckeditor5-clipboard/src/clipboard'; +import List from '../../src/list'; +import TodoList from '../../src/todolist'; + +ClassicEditor + .create( document.querySelector( '#editor' ), { + plugins: [ Enter, Typing, Heading, Paragraph, Undo, List, TodoList, Clipboard ], + toolbar: [ 'heading', '|', 'bulletedList', 'numberedList', 'todoList', '|', 'undo', 'redo' ] + } ) + .then( editor => { + window.editor = editor; + } ) + .catch( err => { + console.error( err.stack ); + } ); diff --git a/tests/manual/todo-list.md b/tests/manual/todo-list.md new file mode 100644 index 0000000..e69de29