Index: /CKEditor/tests/tt/4246/1.html
===================================================================
--- /CKEditor/tests/tt/4246/1.html	(revision 4544)
+++ /CKEditor/tests/tt/4246/1.html	(revision 4545)
@@ -19,4 +19,6 @@
 	ts.add( tc = new YAHOO.tool.TestCase(
 		{
+//			shouldIgnoreAllBut : [ 'test_alter_image_style3' ],
+
 			/**
 			 * Image dialog should produce valid xhtml image style instead of deprecated html attributes.
@@ -69,5 +71,5 @@
 								test.fixHtml( result ), 'Created image element attributes/style doesn\'t match.' );
 
-						}, CKEDITOR.env.ie ? 4000 : 1000 );
+						}, 1000 );
 			},
 
@@ -122,5 +124,62 @@
 								test.fixHtml( result ), 'Created image element attributes/style doesn\'t match.' );
 
-						}, CKEDITOR.env.ie ? 4000 : 1000 );
+						}, 1000 );
+			},
+
+			/**
+			 * Test delete all the image styles. 
+			 */
+			test_alter_image_style3 : function()
+			{
+				var editor = ts.editor,
+					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>',
+					outputGecko = '<p><img src="http://dev.fckeditor.net/chrome/site/logos.gif"></p>',
+					outputIE = '<p><img src="http://dev.fckeditor.net/chrome/site/logos.gif"></p>',
+					outputWebkit = '<p><img src="http://dev.fckeditor.net/chrome/site/logos.gif"></p>',
+					outputOpera = '<p>&nbsp;</p><p><img src="http://dev.fckeditor.net/chrome/site/logos.gif"></p>';
+
+				// Force result data un-formatted.
+				editor.dataProcessor.writer._.rules = {};
+
+				editor.loadSnapshot( input );
+				editor.focus();
+				var img = new CKEDITOR.dom.element( selector.query( 'img[src]', editor.document.$ )[ 0 ] );
+				editor.getSelection().selectElement( img );
+
+				// Open dialog need some time.
+				editor.execCommand( 'image' );
+				this.wait( function()
+						{
+							var dialog = editor._.storedDialogs[ 'image' ];
+							var widthField = dialog.getContentElement( 'info', 'txtWidth' ),
+								heightField = dialog.getContentElement( 'info', 'txtHeight' ),
+								borderField = dialog.getContentElement( 'info', 'txtBorder' ),
+								hspaceField = dialog.getContentElement( 'info', 'txtHSpace' ),
+								vspaceField = dialog.getContentElement( 'info', 'txtVSpace' ),
+								alignField = dialog.getContentElement( 'info', 'cmbAlign' );
+
+							widthField.setValue( '' );
+							heightField.setValue( '' );
+							borderField.setValue( '' );
+							hspaceField.setValue( '' );
+							vspaceField.setValue( '' );
+							alignField.setValue( '' );
+
+							dialog.fire( 'ok' );
+							dialog.hide();
+
+							this.wait( function ()
+							{
+								var result = editor.getData();
+								assert.areEqual(
+										CKEDITOR.env.ie ? outputIE
+										: CKEDITOR.env.gecko?  outputGecko
+										: CKEDITOR.env.webkit? outputWebkit
+										: outputOpera ,
+									test.fixHtml( result ), 'Created image element attributes/style doesn\'t match.' );
+
+							}, 0 );
+
+						}, 1000 );
 			}
 		} ) );
