Ticket #4169: 4169_2.patch

File 4169_2.patch, 1.6 KB (added by Garry Yao, 15 years ago)
  • _source/tests/plugins/list/list.html

     
    175175                                        {
    176176                                                this.resume( function()
    177177                                                {
    178                                                         editor.focus();
     178                                                        this.wait( function ()
     179                                                        {
     180                                                                editor.focus();
    179181
    180                                                         var doc = editor.document,
    181                                                                 range = new CKEDITOR.dom.range( doc );
    182                                                         setRange( range, [ 1, 1, 0, 0 ], [ 1, 1, 1, 1 ] );
    183                                                         var sel = editor.getSelection();
    184                                                         sel.selectRanges( [ range ] );
     182                                                                var doc = editor.document,
     183                                                                        range = new CKEDITOR.dom.range( doc );
     184                                                                setRange( range, [ 1, 1, 0, 0 ], [ 1, 1, 1, 1 ] );
     185                                                                var sel = editor.getSelection();
     186                                                                sel.selectRanges( [ range ] );
    185187
    186                                                         // Waiting for 'comand state' effected.
    187                                                         this.wait( function(){
    188                                                                 // Remove list.
    189                                                                 editor.execCommand( 'bulletedlist' );
    190                                                                 assert.areSame( getTextAreaValue( 'test_ticket_3836_result' ),
    191                                                                         editor.getData(),
    192                                                                         'Remove list result not correct.' );
    193                                                         }, 1000 );
     188                                                                // Waiting for 'comand state' effected.
     189                                                                this.wait( function(){
     190                                                                        // Remove list.
     191                                                                        editor.execCommand( 'bulletedlist' );
     192                                                                        assert.areSame( getTextAreaValue( 'test_ticket_3836_result' ),
     193                                                                                editor.getData(),
     194                                                                                'Remove list result not correct.' );
     195                                                                }, 1000 );
     196                                                        }, 1000 );
    194197
    195198                                                } );
    196199                                        }, this );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy