Index: /CKEditor/tests/tt/6975/1.html
===================================================================
--- /CKEditor/tests/tt/6975/1.html	(revision 7097)
+++ /CKEditor/tests/tt/6975/1.html	(revision 7097)
@@ -0,0 +1,90 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+	"http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+	<title>Ticket: #6975 - Edit definition lists</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_switch_modes_01: function()
+		{
+			var editor = ts.editor,
+				contentWithSelection = test.getValueAsHtml( 'input_1' ),
+				output = '<dl><dt>coffee</dt><dd>- black hot drink</dd><dt>milk</dt><dd>- white cold drink</dd></dl>',
+				command = 'source';
+			
+			test.setHtmlWithSelection( editor.document.getBody(), contentWithSelection );
+			editor.execCommand( command );
+			
+			this.wait( function ()
+			{
+				editor.execCommand( command );
+				this.wait( function ()
+				{
+					assert.areSame( output, editor.getData() );
+				}, 500 );
+			}, 1000 );
+		},
+		
+		test_switch_modes_02: function()
+		{
+			var editor = ts.editor,
+				contentWithSelection = test.getValueAsHtml( 'input_2' ),
+				// I am not sure about expected result
+				output = '<dl><dt>&nbsp;</dt><dd>text</dd><dd>&nbsp;</dd><dt>&nbsp;</dt><dt>&nbsp;</dt><dd>text</dd><dd>&nbsp;</dd><dt>&nbsp;</dt><dt>&nbsp;</dt><dd>text</dd><dd>&nbsp;</dd><dt>&nbsp;</dt></dl> ',
+				command = 'source';
+			
+			test.setHtmlWithSelection( editor.document.getBody(), contentWithSelection );
+			editor.execCommand( command );
+			
+			this.wait( function ()
+			{
+				editor.execCommand( command );
+				this.wait( function ()
+				{
+					assert.areSame( output, editor.getData() );
+				}, 500 );
+			}, 1000 );
+		},
+	} ) );
+} )();
+	</script>
+</head>
+<body>
+<textarea id='input_1'>
+<dl>
+  <dt>Coffee</dt>
+  <dd>- black hot drink</dd>
+  <dt>Milk</dt>
+  <dd>- white cold drink</dd>
+</dl>
+</textarea>
+<textarea id='input_2'>
+<dl>
+ <dt><dd>text<dd><dt>
+<dt><dd>text<dd><dt>
+<dt><dd>text<dd><dt>
+</dl>
+</textarea>
+</body>
+</html>
+ 
