Ticket #3773: 3773_2.patch

File 3773_2.patch, 2.3 KB (added by Garry Yao, 15 years ago)
  • _source/core/dom/documentfragment.js

     
    3030        true,
    3131        {
    3232                'append' : 1,
     33                'appendBogus' : 1,
    3334                'getFirst' : 1,
    3435                'getLast' : 1,
    3536                'appendTo' : 1,
     
    3839                'insertAfterNode' : 1,
    3940                'replace' : 1,
    4041                'trim' : 1,
     42                'type' : 1,
    4143                'ltrim' : 1,
    4244                'rtrim' : 1,
    4345                'getDocument' : 1,
  • _source/tests/plugins/list/list.html

     
    161161                                        this.wait();
    162162                        },
    163163
     164                        /**
     165                         *  Test remove list with enterMode = BR.
     166                         */
     167                        test_ticket_3773 : function()
     168                        {
     169                                prepareEditor( 'test_ticket_3773_editor', null,
     170                                        { enterMode : CKEDITOR.ENTER_BR },
     171                                        function( editor )
     172                                        {
     173                                                this.resume( function()
     174                                                {
     175                                                        editor.focus();
     176
     177                                                        var doc = editor.document,
     178                                                                range = new CKEDITOR.dom.range( doc );
     179                                                        setRange( range, [ 1, 0, 0, 0 ], [ 1, 0, 1, 1 ] );
     180                                                        var sel = editor.getSelection();
     181                                                        sel.selectRanges( [ range ] );
     182
     183                                                        // Waiting for 'comand state' effected.
     184                                                        this.wait( function(){
     185                                                                // Remove list.
     186                                                                debugger;
     187                                                                editor.execCommand( 'numberedlist' );
     188                                                                assert.areSame( getTextAreaValue( 'test_ticket_3773_result' ),
     189                                                                        editor.getData(),
     190                                                                        'Remove list result not correct.' );
     191                                                        }, 1000 );
     192
     193                                                } );
     194                                        }, this );
     195                                        this.wait();
     196                        },
     197
    164198                        name :document.title
    165199                };
    166200        } )() );
     
    172206<textarea id="test_ticket_3151_result">text</textarea>
    173207<textarea id="test_ticket_3820_editor"><ul><li>bullet line 1</li><li>bullet line 2</li></ul><p>Second line</p></textarea>
    174208<textarea id="test_ticket_3820_result"><ul><li>bullet line 1</li><li>bullet line 2</li><li>Second line</li></ul></textarea>
     209<textarea id="test_ticket_3773_editor"><ol><li>line1</li><li>line2</li></ol></textarea>
     210<textarea id="test_ticket_3773_result">line1<br />line2</textarea>
    175211</body>
    176212</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy