Skip to content

Commit

Permalink
Tests: add manual test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tade0 authored and Comandeer committed Mar 9, 2017
1 parent 96bbe7e commit 6f6f771
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
45 changes: 45 additions & 0 deletions tests/plugins/copyformatting/manual/focus.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@

<textarea name="editor1" id="editor1" cols="30" rows="10">
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><img alt="" src="http://s1.ckeditor.com/themes/ckeditor4/images/slider-cke46-ea0c506c78.png" style="height:63px; width:200px" /></p>
<p><img alt="cake" src="http://c.cksource.com/a/1/img/demo/brownie.jpg" style="height:133px; width:200px" /></p>

<p>&nbsp;</p>

<div style="float:right; padding:5px; width:210px"><a href="http://ckeditor.com/"><img alt="Focus jumps to the top of the editor" src="http://c.cksource.com/a/1/img/demo/brownie.jpg" style="height:133px; width:200px" /></a></div>

<p>&nbsp;</p>

<p>&nbsp;</p>
</textarea>

<script>
if ( !CKEDITOR.env.ie ) {
bender.ignore();
}

CKEDITOR.replace( 'editor1' );
</script>
16 changes: 16 additions & 0 deletions tests/plugins/copyformatting/manual/focus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@bender-tags: tc, 4.7.0, 16845, copyformatting
@bender-ui: collapsed
@bender-ckeditor-plugins: copyformatting,toolbar,wysiwygarea,floatingspace,elementspath,image2,widget,justify,div

## Test Scenario

1. Make sure the editor is not focused and scroll it down.
2. Select the image on the right by clicking it.

## Expected

Image is selected.

## Unexpected

The editor scrolls to the top.

0 comments on commit 6f6f771

Please sign in to comment.