8
0
Szymon Kupś 9 жил өмнө
parent
commit
45424d69b4

+ 10 - 0
packages/ckeditor5-heading/tests/manual/formats.html

@@ -0,0 +1,10 @@
+<head>
+	<link rel="stylesheet" href="%APPS_DIR%ckeditor/build/amd/theme/ckeditor.css">
+</head>
+
+<div id="editor">
+	<h2>Heading 1</h2>
+	<h3>Heading 2</h3>
+	<h4>Heading 3</h4>
+	<p>Paragraph</p>
+</div>

+ 21 - 0
packages/ckeditor5-heading/tests/manual/formats.js

@@ -0,0 +1,21 @@
+/**
+ * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.md.
+ */
+
+/* global console:false */
+
+'use strict';
+
+import ClassicEditor from '/ckeditor5/creator-classic/classic.js';
+
+ClassicEditor.create( document.querySelector( '#editor' ), {
+	features: [ 'delete', 'enter', 'typing', 'paragraph', 'formats' ],
+	toolbar: [ 'formats' ]
+} )
+	.then( editor => {
+		window.editor = editor;
+	} )
+	.catch( err => {
+		console.error( err.stack );
+	} );

+ 9 - 0
packages/ckeditor5-heading/tests/manual/formats.md

@@ -0,0 +1,9 @@
+@bender-ui: collapsed
+
+## Formats
+
+1. The data should be loaded with three headings and one paragraph.
+2. Put selection inside each block and check if dropdown label is changing properly.
+3. Play with formatting:
+	- Switch formats using dropdown.
+	- Put selection that spans across multiple blocks and switch formats.