Index: /CKEditor/tests/tt/6735/1.html
===================================================================
--- /CKEditor/tests/tt/6735/1.html	(revision 6200)
+++ /CKEditor/tests/tt/6735/1.html	(revision 6200)
@@ -0,0 +1,107 @@
+<!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>Ticket: #6735</title>
+	<meta name="tags" content="editor,unit,all">
+	<script type="text/javascript" src="../../cktester/cell.js"></script>
+	<script type="text/javascript">
+//<![CDATA[
+
+function makeRange( element, html )
+{
+	function replaceWithBookmark( match )
+	{
+		var bookmark;
+		switch ( match )
+		{
+			case ']' :
+				bookmark = '<span id="E0"></span>';
+				break;
+			case '^' :
+				bookmark = '<span id="S0"></span>';
+				break;
+			case '[' :
+				bookmark = '<span id="S0"></span>';
+		}
+		return bookmark;
+	}
+
+	html = html.replace( /\^|\[|\]/g, replaceWithBookmark );
+	element.setHtml( html );
+	var doc = element.getDocument(),
+			ranges = [],
+			sel = doc.getSelection();
+
+	var range = new CKEDITOR.dom.range( doc );
+	range.moveToBookmark( { startNode : 'S0', endNode : 'E0', serializable : true } );
+	return range;
+}
+
+	// Load the required plugins and launch the runner.
+	CKEDITOR.test.runner.defer = true;
+	CKEDITOR.plugins.load( [ 'selection' ] , function()
+	{
+	 	CKEDITOR.test.runner.run();
+	} );
+
+var testCase;
+
+CKEDITOR.test.addTestCase( testCase = (function()
+{
+	// Local references.
+	var test = CKEDITOR.test,
+			assert	 = test.assert,
+			doc = new CKEDITOR.dom.document( document );
+
+	return {
+
+		// TC1: when range boundaries are both inside read only elements.
+		test_checkRange_readOnly: function()
+		{
+			var range = makeRange( doc.getById( 'editor' ), test.getValueAsHtml( 'tc1') );
+			assert.isTrue( range.checkReadOnly() );
+		},
+
+		// TC2: when only one range boundary is inside read only elements.
+		test_checkRange_readOnly2: function()
+		{
+			var range = makeRange( doc.getById( 'editor' ), test.getValueAsHtml( 'tc2') );
+			assert.isTrue( range.checkReadOnly() );
+		},
+
+		// TC3: when range is entirely inside one read only element.
+		test_checkRange_readOnly3: function()
+		{
+			var range = makeRange( doc.getById( 'editor' ), test.getValueAsHtml( 'tc3') );
+			assert.isTrue( range.checkReadOnly() );
+		},
+
+		// TC4: when read only elements are enclosed inside range.
+		test_checkRange_readOnly4: function()
+		{
+			var range = makeRange( doc.getById( 'editor' ), test.getValueAsHtml( 'tc4') );
+			assert.isFalse( range.checkReadOnly() );
+		},
+
+		// TC5: when range is inside one editable element which is in turn in side an read-only element.
+		test_checkRange_readOnly5: function()
+		{
+			var range = makeRange( doc.getById( 'editor' ), test.getValueAsHtml( 'tc5') );
+			assert.isFalse( range.checkReadOnly() );
+		},
+
+		name : document.title
+	};
+})() );
+	//]]>
+	</script>
+</head>
+<body>
+	<div id="editor"></div>
+	<textarea id="tc1">some <strong contenteditable="false"> sample [text</strong> and a <a href="#" contenteditable="false">link]</a></textarea>
+	<textarea id="tc2"><strong contenteditable="false"> some [sample</strong> text]</textarea>
+	<textarea id="tc3">some <strong contenteditable="false"> [sample text ]</strong></textarea>
+	<textarea id="tc4">[some <strong contenteditable="false"> sample text </strong> and ]</textarea>
+	<textarea id="tc5">some <strong contenteditable="false"> sample text and <a href="#" contenteditable="true">a [link].</a></strong></textarea>
+</body>
+</html>
