Permalink
Browse files

Modifying manual test. Adding @returns param into docs.

  • Loading branch information...
beatadelura authored and f1ames committed Oct 9, 2017
1 parent e0afff1 commit b494e0464aff62ccd3ea71cc277db10393b2491a
View
@@ -2105,7 +2105,8 @@
// Returns first child text node of the given element.
//
// @param {CKEDITOR.htmlParser.element} el
// @param {CKEDITOR.htmlParser.element} el.
// @returns {CKEDITOR.htmlParser.text}
function getFirstTextNode( el ) {
return el.find( function( node ) {
return node.type === 3;
@@ -2115,7 +2116,8 @@
// Returns last child text node of the given element.
//
// @param {CKEDITOR.htmlParser.element} el
// @param {CKEDITOR.htmlParser.element} el.
// @returns {CKEDITOR.htmlParser.text}
function getLastTextNode( el ) {
return el.find( function( node ) {
return node.type === 3;
@@ -1,4 +1,6 @@
<div id="editor"></div>
<div id="editor">
<p>lorem<span> ipsum&nbsp;<strong>dolor sit </strong></span>amet</p>
</div>
<script>
CKEDITOR.replace( 'editor', {
@@ -3,14 +3,7 @@
@bender-ckeditor-plugins: widget, wysiwygarea, toolbar, sourcearea
**Scenario:**
1. Click `Source` button.
2. Paste `lorem<span> ipsum&nbsp;<strong>dolor sit </strong></span>amet` into source area.
3. Click `Source` button.
**Expected result:**
1. Check whether the displayed text is equal to: `lorem ipsum dolor sit amet`. **Unexpected result:** The text displayed in the editor is equal to: `loremipsum dolor sitamet`.
The displayed text is equal to: `lorem ipsum dolor sit amet` and `Source` data to `<p>lorem<span> ipsum&nbsp;<strong>dolor sit </strong></span>amet`.
**Unexpected result:**
The text displayed in the editor is equal to: `loremipsum dolor sitamet`.
2. Click `Source` button.**Expected result:**The `Source` data is equal to `<p>lorem<span> ipsum&nbsp;<strong>dolor sit </strong></span>amet</p>`.

0 comments on commit b494e04

Please sign in to comment.