Index: /CKEditor/tests/tt/4679/1.html
===================================================================
--- /CKEditor/tests/tt/4679/1.html	(revision 4498)
+++ /CKEditor/tests/tt/4679/1.html	(revision 4498)
@@ -0,0 +1,66 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<title>Test Ticket #4679</title>
+	<meta name="tags" content="editor,unit,all">
+	<script type="text/javascript" src="../../cktester/cell.js"></script>
+	<script type="text/javascript">
+	//<![CDATA[
+CKEDITOR.test.runner.defer = true;
+CKEDITOR.plugins.load( 'htmlwriter' , function()
+{
+ CKEDITOR.test.runner.run();
+} );
+
+var tc;
+CKEDITOR.test.addTestCase( tc = ( function()
+{
+	// Local reference to the "assert" object.
+	var assert = CKEDITOR.test.assert;
+	function getTextareaContent( id )
+	{
+		return CKEDITOR.test.fixHtml( CKEDITOR.document.getById( id ).getValue(), false, false );
+	}
+
+	/**
+	 * Wrapper of the combination of htmlParser with htmlWriter, for convenience of
+	 * testing, formatting of writer has been disabled.
+	 */
+	function htmlParse( htmlString , writerConfig)
+	{
+		var writer = new CKEDITOR.htmlParser.basicWriter();
+		writer.reset();
+		var fragment = CKEDITOR.htmlParser.fragment.fromHtml( htmlString );
+		fragment.writeHtml( writer );
+		return writer.getHtml();
+	}
+
+	return {
+
+		// Test fixing invalid nested inline styles.
+		test_parser_badly_inline_elements : function ()
+		{
+			assert.areSame( getTextareaContent( 'output' ),
+				htmlParse( getTextareaContent( 'input' ) ),
+				'Output doesn\'t match.' );
+		},
+
+		name :document.title
+	};
+} )() );
+	//]]>
+	</script>
+</head>
+<body>
+<textarea id="input">
+<p>Line 1</p>
+<b>
+    <p>Line 2</p>
+    <p>Line 3</p>
+    <p>Line 4</p>
+</b>
+<p>Line 5</p>
+</textarea>
+<textarea id="output"><p>Line 1</p><p><b>Line 2</b></p><p><b>Line 3</b></p><p><b>Line 4</b></p><p>Line 5</p></textarea>
+</body>
+</html>
