Skip to content

Commit

Permalink
add manual tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Karol Dawidziuk committed May 30, 2021
1 parent 3ab20fd commit 11711e4
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
52 changes: 52 additions & 0 deletions tests/plugins/link/manual/anchorcustomstyles.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<div id="editor">

<p><strong><i>Test</i></strong></p>

<p>Test <a id="test" name="test">anchor</a></p>

<p><sub>te</sub>st test</p>

<h1>Test heading <strong>styled</strong><em> words</em></h1>

<ul>
<li>first</li>
<li><strong><em>second</em></strong> item</li>
<li><strong>thrid</strong></li>
</ul>

<ol>
<li>ordered list</li>
<li>test</li>
</ol>

<table border="1" cellspacing="1" cellpadding="1" style="width: 100%;">
<tbody>
<tr>
<td><strong>test</strong></td>
<td><u><em><strong>test</strong></em></u><br></td>
</tr>
<tr>
<td><em>test</em><br></td>
<td><strong><u>test</u></strong><br></td>
</tr>
<tr>
<td><u>test</u><br></td>
<td><strong><em><s><u>test</u></s></em></strong><br></td>
</tr>
<tr>
<td><s>test</s><br></td>
<td><u><s>test</s></u><br></td>
</tr>
<tr>
<td><em><strong>test</strong></em><br></td>
<td><s><em>test</em></s><br></td>
</tr>
</tbody>
</table>
</div>

<script>
var editor = CKEDITOR.replace('editor', {
height: 500
});
</script>
18 changes: 18 additions & 0 deletions tests/plugins/link/manual/anchorcustomstyles.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@bender-tags: 4.16.1, bug, link, 4728
@bender-ui: collapsed
@bender-ckeditor-plugins: link, toolbar, wysiwygarea, basicstyles, sourcearea, clipboard, enterkey, link, list, liststyle, tabletools, tableselection, undo, format

Play with the anchors.

Things to check:

* creating anchors,
* creating anchors with styled words,
* creating anchors with heavily styled content ( p>em>strong> etc.),
* creating anchors with different paragraph format,
* creating anchors with multiline words,
* modifying existing anchors.

Notes:
* Testing multiline creating anchors should create anchors for each line.
* Editing a few words with an existing anchor should replace it with one for the entire range.

0 comments on commit 11711e4

Please sign in to comment.