Opened 15 years ago

Closed 14 years ago

#3010 closed Task (fixed)

Enhance testing framework regards 'selection range' testing

Reported by: Garry Yao Owned by: Garry Yao
Priority: Normal Milestone: CKEditor 3.1
Component: QA Version: 3.0 Beta 2
Keywords: Confirmed HasTest Cc:

Description (last modified by Garry Yao)

  1. Document content along with selection testing regards various command execution result could be simplified as comparison based on our widely used selection description language, which make test case easy to write and understand by people, so a translation API could be provided to make the editor understand this language.
  • represent single selection
	This is some <strong>[sample text]</strong>.</p>
  • represent multiple selection
<br />

  • represent collapsed selection
    	This is some <strong>sample^ text</strong></p>
  1. Secondly, in order to avoid embed html string in JavaScript codes, it's more convenient to utilize a <textarea> to hold the actually expected/provided descriptive HTML codes( the reason for bypass <pre> is because IE's unable to preserve original format when retrieving content dynamically). So a cross-browser implementation could be established to get pre-formatted content with ease.

Attachments (1)

test-selectionrange-api.html (1.2 KB) - added by Garry Yao 15 years ago.
Proposed selection test sample.

Download all attachments as: .zip

Change History (9)

Changed 15 years ago by Garry Yao

Proposed selection test sample.

comment:1 Changed 15 years ago by Garry Yao

Keywords: Confirmed added
Owner: set to Garry Yao
Status: newassigned

comment:2 Changed 15 years ago by Frederico Caldeira Knabben

Component: GeneralQA
Milestone: CKEditor 3.0

comment:3 Changed 14 years ago by Alfonso Martínez de Lizarrondo

Version: SVN (FCKeditor)CKEditor 3.0 Beta 2

comment:4 Changed 14 years ago by Garry Yao

Milestone: CKEditor 3.1

This function should be provided as an CKEDITOR.test API.

comment:5 Changed 14 years ago by Garry Yao

Keywords: Review? added

comment:6 Changed 14 years ago by Garry Yao

Description: modified (diff)
Keywords: HasTest added; Review? removed

Changes committed with #4144, leave the ticket open for collecting feebacks.

comment:7 Changed 14 years ago by Garry Yao

Typo: #4144 -> [4144].

comment:8 Changed 14 years ago by Garry Yao

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy