Changeset 4545
- Timestamp:
- 11/26/09 17:13:51 (3 years ago)
- File:
-
- 1 edited
-
CKEditor/tests/tt/4246/1.html (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/tests/tt/4246/1.html
r4485 r4545 19 19 ts.add( tc = new YAHOO.tool.TestCase( 20 20 { 21 // shouldIgnoreAllBut : [ 'test_alter_image_style3' ], 22 21 23 /** 22 24 * Image dialog should produce valid xhtml image style instead of deprecated html attributes. … … 69 71 test.fixHtml( result ), 'Created image element attributes/style doesn\'t match.' ); 70 72 71 }, CKEDITOR.env.ie ? 4000 :1000 );73 }, 1000 ); 72 74 }, 73 75 … … 122 124 test.fixHtml( result ), 'Created image element attributes/style doesn\'t match.' ); 123 125 124 }, CKEDITOR.env.ie ? 4000 : 1000 ); 126 }, 1000 ); 127 }, 128 129 /** 130 * Test delete all the image styles. 131 */ 132 test_alter_image_style3 : function() 133 { 134 var editor = ts.editor, 135 input = '<p><img src="http://dev.fckeditor.net/chrome/site/logos.gif" height="300" width="200" border="1" align="right" vspace="10" hspace="5"/></p>', 136 outputGecko = '<p><img src="http://dev.fckeditor.net/chrome/site/logos.gif"></p>', 137 outputIE = '<p><img src="http://dev.fckeditor.net/chrome/site/logos.gif"></p>', 138 outputWebkit = '<p><img src="http://dev.fckeditor.net/chrome/site/logos.gif"></p>', 139 outputOpera = '<p> </p><p><img src="http://dev.fckeditor.net/chrome/site/logos.gif"></p>'; 140 141 // Force result data un-formatted. 142 editor.dataProcessor.writer._.rules = {}; 143 144 editor.loadSnapshot( input ); 145 editor.focus(); 146 var img = new CKEDITOR.dom.element( selector.query( 'img[src]', editor.document.$ )[ 0 ] ); 147 editor.getSelection().selectElement( img ); 148 149 // Open dialog need some time. 150 editor.execCommand( 'image' ); 151 this.wait( function() 152 { 153 var dialog = editor._.storedDialogs[ 'image' ]; 154 var widthField = dialog.getContentElement( 'info', 'txtWidth' ), 155 heightField = dialog.getContentElement( 'info', 'txtHeight' ), 156 borderField = dialog.getContentElement( 'info', 'txtBorder' ), 157 hspaceField = dialog.getContentElement( 'info', 'txtHSpace' ), 158 vspaceField = dialog.getContentElement( 'info', 'txtVSpace' ), 159 alignField = dialog.getContentElement( 'info', 'cmbAlign' ); 160 161 widthField.setValue( '' ); 162 heightField.setValue( '' ); 163 borderField.setValue( '' ); 164 hspaceField.setValue( '' ); 165 vspaceField.setValue( '' ); 166 alignField.setValue( '' ); 167 168 dialog.fire( 'ok' ); 169 dialog.hide(); 170 171 this.wait( function () 172 { 173 var result = editor.getData(); 174 assert.areEqual( 175 CKEDITOR.env.ie ? outputIE 176 : CKEDITOR.env.gecko? outputGecko 177 : CKEDITOR.env.webkit? outputWebkit 178 : outputOpera , 179 test.fixHtml( result ), 'Created image element attributes/style doesn\'t match.' ); 180 181 }, 0 ); 182 183 }, 1000 ); 125 184 } 126 185 } ) );
Note: See TracChangeset
for help on using the changeset viewer.
