Ticket #3773: 3773_2.patch
File 3773_2.patch, 2.3 KB (added by , 15 years ago) |
---|
-
_source/core/dom/documentfragment.js
30 30 true, 31 31 { 32 32 'append' : 1, 33 'appendBogus' : 1, 33 34 'getFirst' : 1, 34 35 'getLast' : 1, 35 36 'appendTo' : 1, … … 38 39 'insertAfterNode' : 1, 39 40 'replace' : 1, 40 41 'trim' : 1, 42 'type' : 1, 41 43 'ltrim' : 1, 42 44 'rtrim' : 1, 43 45 'getDocument' : 1, -
_source/tests/plugins/list/list.html
161 161 this.wait(); 162 162 }, 163 163 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 164 198 name :document.title 165 199 }; 166 200 } )() ); … … 172 206 <textarea id="test_ticket_3151_result">text</textarea> 173 207 <textarea id="test_ticket_3820_editor"><ul><li>bullet line 1</li><li>bullet line 2</li></ul><p>Second line</p></textarea> 174 208 <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> 175 211 </body> 176 212 </html>