Index: /CKEditor/tests/tt/7158/1.html
===================================================================
--- /CKEditor/tests/tt/7158/1.html	(revision 7103)
+++ /CKEditor/tests/tt/7158/1.html	(revision 7103)
@@ -0,0 +1,78 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+	"http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+	<title>Ticket: #7158 - Iframe at 100%</title>
+	<meta name="tags" content="editor,unit,all,stable">
+	<script type="text/javascript" src="../../cktester/cell.js"></script>
+	<script>
+( function()
+{
+	var ts, tc, assert = CKEDITOR.test.assert, test = CKEDITOR.test, selector = YAHOO.util.Selector;
+
+	YAHOO.tool.TestRunner.add( ts = new CKEDITOR.test.suites.editorTestSuite(
+	{
+			editorName : 'test_editor_1',
+			name :document.title
+	} ) );
+
+	ts.add( tc = new YAHOO.tool.TestCase(
+	{
+		setUp : function ()
+		{
+			// Force result data un-formatted.
+			ts.editor.dataProcessor.writer._.rules = {};
+			ts.editor.focus();
+		},
+		
+		test_set_iframe_width: function()
+			{
+				var editor = ts.editor,
+				
+					contentWithSelection = test.getValueAsHtml( 'input_1' ),
+					output = '<p><iframe frameborder="0" height="500" scrolling="no" src="http://google.com" style="height:100px; width:100px;" width="300"></iframe></p>';
+					command = 'iframe';
+				
+				test.setHtmlWithSelection( editor.document.getBody(), contentWithSelection );
+				editor.execCommand( command );
+
+				this.wait( function ()
+				{
+					var dialog = editor._.storedDialogs[ command ],
+						urlField = dialog.getContentElement( 'info', 'src' );
+						widthField = dialog.getContentElement( 'info', 'width' );
+						heightField = dialog.getContentElement( 'info', 'height' );
+						styleField = dialog.getContentElement( 'advanced', 'advStyles' );
+					//Add frame with 100% width	
+					urlField.setValue( 'http://google.com' );
+					widthField.setValue( '300' );
+					heightField.setValue( '500' );
+					//What with this value?
+					styleField.setValue( 'height:100px; width:100px;' ); 
+					dialog.fire( 'ok' );
+					dialog.hide();
+					
+					//Switch to source
+					editor.execCommand( 'source' );
+					this.wait( function ()
+					{
+					//Switch back to Wysiwyg
+						editor.execCommand( 'source' );
+						this.wait( function ()
+						{
+							//Check if the Iframe options hasn't been changed'
+							assert.areSame( output, editor.getData() );	
+						}, 1000 );
+					}, 1000 );
+				}, 1000 );
+			},
+	} ) );
+} )();
+	</script>
+</head>
+<body>
+<textarea id='input_1'>
+</textarea>
+</body>
+</html>
+ 
