浏览代码

Added manual test for the issue.

Aleksander Nowodzinski 8 年之前
父节点
当前提交
e00d8bde0f

+ 10 - 0
packages/ckeditor5-editor-inline/tests/manual/tickets/4/1.html

@@ -0,0 +1,10 @@
+<style>
+	body {
+		height: 10000px;
+	}
+</style>
+
+<div id="editor">
+    <p>Content of the editor.</p>
+</div>
+

+ 20 - 0
packages/ckeditor5-editor-inline/tests/manual/tickets/4/1.js

@@ -0,0 +1,20 @@
+/**
+ * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.md.
+ */
+
+/* globals console:false, document, window */
+
+import InlineEditor from '../../../../src/inline';
+import ArticlePreset from '@ckeditor/ckeditor5-presets/src/article';
+
+InlineEditor.create( document.querySelector( '#editor' ), {
+	plugins: [ ArticlePreset ],
+	toolbar: [ 'headings', 'bold', 'italic', 'link', 'unlink', 'bulletedList', 'numberedList', 'blockQuote', 'undo', 'redo' ]
+} )
+.then( editor => {
+	window.editor = editor;
+} )
+.catch( err => {
+	console.error( err.stack );
+} );

+ 7 - 0
packages/ckeditor5-editor-inline/tests/manual/tickets/4/1.md

@@ -0,0 +1,7 @@
+### Issue [#4](https://github.com/ckeditor/ckeditor5-editor-inline/issues/4) manual test
+
+1. Focus the editor,
+2. Scroll the web page until the toolbar is visible below editable,
+3. Type a couple of new lines in the editor,
+
+Expected: The toolbar should stick to the bottom edge of editable as the editable has grown up.