Opened 10 years ago

Last modified 9 years ago

#4252 assigned New Feature

Establish testing APIs for editor UI

Reported by: Garry Yao Owned by: Garry Yao
Priority: Normal Milestone:
Component: QA Version:
Keywords: Confirmed Cc:

Description (last modified by Garry Yao)

We could encapsulate APIs for functional testing, consider the following basic ones:

  1. Toolbar button clicking;
  2. Dialog controlling;
  3. Document selection and keystrokes;

Attachments (5)

4252.patch (8.1 KB) - added by Garry Yao 10 years ago.
4252_2.patch (9.2 KB) - added by Garry Yao 10 years ago.
4252_3.patch (9.4 KB) - added by Garry Yao 10 years ago.
4252_4.patch (11.1 KB) - added by Garry Yao 10 years ago.
4252_5.patch (12.8 KB) - added by Garry Yao 10 years ago.

Download all attachments as: .zip

Change History (14)

Changed 10 years ago by Garry Yao

Attachment: 4252.patch added

comment:1 Changed 10 years ago by Garry Yao

Keywords: Review? added
Owner: set to Garry Yao
Status: newassigned

The patch implements Toolbar button clicking functionality while there's two noticeable changes :

  1. Ideally it's assumed that the testing API wouldn't touch any source codes, but in this special case where currently there's no way of understanding the UI objects' internal status( e.g. when a panel is loaded ) from outside, so I'm proposing of adding necessary event hooks for making it easier to work with them.
  2. It's also notice that the way how stuffs appeared on toolbar is designed make it very hard for tracing the related command,ui element, and toolbar items, which has also been identified by #4137, but here we need further changes in 'core/ui.js' to connect them tightly.

comment:2 Changed 10 years ago by Garry Yao

Ticket Test added at : http://ckeditor.t/tt/4252/4252.html.

Changed 10 years ago by Garry Yao

Attachment: 4252_2.patch added

comment:3 Changed 10 years ago by Garry Yao

Adding dialog controlling( population ) API, corresponding TC added at : http://ckeditor.t/tt/4252/2.html.

Changed 10 years ago by Garry Yao

Attachment: 4252_3.patch added

comment:4 Changed 10 years ago by Garry Yao

Adding editor selection API, corresponding TC added at : http://ckeditor.t/tt/4252/3.html.

comment:5 Changed 10 years ago by Garry Yao

Updating editor selection API, corresponding TC added at : http://ckeditor.t/tt/4252/4.html.

Changed 10 years ago by Garry Yao

Attachment: 4252_4.patch added

Changed 10 years ago by Garry Yao

Attachment: 4252_5.patch added

comment:6 Changed 10 years ago by Garry Yao

Updating editor typing API, corresponding TC added at : http://ckeditor.t/tt/4252/4.html.

comment:7 Changed 10 years ago by Garry Yao

Description: modified (diff)

comment:8 Changed 9 years ago by Garry Yao

Keywords: Review? removed

Distribute the dependent changes to core codes into #4361 and #4362.

comment:9 Changed 9 years ago by Garry Yao

Keywords: Confirmed added; Discussion removed
Milestone: CKEditor 3.1
Type: TaskNew Feature

Remove it from 3.1M.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy