Index: /CKEditor/tests/tt/4341/3.html
===================================================================
--- /CKEditor/tests/tt/4341/3.html	(revision 4532)
+++ /CKEditor/tests/tt/4341/3.html	(revision 4532)
@@ -0,0 +1,83 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+	"http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+	<title>Ticket: #4341</title>
+	<meta name="tags" content="editor,unit,all">
+	<script type="text/javascript" src="../../cktester/cell.js"></script>
+	<script>
+( function()
+{
+	var ts, tc, assert = CKEDITOR.test.assert;
+
+	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 ()
+			{
+				ts.editor.dataProcessor.writer._.rules = {};
+			},
+
+			/**
+			 * Test 'showborder' plugin mark table with appropriate 'class' attribute.
+			 */
+			test_toHtml_showBorder : function()
+			{
+				var editor = ts.editor,
+					dataProcessor = editor.dataProcessor,
+					input = '<table class="myTable"><tr><th>head1</th><th>head2</th></tr><tr><td>cell1</td><td>cell2</td></tr></table>',
+					output = '<table class="myTable cke_show_border"><tbody><tr><th>head1</th><th>head2</th></tr><tr><td>cell1</td><td>cell2</td></tr></tbody></table>';
+
+				assert.areEqual( output, dataProcessor.toHtml( input, false )  );
+			},
+
+			/**
+			 * Test 'showborder' plugin mark table with appropriate 'class' attribute.
+			 */
+			test_toHtml_showBorder2 : function()
+			{
+				var editor = ts.editor,
+					dataProcessor = editor.dataProcessor,
+					input = '<table border=2 class="myTable"><tr><th>head1</th><th>head2</th></tr><tr><td>cell1</td><td>cell2</td></tr></table>',
+					output = '<table class="myTable" border="2"><tbody><tr><th>head1</th><th>head2</th></tr><tr><td>cell1</td><td>cell2</td></tr></tbody></table>';
+
+				assert.areEqual( output, dataProcessor.toHtml( input, false )  );
+			},
+
+			/**
+			 * Test 'showborder' plugin properly remove those mark styles on output data.
+			 */
+			test_toData_showBorder : function()
+			{
+				var editor = ts.editor,
+					dataProcessor = editor.dataProcessor,
+					input = '<table class="myTable1 cke_show_border myTable2"><tr><td>cell1</td></tr></table>',
+					output = '<table class="myTable1 myTable2"><tr><td>cell1</td></tr></table>';
+
+				assert.areEqual( output, dataProcessor.toDataFormat( input, false )  );
+			},
+
+			/**
+			 * Test 'showborder' plugin properly remove those mark styles on output data.
+			 */
+			test_toData_showBorder2 : function()
+			{
+				var editor = ts.editor,
+					dataProcessor = editor.dataProcessor,
+					input = '<table class="myTable1 cke_show_border"><tr><td>cell1</td></tr></table>',
+					output = '<table class="myTable1"><tr><td>cell1</td></tr></table>';
+
+				assert.areEqual( output, dataProcessor.toDataFormat( input, false )  );
+			}
+		} ) );
+} )();
+	</script>
+</head>
+<body>
+</body>
+</html>
