| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 | <head> |
| 4 | <title>Plugin: editingblock</title> |
| 5 | <link rel="stylesheet" type="text/css" href="../../test.css" /> |
| 6 | <script type="text/javascript" src="../../../../ckeditor_source.js"></script> |
| 7 | <script type="text/javascript" src="../../test.js"></script> |
| 8 | <script type="text/javascript"> |
| 9 | //<![CDATA[ |
| 10 | var testCase; |
| 11 | |
| 12 | CKEDITOR.test.addTestCase( testCase = ( function() |
| 13 | { |
| 14 | // Local references. |
| 15 | var assert = YAHOO.util.Assert; |
| 16 | |
| 17 | return { |
| 18 | |
| 19 | /** |
| 20 | * Test check dirty flag |
| 21 | */ |
| 22 | test_instanceReadyEvent5 : function() |
| 23 | { |
| 24 | CKEDITOR.on( 'instanceReady', function( evt ) |
| 25 | { |
| 26 | var editor = evt.editor; |
| 27 | if( editor.name == 'editor5' ) |
| 28 | { |
| 29 | this.resume( function() |
| 30 | { |
| 31 | assert.isFalse( editor.checkDirty() , 'Content should not be dirty.' ); |
| 32 | } ); |
| 33 | } |
| 34 | }, this ); |
| 35 | |
| 36 | CKEDITOR.replace( 'editor5' ); |
| 37 | this.wait(); |
| 38 | }, |
| 39 | |
| 40 | name :document.title |
| 41 | }; |
| 42 | } )() ); |
| 43 | //]]> |
| 44 | </script> |
| 45 | </head> |
| 46 | <body> |
| 47 | <textarea id="editor5" name="editor5"></textarea> |
| 48 | </body> |
| 49 | </html> |
| 50 | No newline at end of file |